Initial experiments with Lua config
This commit is contained in:
66
lua/plugins/treesitter.lua
Normal file
66
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,66 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require('nvim-treesitter').setup()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
configs.setup({
|
||||
ensure_installed = {
|
||||
"asm",
|
||||
"bash",
|
||||
"c",
|
||||
"cmake",
|
||||
"cpp",
|
||||
"css",
|
||||
"csv",
|
||||
"cuda",
|
||||
"diff",
|
||||
"disassembly",
|
||||
"dockerfile",
|
||||
"dot",
|
||||
"doxygen",
|
||||
"git_config",
|
||||
"git_rebase",
|
||||
"gitattributes",
|
||||
"gitignore",
|
||||
"glsl",
|
||||
"gpg",
|
||||
"hlsl",
|
||||
"html",
|
||||
"ini",
|
||||
"javascript",
|
||||
"jq",
|
||||
"json",
|
||||
"llvm",
|
||||
"lua",
|
||||
"make",
|
||||
"meson",
|
||||
"ninja",
|
||||
"objc",
|
||||
"objdump",
|
||||
"printf",
|
||||
"proto",
|
||||
"python",
|
||||
"query",
|
||||
"regex",
|
||||
"requirements",
|
||||
"rst",
|
||||
"ssh_config",
|
||||
"strace",
|
||||
"tmux",
|
||||
"toml",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"xml",
|
||||
"yaml",
|
||||
},
|
||||
sync_install = false,
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user