vim-language-server icon indicating copy to clipboard operation
vim-language-server copied to clipboard

wshada Error in neovim/nvim-lspconfig

Open harriott opened this issue 7 months ago • 0 comments

Describe the bug vim-language-server called from neovim/nvim-lspconfig: wshada in vimrc is diagnosed as an Error. (wviminfo is not.)

To Reproduce In my lua/lazy/nvim-lspconfig.lua:

vim.g.markdown_fenced_languages = { 'vim' }
require'lspconfig'.vimls.setup{
  cmd={"vim-language-server","--stdio"},
  filetypes={'vim'},
  init_options = {
    diagnostic = { enable = true },
    indexes = {
      count = 3, gap = 100,
      projectRootPatterns = { "runtime", "nvim", ".git", "autoload", "plugin" },
      runtimepath = true
    },
    isNeovim = true,
    iskeyword = "@,48-57,_,192-255,-#",
    runtimepath = "", -- no need to specify, all is found
    suggest = { fromRuntimepath = true, fromVimruntime = true },
    vimruntime = ""
  }
}

then put wsh anywhere in vimrc, get

E492: Not an editor command: wsh! " wshada vimlsp ...

Expected behavior wshada should not flag an Error, as with wviminfo

Desktop (please complete the following information):

  • OS: Arch Linux v6.14.1, neovim v0.11.0
  • OS: Windows 10 Pro 2009, neovim v0.11.0

harriott avatar Apr 11 '25 19:04 harriott