diff --git a/lua/pluginList.lua b/lua/pluginList.lua index d2806f4..c0f4cb1 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -67,7 +67,7 @@ return require('packer').startup(function(use) use { "terrortylor/nvim-comment", - config = function() require('nvim_comment').setup() end, + config = function() require('nvim_comment').setup() end, cmd = "CommentToggle" } @@ -109,5 +109,21 @@ return require('packer').startup(function(use) requires = {'nvim-lua/plenary.nvim'}, config = function() require('gitsigns').setup() end } + use { + 'p00f/nvim-ts-rainbow', + after = "nvim-treesitter", + config = function() require "plugins.nvim-ts-rainbow" end + } + use { + 'winston0410/range-highlight.nvim', + event = "BufRead", + config = function() require("range-highlight").setup {} end, + requires = 'winston0410/cmd-parser.nvim' + } + -- integrations + use { + 'glacambre/firenvim', + run = function() vim.fn['firenvim#install'](0) end + } end) diff --git a/lua/plugins/indent-blankline.lua b/lua/plugins/indent-blankline.lua index 248b7b5..c200e8c 100644 --- a/lua/plugins/indent-blankline.lua +++ b/lua/plugins/indent-blankline.lua @@ -1,9 +1,7 @@ require("indent_blankline").setup { - buftype_exclude = {"terminal", "help","packer"}, + buftype_exclude = {"terminal", "help", "packer"}, indent_blankline_buftype_exclude = {"terminal"}, indentLine_enabled = 1, indent_blankline_char = "▏", - show_current_context = true, - indent_blankline_show_trailing_blankline_indent = false, - indent_blankline_show_first_indent_level = false + show_current_context = true } diff --git a/lua/plugins/nvim-ts-rainbow.lua b/lua/plugins/nvim-ts-rainbow.lua new file mode 100644 index 0000000..8d917d1 --- /dev/null +++ b/lua/plugins/nvim-ts-rainbow.lua @@ -0,0 +1,10 @@ +require'nvim-treesitter.configs'.setup { + rainbow = { + enable = true, + extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean + max_file_lines = nil, -- Do not enable for files with more than n lines, int + -- colors = {}, -- table of hex strings + -- termcolors = {} -- table of colour name strings + } +} + diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index 91fd9be..bad4bbc 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -69,6 +69,10 @@ end time([[try_loadstring definition]], false) time([[Defining packer_plugins]], true) _G.packer_plugins = { + ["cmd-parser.nvim"] = { + loaded = true, + path = "/home/juan/.local/share/nvim/site/pack/packer/start/cmd-parser.nvim" + }, ["coq.artifacts"] = { load_after = { coq_nvim = true @@ -89,6 +93,10 @@ _G.packer_plugins = { needs_bufread = false, path = "/home/juan/.local/share/nvim/site/pack/packer/opt/emmet-vim" }, + firenvim = { + loaded = true, + path = "/home/juan/.local/share/nvim/site/pack/packer/start/firenvim" + }, ["gitsigns.nvim"] = { config = { "\27LJ\1\0026\0\0\2\0\3\0\0064\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\1G\0\1\0\nsetup\rgitsigns\frequire\0" }, loaded = true, @@ -171,12 +179,21 @@ _G.packer_plugins = { path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-tree.lua" }, ["nvim-treesitter"] = { - after = { "indent-blankline.nvim", "vim-matchup" }, + after = { "indent-blankline.nvim", "vim-matchup", "nvim-ts-rainbow" }, config = { "\27LJ\1\0022\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\23plugins.treesitter\frequire\0" }, loaded = false, needs_bufread = true, path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-treesitter" }, + ["nvim-ts-rainbow"] = { + config = { "\27LJ\1\0027\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\28plugins.nvim-ts-rainbow\frequire\0" }, + load_after = { + ["nvim-treesitter"] = true + }, + loaded = false, + needs_bufread = false, + path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-ts-rainbow" + }, ["nvim-web-devicons"] = { after = { "lualine.nvim" }, load_after = { @@ -196,6 +213,12 @@ _G.packer_plugins = { loaded = true, path = "/home/juan/.local/share/nvim/site/pack/packer/start/plenary.nvim" }, + ["range-highlight.nvim"] = { + config = { "\27LJ\1\2A\0\0\2\0\3\0\a4\0\0\0%\1\1\0>\0\2\0027\0\2\0002\1\0\0>\0\2\1G\0\1\0\nsetup\20range-highlight\frequire\0" }, + loaded = false, + needs_bufread = false, + path = "/home/juan/.local/share/nvim/site/pack/packer/opt/range-highlight.nvim" + }, ["shade.nvim"] = { config = { "\27LJ\1\2-\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\18plugins.shade\frequire\0" }, loaded = false, @@ -258,7 +281,7 @@ vim.cmd [[augroup packer_load_aucmds]] vim.cmd [[au!]] -- Event lazy-loads time([[Defining lazy-load event autocommands]], true) -vim.cmd [[au BufRead * ++once lua require("packer.load")({'nvim-treesitter', 'vim-sandwich', 'nvim-lspconfig'}, { event = "BufRead *" }, _G.packer_plugins)]] +vim.cmd [[au BufRead * ++once lua require("packer.load")({'nvim-treesitter', 'range-highlight.nvim', 'nvim-lspconfig', 'vim-sandwich'}, { event = "BufRead *" }, _G.packer_plugins)]] vim.cmd [[au FileType html,css ++once lua require("packer.load")({'emmet-vim'}, { event = "FileType html,css" }, _G.packer_plugins)]] vim.cmd [[au VimEnter * ++once lua require("packer.load")({'packer.nvim', 'nvim-base16'}, { event = "VimEnter *" }, _G.packer_plugins)]] vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'coq_nvim'}, { event = "InsertEnter *" }, _G.packer_plugins)]]