You've already forked dotfiles
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:
@@ -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 = '*' })
|
||||
|
||||
Reference in New Issue
Block a user