Fixing lua lsp to find nvim stuff
This commit is contained in:
parent
1e7f6f9b9f
commit
dfc0e722a9
@ -101,11 +101,22 @@ require('mason-lspconfig').setup({
|
|||||||
-- },
|
-- },
|
||||||
require('lspconfig').lua_ls.setup{
|
require('lspconfig').lua_ls.setup{
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
-- settings = {
|
settings = {
|
||||||
-- workspace = {
|
Lua = {
|
||||||
-- environmentPath = "./venv/bin/python",
|
workspace = {
|
||||||
-- }
|
library = vim.api.nvim_get_runtime_file("", true),
|
||||||
-- }
|
},
|
||||||
|
diagnostics = {
|
||||||
|
globals = {
|
||||||
|
"vim",
|
||||||
|
"require",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
telemety = {
|
||||||
|
enable = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user