Avoid treesitter indent in C

This commit is contained in:
Jan Hamal Dvořák 2024-11-24 22:17:23 +01:00
parent 7495bef914
commit 7803b68ad2
2 changed files with 4 additions and 0 deletions

View file

@ -22,6 +22,9 @@ set smartcase
"set smarttab
set nohlsearch
autocmd FileType c,cpp set cindent
autocmd FileType c,cpp set cinoptions=:0,l0,t0,g0,(0
if has('nvim')
exec 'source' expand('~/.config/nvim/nvim.vim')
"source nvim.vim

View file

@ -42,6 +42,7 @@ require('nvim-treesitter.configs').setup {
},
indent = {
enable = true,
disable = { "c", "cpp" },
}
}