We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following should work in a package.json file where | is the cursor, and triggering omni completion <i_Ctrl-X_Ctrl-O> would propose "author":
package.json
|
<i_Ctrl-X_Ctrl-O>
"author"
{ "au| }
Instead, "Pattern not found".
Minimal vimrc:
set nocompatible call plug#begin('~/.vim-debug/plugged') Plug 'prabirshrestha/vim-lsp' Plug 'mattn/vim-lsp-settings' call plug#end() function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete endfunction augroup lsp_install au! autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() augroup END
Example:
vim -u ~/.vim-debug/vimrc package.json
:LspStatus vscode-json-language-server: running
I also tried with explicit schema, same problem:
{ "$schema": "https://json.schemastore.org/package.json", "au| }
:LspSettingsLocalEdit
:LspSettingsGlobalEdit
04428c9
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Mar 02 2025 21:28:22) Included patches: 1-1165 Compiled by Arch Linux
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following should work in a
package.json
file where|
is the cursor, and triggering omni completion<i_Ctrl-X_Ctrl-O>
would propose"author"
:{ "au| }
Instead, "Pattern not found".
how to reproduce
Minimal vimrc:
Example:
vim -u ~/.vim-debug/vimrc package.json
I also tried with explicit schema, same problem:
remarks
:LspSettingsLocalEdit
and:LspSettingsGlobalEdit
are both empty.04428c9
(Mon Sep 23 01:16:10 2024)The text was updated successfully, but these errors were encountered: