You've already forked dotfiles
feat: Adding in several flags for neovim's calling of luarocks to
prevent the need for environment configuration to install/use tree-sitter.
This commit is contained in:
@@ -10,7 +10,7 @@ end, { nargs = '*' })
|
||||
vim.api.nvim_create_user_command('TreeSitterInstall', function(opts)
|
||||
for index, value in ipairs(opts.fargs) do
|
||||
if index > 0 then
|
||||
local result = vim.system({ 'luarocks', 'install', 'tree-sitter-' .. value }, { text = true }):wait()
|
||||
local result = vim.system({ 'luarocks', '--local', '--lua-version', '5.1', 'install', 'tree-sitter-' .. value }, { text = true }):wait()
|
||||
|
||||
if result.code == 0 then
|
||||
print('Completed install of tree-sitter-' .. value)
|
||||
|
||||
Reference in New Issue
Block a user