diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 30fe6dd..a8cd60c 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -101,11 +101,22 @@ require('mason-lspconfig').setup({ -- }, require('lspconfig').lua_ls.setup{ capabilities = capabilities, - -- settings = { - -- workspace = { - -- environmentPath = "./venv/bin/python", - -- } - -- } + settings = { + Lua = { + workspace = { + library = vim.api.nvim_get_runtime_file("", true), + }, + diagnostics = { + globals = { + "vim", + "require", + } + }, + telemety = { + enable = false, + } + }, + } }, }, })