feat: disable treesitter plugin
This commit is contained in:
parent
1434697e81
commit
a41a2376fb
2 changed files with 65 additions and 63 deletions
|
|
@ -3,4 +3,5 @@
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
enabled = false,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,66 +1,67 @@
|
||||||
-- Treesitter
|
-- Treesitter
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
enabled = false,
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
dependencies = {
|
||||||
},
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
config = function()
|
},
|
||||||
local treesitter = require("nvim-treesitter.configs")
|
config = function()
|
||||||
|
local treesitter = require("nvim-treesitter.configs")
|
||||||
|
|
||||||
treesitter.setup({
|
treesitter.setup({
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
auto_install = false,
|
auto_install = false,
|
||||||
-- language list: https://github.com/nvim-treesitter/nvim-treesitter#supported-languages
|
-- language list: https://github.com/nvim-treesitter/nvim-treesitter#supported-languages
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"lua",
|
"lua",
|
||||||
"comment", -- used for TODO/FIXME/NOTE etc
|
"comment", -- used for TODO/FIXME/NOTE etc
|
||||||
"vim",
|
"vim",
|
||||||
"vimdoc",
|
"vimdoc",
|
||||||
"bash",
|
"bash",
|
||||||
"diff",
|
"diff",
|
||||||
"gitignore",
|
"gitignore",
|
||||||
"markdown",
|
"markdown",
|
||||||
"markdown_inline",
|
"markdown_inline",
|
||||||
"elixir",
|
"elixir",
|
||||||
"eex",
|
"eex",
|
||||||
"heex",
|
"heex",
|
||||||
"yaml",
|
"yaml",
|
||||||
"html",
|
"html",
|
||||||
"javascript",
|
"javascript",
|
||||||
"css",
|
"css",
|
||||||
"dockerfile",
|
"dockerfile",
|
||||||
"query",
|
"query",
|
||||||
"hcl",
|
"hcl",
|
||||||
"bicep",
|
"bicep",
|
||||||
"csv",
|
"csv",
|
||||||
"properties",
|
"properties",
|
||||||
"ini",
|
"ini",
|
||||||
"python",
|
"python",
|
||||||
"regex",
|
"regex",
|
||||||
"json",
|
"json",
|
||||||
"go",
|
"go",
|
||||||
"gomod",
|
"gomod",
|
||||||
"gosum",
|
"gosum",
|
||||||
"tcl",
|
"tcl",
|
||||||
"editorconfig",
|
"editorconfig",
|
||||||
"http",
|
"http",
|
||||||
"make",
|
"make",
|
||||||
"toml",
|
"toml",
|
||||||
"latex",
|
"latex",
|
||||||
"sql",
|
"sql",
|
||||||
},
|
},
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
init_selection = "<C-space>",
|
init_selection = "<C-space>",
|
||||||
node_incremental = "<C-space>",
|
node_incremental = "<C-space>",
|
||||||
scope_incremental = false,
|
scope_incremental = false,
|
||||||
node_decremental = "<bs>",
|
node_decremental = "<bs>",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue