update
parent
bd04d2a322
commit
f3965f1276
@ -1 +1,15 @@
|
|||||||
-- require('scratch.remote-lsp').setup_lsp_dirhook()
|
local present, lspconfig = pcall(require, "lspconfig")
|
||||||
|
|
||||||
|
if not present then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
-- local util = lspconfig.util
|
||||||
|
-- util.on_setup = util.add_hook_before(util.on_setup, function (config)
|
||||||
|
-- local o_root_dir = config.root_dir
|
||||||
|
-- config.root_dir = function(fname, bufnr)
|
||||||
|
-- -- P(fname)
|
||||||
|
-- local dir = o_root_dir(fname)
|
||||||
|
-- return "/source"
|
||||||
|
-- end
|
||||||
|
-- end)
|
||||||
|
Loading…
Reference in New Issue