Skip to content

Add option to disable snippets #212

Description

@Hubro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions