Fixing lua lsp to find nvim stuff

This commit is contained in:
Daniel Weber 2024-10-12 16:32:33 -04:00
parent 1e7f6f9b9f
commit dfc0e722a9

View File

@ -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,
}
},
}
}, },
}, },
}) })