Skip to content

LSP

Troubleshooting

Undefined global vim warning

Added to my lua/plugins directory:

  {
    "neovim/nvim-lspconfig",
    opts = {
      servers = {
        lua_ls = {
          settings = {
            Lua = {
              diagnostics = {
                globals = { "vim" },
              },
            },
          },
        },
      },
    },
  },