" Setting termguicolors has two implications:
" - Breaks colors for some versions of mosh, but not if tmux is used on top of
" mosh. See https://github.com/mobile-shell/mosh/issues/928
- " - Breaks some colors in :terminal, e.g., when launching gdb in vim.
set termguicolors
let g:gruvbox_italic = 1
endif
au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp'
au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards()
+au FileType cpp,c packadd termdebug
+
augroup autofoldcolumn
au!
au CursorHold,BufWinEnter * AutoOrigamiFoldColumn
\ ]
" termdebug split windows
-let g:termdebug_wide=1
+let g:termdebug_wide = 1
+let termdebugger = $HOME . '/.vim/gdb.sh'
+
+if has('nvim-0.5') && $USER != "root"
+lua <<EOF
+ require'nvim-treesitter.configs'.setup {
+ -- one of "all", "maintained" (parsers with maintainers), or a list of languages
+ ensure_installed = "maintained",
+ -- List of parsers to ignore installing
+ ignore_install = { },
+ -- Modules and its options go here
+ highlight = {
+ enable = true,
+ disabled = {}
+ },
+ incremental_selection = {
+ enable = true
+ },
+ textobjects = {
+ enable = true
+ }
+ }
+EOF
+endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""