nanotee / nvim-lua-annotations

Generate EmmyLua annotations for Neovim functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(You should probably check lua-dev.nvim out instead)

nvim-lua-annotations

A quick and dirty script to generate EmmyLua annotations for Neovim functions/APIs. WIP.

Usage

lua require('nvim-lua-annotations').write_to_file('/path/to/annotations/dir/file.lua')

Use with nvim-lspconfig and lua-language-server:

require('lspconfig').sumneko_lua.setup {
    settings = {
        Lua = {
            workspace = {
                library = {
                    [vim.fn.expand('$VIMRUNTIME/lua')] = true,
                    ['/path/to/annotations/dir'] = true,
                }
            }
        }
    }
}

About

Generate EmmyLua annotations for Neovim functions


Languages

Language:Lua 100.0%