style(nvim): format plugins.lua

This commit is contained in:
Price Hiller 2023-05-05 04:25:37 -05:00
parent 168b42992c
commit aa05b13840
No known key found for this signature in database
2 changed files with 35 additions and 9 deletions

View File

@ -1,7 +1,24 @@
local nvim_treesitter = require("nvim-treesitter.configs") local nvim_treesitter = require("nvim-treesitter.configs")
local treesitter_dir = vim.fn.stdpath("data") .. "/treesitter"
vim.opt.runtimepath:append(treesitter_dir)
nvim_treesitter.setup({ 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 = { highlight = {
enable = true, enable = true,
disable = function(_, buf) disable = function(_, buf)
@ -13,11 +30,20 @@ nvim_treesitter.setup({
end, end,
}, },
matchup = { enable = true }, matchup = { enable = true },
autotag = { enable = true }, autotag = {
enable = true,
},
indent = { enable = true }, indent = { enable = true },
rainbow = { rainbow = {
enable = true, 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 = { strategy = {
on_attach = function() on_attach = function()
if vim.fn.line("$") < 1000 then if vim.fn.line("$") < 1000 then

View File

@ -192,7 +192,7 @@ lazy.setup({
"nvim-telescope/telescope-ui-select.nvim", "nvim-telescope/telescope-ui-select.nvim",
"debugloop/telescope-undo.nvim", "debugloop/telescope-undo.nvim",
{ "nvim-telescope/telescope-smart-history.nvim", dependencies = "tami5/sqlite.lua" }, { "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() config = function()
require("plugins.configs.telescope-nvim") require("plugins.configs.telescope-nvim")
@ -413,8 +413,8 @@ lazy.setup({
setopt = true, setopt = true,
relculright = false, relculright = false,
segments = { segments = {
{ text = { "%s" }, click = "v:lua.ScSa" }, { text = { "%s" }, click = "v:lua.ScSa" },
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa" }, { text = { builtin.lnumfunc }, click = "v:lua.ScLa" },
{ text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" }, { text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" },
}, },
}) })
@ -494,7 +494,7 @@ lazy.setup({
"AckslD/nvim-neoclip.lua", "AckslD/nvim-neoclip.lua",
event = "VeryLazy", event = "VeryLazy",
dependencies = { dependencies = {
{ "tami5/sqlite.lua", module = "sqlite" }, { "tami5/sqlite.lua", module = "sqlite" },
{ "nvim-telescope/telescope.nvim" }, { "nvim-telescope/telescope.nvim" },
}, },
config = function() config = function()
@ -831,8 +831,8 @@ lazy.setup({
{ cursor = "", texthl = "SmoothCursorTrailMedium" }, { cursor = "", texthl = "SmoothCursorTrailMedium" },
{ cursor = "", texthl = "SmoothCursorTrailMedium" }, { cursor = "", texthl = "SmoothCursorTrailMedium" },
{ cursor = "", texthl = "SmoothCursorTrailSmall" }, { cursor = "", texthl = "SmoothCursorTrailSmall" },
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" }, { cursor = ".", texthl = "SmoothCursorTrailXSmall" },
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" }, { cursor = ".", texthl = "SmoothCursorTrailXSmall" },
}, },
}, },
disabled_filetypes = { "NeogitNotification" }, disabled_filetypes = { "NeogitNotification" },