caio.co/de/dotfiles

lua lsp: Don't warn about vim global

Id
e7c604d6001fd8dcaf51a0d04828a89410222403
Author
Caio
Commit time
2025-10-09T13:14:36+02:00

Modified config/nvim/lua/config/lsp.lua

@@ -132,6 +132,7
cmd = { 'lua-language-server' },
filetypes = { 'lua' },
root_markers = { '.git' },
+ settings = { Lua = { diagnostics = { globals = { 'vim' } } } },
})

vim.api.nvim_create_user_command("LspStart", function()