Nvim: add new plugins, optimize old

This commit is contained in:
Robert Kmieć
2023-09-23 01:21:02 +02:00
parent 48b7bcbf4f
commit ec0ae0ee13
19 changed files with 248 additions and 78 deletions

View File

@@ -3,6 +3,8 @@ return {
dependencies = {
'mizlan/iswap.nvim',
'romgrk/nvim-treesitter-context',
'HiPhish/nvim-ts-rainbow2',
'Wansmer/sibling-swap.nvim',
--"nvim-treesitter/nvim-treesitter-textobjects",
--"nvim-treesitter/playground",
},
@@ -29,16 +31,21 @@ return {
"awk",
"bash",
"bibtex",
"bitbake",
"c",
"cmake",
--"comment",
"cpp",
"csv",
"devicetree",
"diff",
"fish",
"gitattributes",
"gitcommit",
"gitignore",
"git_config",
"git_rebase",
"html",
"vimdoc",
"http",
"ini",
@@ -49,6 +56,7 @@ return {
"make",
"markdown",
"markdown_inline",
"matlab",
"ninja",
"proto",
"python",
@@ -72,9 +80,9 @@ return {
},
},
rainbow = {
enable = true,
enable = false,
-- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
extended_mode = false, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
max_file_lines = 5000, -- Do not enable for files with more than n lines, int
-- colors = {}, -- table of hex strings
-- termcolors = {} -- table of colour name strings
@@ -96,7 +104,8 @@ return {
include_match_words
},
}
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
-- vim.opt.foldmethod = "expr"
-- vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
require('sibling-swap').setup({})
end
}