neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
10.6k stars 2.08k forks source link

Include null-ls as alternative for Snippets support #2064

Closed paulodiovani closed 2 years ago

paulodiovani commented 2 years ago

Language server

null-ls

Requested feature

Currently, lspconfig suggest either cmp or coq for snippets support, but both these options are hard to configure (compared to lspconfig) and include a lot more (maybe unwanted) features, including:

As an alternative, null-ls can be used for extra completions, and supports luasnip or vssnip as sources for snippets (https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#completion) with a far easier setup.

For people who wants to dive into the native lsp support without huge plugins, null-ls seems a better alternative. I've tried cmp and coq and found both too intrusive for my simple nvim setup.

Other clients which have this feature

No response

justinmk commented 2 years ago

If this is a suggestion for the documentation, send a PR.

paulodiovani commented 2 years ago

No PR for the wiki, so I just included in https://github.com/neovim/nvim-lspconfig/wiki/Snippets#null-ls--luasnip