Browse Source

Move ftdetect to ftplugin and rename script

Renames the ftdetect folder to ftplugin and renames neuron.vim to
markdown.vim. This is more correct as the neuron.vim script *did not*
actually set the filetype using `setfiletype` and instead just set up
some autocmds. This allows for markdown plugins to be installed and
functioning as expected while also fully supporting this neuron plugin
neuron-v2
Noah Pederson 3 weeks ago
parent
commit
f78da12270
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ftplugin/markdown.vim

ftdetect/neuron.vim → ftplugin/markdown.vim View File

@ -6,10 +6,10 @@ if !filereadable(b:neuron_dir."neuron.dhall")
finish
endif
if exists('b:did_ftdetect') | finish | endif
if exists('b:did_ftplugin') | finish | endif
aug neuron
exec ':au! BufRead '.fnameescape(b:neuron_dir).'*'.fnameescape(g:neuron_extension).' call neuron#add_virtual_titles()'
exec ':au! BufEnter '.fnameescape(b:neuron_dir).'*'.fnameescape(g:neuron_extension).' call neuron#on_enter()'
exec ':au! BufWrite '.fnameescape(b:neuron_dir).'*'.fnameescape(g:neuron_extension).' call neuron#on_write()'
aug END
let b:did_ftdetect = 1
let b:did_ftplugin = 1

Loading…
Cancel
Save