context-treesitter added

This commit is contained in:
Solomon Laing 2023-09-13 13:53:59 +09:30
parent e9b0ab5c8d
commit e3ba5b0ec6

View File

@ -1,32 +1,43 @@
return { return {
"nvim-treesitter/nvim-treesitter", {
build = ":TSUpdate", "nvim-treesitter/nvim-treesitter",
opts = { build = ":TSUpdate",
matchup = { enable = true }, dependencies = {
highlight = { "treesitter-context",
enable = true,
additional_vim_regex_highlighting = false,
}, },
autopairs = { enable = true }, opts = {
indent = { enable = true }, matchup = { enable = true },
context_commentstring = { enable = true, enable_autocmd = false }, highlight = {
ensure_installed = { enable = true,
"c_sharp", additional_vim_regex_highlighting = false,
"lua", },
"c", autopairs = { enable = true },
"vim", indent = { enable = true },
"help", context_commentstring = { enable = true, enable_autocmd = false },
"javascript", ensure_installed = {
"regex", "c_sharp",
"markdown_inline", "lua",
"typescript", "c",
"html", "vim",
"jsonc", "help",
"go", "javascript",
"regex",
"markdown_inline",
"typescript",
"html",
"jsonc",
"go",
},
auto_install = true,
}, },
auto_install = true, config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
},
{
"nvim-treesitter/nvim-treesitter-context",
name = "treesitter-context",
lazy = true,
opts = {},
}, },
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
} }