From 58e495fe91ff1fb2f19a1b9c7be17b588c6267eb Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 18 Jul 2022 23:05:34 +0200 Subject: [PATCH] Enable lua-based filetype detection Starting with neovim-0.7.2 there is a faster lua-based filetype detection mechanism. Use it. --- init.vim | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5