some fixes for JS/ TS

This commit is contained in:
2026-03-27 12:20:40 +01:00
parent da04ee3883
commit f45799e3e5
4 changed files with 27 additions and 7 deletions
+10
View File
@@ -8,6 +8,16 @@
4. Set global keymaps and LSP keymaps
]]
-- ============================================================================
-- STEP 0: SETUP NODE PATH (for fnm)
-- ============================================================================
local fnm_current = vim.fn.trim(vim.fn.system("fnm current 2>/dev/null"))
if fnm_current ~= "" then
local fnm_dir = vim.fn.expand("~/.local/share/fnm")
local fnm_bin_path = fnm_dir .. "/node-versions/" .. fnm_current .. "/installation/bin"
vim.env.PATH = fnm_bin_path .. ":" .. vim.env.PATH
end
-- ============================================================================
-- STEP 1: BOOTSTRAP LAZY.NVIM
-- ============================================================================