Install treesitter parsers upon entering buffer
This commit is contained in:
@@ -17,64 +17,7 @@
|
|||||||
-- https://github.com/nvim-treesitter/nvim-treesitter
|
-- https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
|
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = {
|
auto_install = true,
|
||||||
"bash",
|
|
||||||
"c",
|
|
||||||
"cmake",
|
|
||||||
"comment",
|
|
||||||
"cpp",
|
|
||||||
"css",
|
|
||||||
"csv",
|
|
||||||
-- "d", -- requires treesitter cli?
|
|
||||||
"diff",
|
|
||||||
"dockerfile",
|
|
||||||
"doxygen",
|
|
||||||
"dtd",
|
|
||||||
"git_config",
|
|
||||||
"git_rebase",
|
|
||||||
"gitattributes",
|
|
||||||
"gitcommit",
|
|
||||||
"gitignore",
|
|
||||||
"groovy",
|
|
||||||
"hare",
|
|
||||||
"html",
|
|
||||||
"ini",
|
|
||||||
"java",
|
|
||||||
"javascript",
|
|
||||||
"json",
|
|
||||||
"json5",
|
|
||||||
"jsonc",
|
|
||||||
"latex",
|
|
||||||
"lua",
|
|
||||||
"luadoc",
|
|
||||||
"luap",
|
|
||||||
"make",
|
|
||||||
"markdown",
|
|
||||||
"markdown_inline",
|
|
||||||
"meson",
|
|
||||||
"ninja",
|
|
||||||
"norg",
|
|
||||||
"odin",
|
|
||||||
"perl",
|
|
||||||
"php",
|
|
||||||
"phpdoc",
|
|
||||||
"pymanifest",
|
|
||||||
"python",
|
|
||||||
"regex",
|
|
||||||
"requirements",
|
|
||||||
"robot",
|
|
||||||
"rst",
|
|
||||||
"rust",
|
|
||||||
"sql",
|
|
||||||
"toml",
|
|
||||||
"typescript",
|
|
||||||
"vim",
|
|
||||||
"vimdoc",
|
|
||||||
"xml",
|
|
||||||
"yaml",
|
|
||||||
"yang",
|
|
||||||
"zig",
|
|
||||||
},
|
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ local plugins = {
|
|||||||
config = function () require("config.treesitter") end,
|
config = function () require("config.treesitter") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
build = ":TSUpdate",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
|
|||||||
Reference in New Issue
Block a user