From: Stefan Huber Date: Mon, 18 Jul 2022 21:05:34 +0000 (+0200) Subject: Enable lua-based filetype detection X-Git-Url: http://git.sthu.org/?a=commitdiff_plain;ds=sidebyside;h=58e495fe91ff1fb2f19a1b9c7be17b588c6267eb;p=vimconf.git Enable lua-based filetype detection Starting with neovim-0.7.2 there is a faster lua-based filetype detection mechanism. Use it. --- diff --git a/init.vim b/init.vim index 374c3ba..43a4b61 100644 --- a/init.vim +++ b/init.vim @@ -16,6 +16,9 @@ set fillchars=vert:│,fold:\ set listchars=tab:»­,trail:·,eol:$ set virtualedit=block +" use filetype.lua and do not use filetype.vim for >=neovim-0.7.2 +let g:do_filetype_lua = 1 +let g:did_load_filetypes = 0 filetype plugin indent on set tabstop=4