From aa05b138406ffc68e4e9440055f1f8a31d0b5956 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 5 May 2023 04:25:37 -0500 Subject: [PATCH] style(nvim): format plugins.lua --- .../nvim/lua/plugins/configs/treesitter.lua | 32 +++++++++++++++++-- dots/.config/nvim/lua/plugins/plugins.lua | 12 +++---- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/dots/.config/nvim/lua/plugins/configs/treesitter.lua index 78305d07..00c237b3 100755 --- a/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -1,7 +1,24 @@ local nvim_treesitter = require("nvim-treesitter.configs") +local treesitter_dir = vim.fn.stdpath("data") .. "/treesitter" + +vim.opt.runtimepath:append(treesitter_dir) + nvim_treesitter.setup({ - ensure_installed = { "norg" }, + auto_install = true, + parser_install_dir = treesitter_dir, + ensure_installed = { + "norg", + "lua", + "vim", + "toml", + "rust", + "python", + "c_sharp", + "yaml", + "json", + "html", + }, highlight = { enable = true, disable = function(_, buf) @@ -13,11 +30,20 @@ nvim_treesitter.setup({ end, }, matchup = { enable = true }, - autotag = { enable = true }, + autotag = { + enable = true, + }, indent = { enable = true }, rainbow = { enable = true, - query = "rainbow-parens", + query = { + "rainbow-parens", + html = "rainbow-tags", + latex = "rainbow-blocks", + tsx = "rainbow-tags", + vue = "rainbow-tags", + javascript = "rainbow-parens-react" + }, strategy = { on_attach = function() if vim.fn.line("$") < 1000 then diff --git a/dots/.config/nvim/lua/plugins/plugins.lua b/dots/.config/nvim/lua/plugins/plugins.lua index ddaafb98..521fc63c 100755 --- a/dots/.config/nvim/lua/plugins/plugins.lua +++ b/dots/.config/nvim/lua/plugins/plugins.lua @@ -192,7 +192,7 @@ lazy.setup({ "nvim-telescope/telescope-ui-select.nvim", "debugloop/telescope-undo.nvim", { "nvim-telescope/telescope-smart-history.nvim", dependencies = "tami5/sqlite.lua" }, - { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, + { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, }, config = function() require("plugins.configs.telescope-nvim") @@ -413,8 +413,8 @@ lazy.setup({ setopt = true, relculright = false, segments = { - { text = { "%s" }, click = "v:lua.ScSa" }, - { text = { builtin.lnumfunc }, click = "v:lua.ScLa" }, + { text = { "%s" }, click = "v:lua.ScSa" }, + { text = { builtin.lnumfunc }, click = "v:lua.ScLa" }, { text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" }, }, }) @@ -494,7 +494,7 @@ lazy.setup({ "AckslD/nvim-neoclip.lua", event = "VeryLazy", dependencies = { - { "tami5/sqlite.lua", module = "sqlite" }, + { "tami5/sqlite.lua", module = "sqlite" }, { "nvim-telescope/telescope.nvim" }, }, config = function() @@ -831,8 +831,8 @@ lazy.setup({ { cursor = "●", texthl = "SmoothCursorTrailMedium" }, { cursor = "●", texthl = "SmoothCursorTrailMedium" }, { cursor = "•", texthl = "SmoothCursorTrailSmall" }, - { cursor = ".", texthl = "SmoothCursorTrailXSmall" }, - { cursor = ".", texthl = "SmoothCursorTrailXSmall" }, + { cursor = ".", texthl = "SmoothCursorTrailXSmall" }, + { cursor = ".", texthl = "SmoothCursorTrailXSmall" }, }, }, disabled_filetypes = { "NeogitNotification" },