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",
|
||||
"--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" },
|
||||
capabilities = {
|
||||
offsetEncoding = "utf-8",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user