From 354afa9a2862a0e5167f46106f156cead161bce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 23 Jun 2023 17:28:48 +0300 Subject: Use syntax foldmethod for C files I like it better than treesitter's foldmethod. --- dotfiles/.config/nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dotfiles') diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim index e42c037..bbac745 100644 --- a/dotfiles/.config/nvim/init.vim +++ b/dotfiles/.config/nvim/init.vim @@ -295,7 +295,7 @@ call plug#end() " File format preferences " MFing neovim overrding my omnifunc with whatever ccomplete is - autocmd FileType c,ch,header,cpp setlocal omnifunc=v:lua.vim.lsp.omnifunc + autocmd FileType c,ch,header,cpp setlocal omnifunc=v:lua.vim.lsp.omnifunc fdm=syntax " No, Rust, spaces is not superior to tabs, 100 lines is too much autocmd FileType rust setlocal noet ci pi sts=0 ts=4 sw=4 tw=80 autocmd FileType meson setlocal noet ci pi sts=0 ts=4 sw=4 tw=80 -- cgit v1.2.3