feat: Adding the TSI (Tree-Sitter Install) command, changing the ui2

setup to use floating messages instead of the cmdline output, cleanup of
plugin loading.
This commit is contained in:
2026-05-27 08:25:34 -05:00
parent a587e16f1f
commit 0ff4a94a04
5 changed files with 54 additions and 50 deletions

View File

@@ -4,6 +4,13 @@ vim.api.nvim_create_user_command('FindAndReplace', function(opts)
vim.api.nvim_command(string.format('cfdo s/%s/%s/gc', opts.fargs[1], opts.fargs[2]) .. '| update | cclose')
end, { nargs = '*' })
--vim.api.nvim_create_user_command('TSI', function (opts)
--
--end)
-- TODO: Set up a command for installing treesitter plugins via luarocks
vim.api.nvim_create_user_command('TSI', function(opts)
local result = vim.system({ 'luarocks', 'install', 'tree-sitter-' .. opts.fargs[1] }, { text = true }):wait()
if result.code == 0 then
print('Completed install of tree-sitter-' .. opts.fargs[1])
else
print('Failed to install tree-sitter-' .. opts.fargs[1])
print(result.stdout)
end
end, { nargs = '*' })