1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Compare commits

..

No commits in common. "6e137fe9a3ee215f82a46a05e77be51ac17151f7" and "e815de294ff124ed36e95ee8540472a28755088c" have entirely different histories.

2 changed files with 11 additions and 14 deletions

View File

@ -231,12 +231,11 @@ if utils.executable("lua-language-server") then
}, },
workspace = { workspace = {
-- Make the server aware of Neovim runtime files, -- Make the server aware of Neovim runtime files,
-- see also https://luals.github.io/wiki/settings/#workspacelibrary -- see also https://github.com/LuaLS/lua-language-server/wiki/Libraries#link-to-workspace .
-- Lua-dev.nvim also has similar settings for lua ls, https://github.com/folke/neodev.nvim/blob/main/lua/neodev/luals.lua .
library = { library = {
vim.env.VIMRUNTIME, vim.env.VIMRUNTIME,
fn.stdpath("config"), fn.stdpath("config"),
-- make lua_ls aware of functions under vim.uv
"${3rd}/luv/library"
}, },
maxPreload = 2000, maxPreload = 2000,
preloadFileSize = 50000, preloadFileSize = 50000,

View File

@ -15,12 +15,6 @@ end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
-- check if firenvim is active -- check if firenvim is active
-- macOS will reset the PATH when firenvim starts a nvim process, causing the PATH variable to change unexpectedly.
-- Here we are trying to get the correct PATH and use it for firenvim.
-- See also https://github.com/glacambre/firenvim/blob/master/TROUBLESHOOTING.md#make-sure-firenvims-path-is-the-same-as-neovims
local path_env = vim.env.PATH
local prologue = string.format('export PATH="%s"', path_env)
local firenvim_not_active = function() local firenvim_not_active = function()
return not vim.g.started_by_firenvim return not vim.g.started_by_firenvim
end end
@ -425,13 +419,17 @@ local plugin_specs = {
{ {
"glacambre/firenvim", "glacambre/firenvim",
enabled = function() enabled = function()
local result = vim.g.is_win or vim.g.is_mac if vim.g.is_win or vim.g.is_mac then
return result return true
end
return false
end, end,
-- it seems that we can only call the firenvim function directly. build = function()
-- Using vim.fn or vim.cmd to call this function will fail. vim.fn["firenvim#install"](0)
build = string.format(":call firenvim#install(0, '%s')", prologue) end,
lazy = true,
}, },
-- Debugger plugin -- Debugger plugin
{ {
"sakhnik/nvim-gdb", "sakhnik/nvim-gdb",