nvim: Update rainbow brackets for deprecated ts modules
Since treesitter is deprecating modules we switch to the new fork of the plugin which works without any use of treesitter modules. A painless switch since I only use the default settings of the plugin anyway.
This commit is contained in:
parent
3cc2e34a94
commit
418670790e
1 changed files with 12 additions and 13 deletions
|
@ -3,7 +3,6 @@ return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
config = function()
|
config = function()
|
||||||
local rainbow = require("ts-rainbow")
|
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
-- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
-- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||||
ensure_installed = "all",
|
ensure_installed = "all",
|
||||||
|
@ -28,12 +27,6 @@ return {
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
autotag = { enable = true },
|
autotag = { enable = true },
|
||||||
|
|
||||||
-- enable rainbow brackets, needs p00f/nvim-ts-rainbow
|
|
||||||
rainbow = {
|
|
||||||
enable = true,
|
|
||||||
strategy = { rainbow.strategy.global },
|
|
||||||
},
|
|
||||||
|
|
||||||
-- allows using . and ; to target treesitter branches
|
-- allows using . and ; to target treesitter branches
|
||||||
textsubjects = {
|
textsubjects = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
@ -43,9 +36,9 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
endwise = {
|
endwise = {
|
||||||
enable = true
|
enable = true,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- for improved commentstrings, needs corresponding plugin
|
-- for improved commentstrings, needs corresponding plugin
|
||||||
|
@ -87,11 +80,9 @@ return {
|
||||||
"TSUpdateSync",
|
"TSUpdateSync",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- rainbow brackets using treesitter
|
|
||||||
-- show current cursor context at top of buffer
|
-- show current cursor context at top of buffer
|
||||||
-- improves commenting plugin above by using ts
|
-- improves commenting plugin above by using ts
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"https://gitlab.com/HiPhish/nvim-ts-rainbow2.git",
|
|
||||||
{ "romgrk/nvim-treesitter-context", config = true },
|
{ "romgrk/nvim-treesitter-context", config = true },
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
"RRethy/nvim-treesitter-textsubjects",
|
"RRethy/nvim-treesitter-textsubjects",
|
||||||
|
@ -99,5 +90,13 @@ return {
|
||||||
"RRethy/nvim-treesitter-endwise",
|
"RRethy/nvim-treesitter-endwise",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
-- rainbow brackets using treesitter
|
||||||
|
{
|
||||||
|
"https://gitlab.com/HiPhish/rainbow-delimiters.nvim",
|
||||||
|
lazy = false,
|
||||||
|
event = { "BufReadPost", "BufNewFile"},
|
||||||
|
config = function()
|
||||||
|
require("rainbow-delimiters.setup").setup({})
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue