Skip to content

some vim apis are unknown to my lsp #760

@beselig

Description

@beselig

I hope this is worth an issue. If not I apologize, but I don't know where to ask this otherwise.

I have noticed, while going through init.lua and following TJ's video on kickstart, that my LSP knows very little about any vim apis. It seems to know some things, like vim.api or vim.lsp. But the more specific, the higher the chance that I get unknown types. For a lot of the commands and functions in the configuration, they definitely work and it's not a problem using them, but the LSP gives me 0 Information about what they are.

It just makes the configuration much harder, because I have no autocomplete on most things.

I have tried upgrading vim, neovim and adding a vim language server. Now I am out of ideas.

To Reproduce

  1. run brew install neovim
  2. checkout kickstart project as documented
  3. hold K over vim-specific apis like vim.lsp.buf.hover or vim.api.nvim_create_autocmd

Desktop

  • OS: MacOS Sonoma 14.2.1
  • Terminal: iTerm or terminal

Neovim Version

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions