Skip to content
New issue

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

Add option to disable snippets #212

Open
Hubro opened this issue Jul 26, 2021 · 1 comment
Open

Add option to disable snippets #212

Hubro opened this issue Jul 26, 2021 · 1 comment

Comments

@Hubro
Copy link

Hubro commented Jul 26, 2021

yang-lsp is producing snippets that conflict with my own snippets:

image

If I enable LSP completions in my completion plugin (nvim-compe) it shows both completions and snippets. I have tried unsuccessfully to disable snippets in the LSP client settings in Neovim:

lspconfig.yang_lsp.setup {
  capabilities = {
    textDocument = {
      completion = {
        completionItem = {
          snippetSupport = false
        }
      }
    }
  }
}

I'm not sure if this setting is just a suggestion for the LSP, which is ignored (?)

It would be nice if there was a setting in yang.settings that would let me disable snippets from being suggested to the editor.

@FaizanFrolic
Copy link

Hi,
We are also facing the same kind of issue. We wanted to have one of our own custom snippets for "leaf" from our plugin. It will be helpful if lsp-yang plugin provides a setting/API to enable/disable any completions/snippets OR a way to extend it from other plugins.

Screen Shot 2022-06-14 at 11 45 47 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants