diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-06-23 17:28:48 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-06-23 17:28:48 +0300 |
commit | 354afa9a2862a0e5167f46106f156cead161bce9 (patch) | |
tree | 663b5603ccbf0729cc69f723e7927b81e1b9c9ec /dotfiles | |
parent | 744f8fdfc714be4054a723cce6a39f2c81829a28 (diff) | |
download | vimrice-354afa9a2862a0e5167f46106f156cead161bce9.tar.gz vimrice-354afa9a2862a0e5167f46106f156cead161bce9.zip |
Use syntax foldmethod for C files
I like it better than treesitter's foldmethod.
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/.config/nvim/init.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |