iamcco / vim-language-server

VImScript language server, LSP for vim script
502 stars 16 forks source link

Annoying completion result for options value #98

Open 4513ECHO opened 3 weeks ago

4513ECHO commented 3 weeks ago

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):

Shougo commented 3 weeks ago

I think it is vimlparser issue instead.

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

Hm. vim-language-server parse statement directly.