fix: use vim.fs.joinpath instead of string concatenation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
cmd = {
|
cmd = {
|
||||||
vim.env.HOME .. "/repos/xml-ls/target/release/xml-ls",
|
vim.fs.joinpath(vim.env.HOME, "/repos/xml-ls/target/release/xml-ls"),
|
||||||
},
|
},
|
||||||
filetypes = { "xml" },
|
filetypes = { "xml" },
|
||||||
root_markers = { ".git" },
|
root_markers = { ".git" },
|
||||||
|
|||||||
+1
-1
@@ -183,7 +183,7 @@ function M.watch()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local plugins_dir = config_dir .. "/lua/plugins"
|
local plugins_dir = vim.fs.joinpath(config_dir, "lua/plugins")
|
||||||
|
|
||||||
local err_msg, err_name
|
local err_msg, err_name
|
||||||
watcher, err_msg, err_name = vim.uv.new_fs_event()
|
watcher, err_msg, err_name = vim.uv.new_fs_event()
|
||||||
|
|||||||
Reference in New Issue
Block a user