Skip to content

wshada Error in neovim/nvim-lspconfig #100

@harriott

Description

@harriott

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions