Skip to content

Commit 7d21113

Browse files
committed
neovim: lua_ls improvements
1 parent eeb1193 commit 7d21113

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nvim/.config/nvim/lua/lsp/init.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,16 @@ M.SERVER_CONFIGURATIONS = {
5757
settings = {
5858
Lua = {
5959
format = { enable = false },
60-
workspace = { checkThirdParty = false },
60+
workspace = {
61+
checkThirdParty = false,
62+
-- Make the server aware of Neovim runtime files
63+
library = vim.api.nvim_get_runtime_file("", true),
64+
},
65+
66+
diagnostics = {
67+
-- Get the language server to recognize the `vim` global
68+
globals = { "vim" },
69+
},
6170
-- Do not send telemetry data containing a randomized but unique identifier
6271
telemetry = { enable = false },
6372
},

0 commit comments

Comments
 (0)