nixos-configs/common/home/neovim/plugins/treesitter.vim

23 lines
431 B
VimL
Raw Normal View History

lua << EOF
2023-11-24 20:59:07 -05:00
local path = "/home/matt/.cache/nvim/"
require('nvim-treesitter.configs').setup({
highlight = { enable = true },
2023-11-24 20:59:07 -05:00
indent = { enable = true },
parser_install_dir = path,
auto_install = true,
})
require('treesitter-context').setup({
enable = true,
max_lines = 3,
min_window_height = 20,
})
2023-11-24 20:59:07 -05:00
vim.opt.runtimepath:append(path)
EOF
" Add line under context
hi TreesitterContextBottom gui=underline guisp=Grey