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 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

View File

@ -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" },