New L5lua extension for VS Codium / VS Code out now! - get started with L5

In-editor help text is already deployed and works in all editors with language servers, including Neovim! Make sure you have a version 0.2.0 of L5.lua or above that was released around the same time the L5lua extension was released. For Neovim you need to have a Lua Language Server running.

Please excuse the ugly theme color I have set up, but here’s an example of what it looks like. My cursor is on the line with the word textSize() and i’ve pressed K which opens up the annotations (provides reference text). There are also ways to turn on autocomplete and such but I don’'t usually personally use that and haven’t tried it yet but should also work.

I’m using Vim-plug to manage my Neovim plugins and am using the nvim-lspconfig for Lua Language Server added. Here’s the relevant part of my init.lua snippet below. I’m happy to try to help get this working for you but maybe we can open up another separate post/thread to discuss Vim/Neovim or language server. And by the way, the Auto-hotreload functionality isn’t yet added to L5.lua itself but my goal is to have that in a future update. Currently it is an optional setting you can turn on in L5lua extension. I’m open to hearing about other useful needs or questions. I’m also lately testing out old Vim classic and have it working on there too, but using a different plugin.


-- use lua language server 
Plug 'neovim/nvim-lspconfig'

vim.call('plug#end')

-- LSP setup
vim.lsp.config('lua_ls', {
  settings = {
    Lua = {
      diagnostics = { 
        globals = { "vim" },
        disable = {"lowercase-global" },
      },
    },
  },
})
vim.lsp.enable('lua_ls')
```