Avoid treesitter indent in C
This commit is contained in:
parent
7495bef914
commit
7803b68ad2
2 changed files with 4 additions and 0 deletions
3
init.vim
3
init.vim
|
@ -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
|
||||
|
|
|
@ -42,6 +42,7 @@ require('nvim-treesitter.configs').setup {
|
|||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
disable = { "c", "cpp" },
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue