context-treesitter added
This commit is contained in:
parent
e9b0ab5c8d
commit
e3ba5b0ec6
@ -1,32 +1,43 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
opts = {
|
||||
matchup = { enable = true },
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
dependencies = {
|
||||
"treesitter-context",
|
||||
},
|
||||
autopairs = { enable = true },
|
||||
indent = { enable = true },
|
||||
context_commentstring = { enable = true, enable_autocmd = false },
|
||||
ensure_installed = {
|
||||
"c_sharp",
|
||||
"lua",
|
||||
"c",
|
||||
"vim",
|
||||
"help",
|
||||
"javascript",
|
||||
"regex",
|
||||
"markdown_inline",
|
||||
"typescript",
|
||||
"html",
|
||||
"jsonc",
|
||||
"go",
|
||||
opts = {
|
||||
matchup = { enable = true },
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
autopairs = { enable = true },
|
||||
indent = { enable = true },
|
||||
context_commentstring = { enable = true, enable_autocmd = false },
|
||||
ensure_installed = {
|
||||
"c_sharp",
|
||||
"lua",
|
||||
"c",
|
||||
"vim",
|
||||
"help",
|
||||
"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,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user