I'm trying to set up autocompletion, fixing, etc. for lua files in Neovim. I started by trying to follow the instructions from this video: https://www.youtube.com/watch?v=lpQMeFph1RE&t=188s
However, I quickly found out that sumneko_lua no longer exists so I replaced it with lua_ls. Here is my lazy config:
{'williamboman/mason.nvim', config = function() require("mason").setup() end},
{
'williamboman/mason-lspconfig.nvim',
config = function()
require("mason-lspconfig").setup({ensure_installed = {'lua_ls'}})
end,
dependencies = {'williamboman/mason.nvim'}},
{
'neovim/nvim-lspconfig',
dependencies = {'williamboman/mason-lspconfig.nvim', 'williamboman/mason.nvim'},
config = function()
require('lspconfig').lua_ls.setup({})
end
}
However, when I launch Neovim I see the following error:
Failed to run
config
for nvim-lspconfig
...share/nvim/lazy/nvim-lspconfig/lua/lspconfig/configs.lua:10: attempt to index local 'config_def' (a boolean value)
I'm confused by this error, since I am not calling anything by the name of config_def
. What am I doing wrong here?