mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(nvim): Enhanced treesitter and separate configs
This commit is contained in:
parent
6eff59e387
commit
bc0b70b0f9
2 changed files with 21 additions and 18 deletions
|
|
@ -6,6 +6,7 @@ return {
|
||||||
{ import = "plugins.lang.beancount" },
|
{ import = "plugins.lang.beancount" },
|
||||||
{ import = "plugins.lang.tex" },
|
{ import = "plugins.lang.tex" },
|
||||||
{ import = "plugins.lang.lua" },
|
{ import = "plugins.lang.lua" },
|
||||||
|
{ import = "plugins.lang.treesitter" },
|
||||||
{ import = "plugins.mod.trouble-nvim" },
|
{ import = "plugins.mod.trouble-nvim" },
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
|
|
@ -29,22 +30,4 @@ return {
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
{ import = "plugins.mod.conform-nvim" },
|
{ import = "plugins.mod.conform-nvim" },
|
||||||
{ "nvim-treesitter/nvim-treesitter-context", lazy = true },
|
|
||||||
{
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
run = ":TSUpdate",
|
|
||||||
cmd = {
|
|
||||||
"TSInstall",
|
|
||||||
"TSUpdate",
|
|
||||||
"TSUpdateSync",
|
|
||||||
},
|
|
||||||
event = {
|
|
||||||
"VeryLazy",
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "markdown", "markdown_inline" },
|
|
||||||
highlight = { enable = true },
|
|
||||||
indent = { enable = true },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
tools/nvim/lua/plugins/lang/treesitter.lua
Normal file
20
tools/nvim/lua/plugins/lang/treesitter.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
return {
|
||||||
|
{ "nvim-treesitter/nvim-treesitter-context", lazy = true },
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
run = ":TSUpdate",
|
||||||
|
cmd = {
|
||||||
|
"TSInstall",
|
||||||
|
"TSUpdate",
|
||||||
|
"TSUpdateSync",
|
||||||
|
},
|
||||||
|
event = {
|
||||||
|
"BufReadPre",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "markdown", "markdown_inline" },
|
||||||
|
highlight = { enable = true },
|
||||||
|
indent = { enable = true },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue