some fixes for JS/ TS
This commit is contained in:
@@ -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
|
||||
-- ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user