diff options
| author | kylo252 <[email protected]> | 2022-04-29 16:26:15 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-29 16:26:15 +0200 | 
| commit | e4287b7180ad16174fa10b73ac5b3e43e605198e (patch) | |
| tree | fd825e3c70178a2df4e10f566a4192f3b4b20c10 /lua/lvim/impatient/profile.lua | |
| parent | 716bf5fe158ec482775fdd795f6042148fd74ad1 (diff) | |
fix(lsp): undo stdpath overload to avoid datarace (#2540)
Diffstat (limited to 'lua/lvim/impatient/profile.lua')
| -rw-r--r-- | lua/lvim/impatient/profile.lua | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lua/lvim/impatient/profile.lua b/lua/lvim/impatient/profile.lua index 3676c298..0ab04d65 100644 --- a/lua/lvim/impatient/profile.lua +++ b/lua/lvim/impatient/profile.lua @@ -5,6 +5,8 @@ local api, uv = vim.api, vim.loop  local std_data = vim.fn.stdpath "data"  local std_config = vim.fn.stdpath "config"  local vimruntime = os.getenv "VIMRUNTIME" +local lvim_runtime = get_runtime_dir() +local lvim_config = get_config_dir()  local function load_buffer(title, lines)    local bufnr = api.nvim_create_buf(false, false) @@ -25,6 +27,8 @@ local function mod_path(path)    path = path:gsub(std_data .. "/", "<STD_DATA>/")    path = path:gsub(std_config .. "/", "<STD_CONFIG>/")    path = path:gsub(vimruntime .. "/", "<VIMRUNTIME>/") +  path = path:gsub(lvim_runtime .. "/", "<LVIM_RUNTIME>/") +  path = path:gsub(lvim_config .. "/", "<LVIM_CONFIG>/")    return path  end | 
