Consider adding word_pattern
configuration into nvim-lspconfig
#2433
Labels
enhancement
New feature or request
word_pattern
configuration into nvim-lspconfig
#2433
Language server
No response
Requested feature
This is a discussion, not a feature request.
I am a completion plugin developer.
The
keyword_pattern
is very important for completion.However,
keyword_pattern
is actually not defined in LSP.So how does the VSCode ecosystem handle it?
Here is the answer.
VSCode allows extensions to specify language-configuration.
(Probably to avoid regular expressions in the LSP spec.)
I think
nvim-lspconfig
could be considereda place for all VSCode extensions
, for now.(I don't think that's ideal, but at least I can say that's the way it is now.)
Based on those considerations, I thought we could consider managing keyword_pattern in lspconfig.
I can think of several functions that could use keyword_pattern, such as completion, renaming, etc.
While vim's iskeyword can handle this, it might be better if it could be set on a per-extension basis.
(For example, for the html language, \w+ is fine, but for emmet, \w+ is not sufficient.)
Translated with www.DeepL.com/Translator (free version)
Other clients which have this feature
vim-lsp
The text was updated successfully, but these errors were encountered: