2023-10-27 01:15:33 -04:00
|
|
|
lua << EOF
|
|
|
|
|
2023-11-24 20:59:07 -05:00
|
|
|
local path = "/home/matt/.cache/nvim/"
|
|
|
|
|
2023-10-27 01:15:33 -04:00
|
|
|
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,
|
2023-10-27 01:15:33 -04:00
|
|
|
})
|
|
|
|
|
|
|
|
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)
|
2023-10-27 01:15:33 -04:00
|
|
|
EOF
|
|
|
|
|
|
|
|
" Add line under context
|
|
|
|
hi TreesitterContextBottom gui=underline guisp=Grey
|