Split treesitter plugins

This commit is contained in:
Christopher Williams
2026-01-11 21:52:28 -05:00
parent be09201c95
commit 2e2010c48d
5 changed files with 89 additions and 48 deletions
+14 -14
View File
@@ -36,19 +36,19 @@ local M = {
help = true,
},
})
vim.api.nvim_create_autocmd("User", {
pattern = "BlinkCmpMenuOpen",
callback = function()
vim.b.copilot_suggestion_hidden = true
end,
})
vim.api.nvim_create_autocmd("User", {
pattern = "BlinkCmpMenuClose",
callback = function()
vim.b.copilot_suggestion_hidden = false
end,
})
-- vim.api.nvim_create_autocmd("User", {
-- pattern = "BlinkCmpMenuOpen",
-- callback = function()
-- vim.b.copilot_suggestion_hidden = true
-- end,
-- })
--
-- vim.api.nvim_create_autocmd("User", {
-- pattern = "BlinkCmpMenuClose",
-- callback = function()
-- vim.b.copilot_suggestion_hidden = false
-- end,
-- })
end,
},
{
@@ -61,4 +61,4 @@ local M = {
},
}
return M
return M
+1 -33
View File
@@ -17,39 +17,7 @@ local M = {
},
},
},
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local ensureInstalled = {
"lua",
"python",
"javascript",
"typescript",
"java",
"go",
"rust",
"html",
"css",
"json",
"yaml",
"markdown",
"sql",
"org",
}
local alreadyInstalled = require("nvim-treesitter.config").get_installed()
local parsersToInstall = vim.iter(ensureInstalled)
:filter(function(parser)
return not vim.tbl_contains(alreadyInstalled, parser)
end)
:totable()
require("nvim-treesitter").install(parsersToInstall)
end,
},
{
"nvim-treesitter/nvim-treesitter-textobjects",
branch = "main",
},
{
"junegunn/fzf.vim",
dependencies = {
+71
View File
@@ -0,0 +1,71 @@
local M = {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local ensureInstalled = {
"lua",
"python",
"javascript",
"typescript",
"java",
"go",
"rust",
"html",
"css",
"json",
"yaml",
"markdown",
"sql",
"org",
}
local alreadyInstalled = require("nvim-treesitter.config").get_installed()
local parsersToInstall = vim.iter(ensureInstalled)
:filter(function(parser)
return not vim.tbl_contains(alreadyInstalled, parser)
end)
:totable()
require("nvim-treesitter").install(parsersToInstall)
end,
},
{
"nvim-treesitter/nvim-treesitter-textobjects",
event = "VeryLazy",
branch = "main",
},
{
"HiPhish/rainbow-delimiters.nvim",
event = "VeryLazy",
},
{
"Wansmer/treesj",
event = "VeryLazy",
dependencies = { "nvim-treesitter/nvim-treesitter" },
opts = { use_default_keymaps = false }, -- optional, if you don't want <space>m/j/s at all
keys = {
{
"ga",
function()
require("treesj").toggle()
end,
desc = "TreeSJ: toggle",
},
{
"gs",
function()
require("treesj").split()
end,
desc = "TreeSJ: split",
},
{
"gS",
function()
require("treesj").join()
end,
desc = "TreeSJ: join",
},
},
},
}
return M