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

Annoying completion result for options value

Open 4513ECHO opened this issue 1 year ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

vim-language-server returns annoying completion results when we trigger completion in value of options. Even the option does not accept vim script expression (e.g. 'encoding', 'formatoptions'), LS suggests vim script variables.

To Reproduce Steps to reproduce the behavior:

  1. Start completion with leading text like set encoding=

Expected behavior

vim-language-server should return the result following context.

Screenshots

スクリーンショット 2024-08-21 22 31 11

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.5

4513ECHO avatar Aug 21 '24 13:08 4513ECHO

~~I think it is vimlparser issue instead.~~

https://github.com/vim-jp/vim-vimlparser

Hm. vim-language-server parse statement directly.

Shougo avatar Aug 21 '24 13:08 Shougo