Init
This commit is contained in:
19
lua/plugins/treesitter.lua
Normal file
19
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
lazy = false,
|
||||
build = ':TSUpdate',
|
||||
config = function()
|
||||
require'nvim-treesitter'.setup {
|
||||
ensure_installed = {"help", "vim", "c", "lua", "vimdoc", "python", "json", "rust"},
|
||||
|
||||
auto_install = true,
|
||||
|
||||
highlight = {enable = true},
|
||||
|
||||
additional_vim_regex_highlighting = false
|
||||
}
|
||||
|
||||
vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||
vim.wo[0][0].foldmethod = 'expr'
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user