From dfc0e722a9412ee579f4385f1443e30a9127c23a Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Sat, 12 Oct 2024 16:32:33 -0400 Subject: [PATCH] Fixing lua lsp to find nvim stuff --- after/plugin/lsp.lua | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) 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, + } + }, + } }, }, })