Fix astrolsp, again.
Apparently now it returns a function? Well, whatever, it works now.
This commit is contained in:
parent
9f55dc2362
commit
40e91c0226
@ -57,7 +57,14 @@ return {
|
|||||||
"--query-driver=/usr/bin/*gcc",
|
"--query-driver=/usr/bin/*gcc",
|
||||||
"--function-arg-placeholders=0",
|
"--function-arg-placeholders=0",
|
||||||
},
|
},
|
||||||
root_dir = require("lspconfig.util").root_pattern(".git") or vim.fn.getcwd(),
|
root_dir = function(path)
|
||||||
|
local normal = require("lspconfig.util").root_pattern(".git")(vim.fn.getcwd())
|
||||||
|
if normal then
|
||||||
|
return normal
|
||||||
|
else
|
||||||
|
return vim.fn.getcwd()
|
||||||
|
end
|
||||||
|
end,
|
||||||
filetypes = { "cpp", "c" },
|
filetypes = { "cpp", "c" },
|
||||||
capabilities = {
|
capabilities = {
|
||||||
offsetEncoding = "utf-8",
|
offsetEncoding = "utf-8",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user