This commit is contained in:
Zackarias Montell
2025-05-15 11:41:41 +02:00
6 changed files with 290 additions and 16 deletions

View File

@@ -2,9 +2,10 @@
-- external requirements
-- - use nvm and install @vue/typescript-plugin globally
-- then ts_ls will use it for vue parsing. It is already in the arch install script.
local nvm_bin = os.getenv('nvm_home'):gsub('\n[^\n]*$', '') -- remove line endings
local node_version = vim.fn.system('nvm current'):gsub('\n[^\n]*$', '') -- remove line endings
local vue_typescript_plugin_path = vim.fs.normalize(nvm_bin .. '\\' .. node_version .. '\\node_modules\\@vue\\typescript-plugin')
--local nvm_bin = os.getenv('nvm_home'):gsub('\n[^\n]*$', '') -- remove line endings
--local node_version = vim.fn.system('nvm current'):gsub('\n[^\n]*$', '') -- remove line endings
--local vue_typescript_plugin_path = vim.fs.normalize(nvm_bin .. '\\' .. node_version .. '\\node_modules\\@vue\\typescript-plugin')
local vue_typescript_plugin_path = vim.fs.normalize('~/node_modules/@vue/typescript-plugin')
print(vue_typescript_plugin_path)