feat: try a simpler setup
This commit is contained in:
parent
333e159314
commit
8ce23e2582
19 changed files with 150 additions and 1284 deletions
17
lua/plugins/treesitter.lua
Normal file
17
lua/plugins/treesitter.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
local plugin = {"nvim-treesitter/nvim-treesitter"}
|
||||
plugin.build = ":TsUpdate"
|
||||
plugin.opts = {
|
||||
ensure_installed = { "bash", "c", "html", "lua", "luadoc", "markdown", "vim", "vimdoc", "rust", "go", "css" },
|
||||
auto_install = true,
|
||||
hightlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = { "ruby" },
|
||||
},
|
||||
indent = { enable = true, disable = { "ruby", "html" }},
|
||||
}
|
||||
plugin.config = function(_, opts)
|
||||
require("nvim-treesitter.install").prefer_git = true
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end
|
||||
return plugin
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue