iamcco / iamcco/vim-language-server
wshada Error in neovim/nvim-lspconfig
- Dominant language
- JavaScript
- Stars
- 546
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
**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
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.