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 smarttab
set nohlsearch set nohlsearch
autocmd FileType c,cpp set cindent
autocmd FileType c,cpp set cinoptions=:0,l0,t0,g0,(0
if has('nvim') if has('nvim')
exec 'source' expand('~/.config/nvim/nvim.vim') exec 'source' expand('~/.config/nvim/nvim.vim')
"source nvim.vim "source nvim.vim

View file

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