Migrate vim to neovim (min v0.11)
Install newest vim-releases via appimage from github-page!
This commit is contained in:
20
.config/nvim/lua/plugins/nvim-treesitter.lua
Normal file
20
.config/nvim/lua/plugins/nvim-treesitter.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
lazy = false,
|
||||
config = function()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
configs.setup({
|
||||
ensure_installed = "all",
|
||||
ignore_install = { "ipkg" },
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
})
|
||||
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
--vim.opt.foldtext = "v:lua.vim.treesitter.foldtext()"
|
||||
vim.opt.foldmethod = "expr"
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user