diff options
| author | Anton Kastritskii <halloy52@gmail.com> | 2024-10-09 06:22:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-09 13:22:43 +0800 |
| commit | 92d69f08b228054e27a4f0f2e729ce4ef632b24a (patch) | |
| tree | 0e49ceb6cc62b66944ea57d3de4697dd55951d4c /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-92d69f08b228054e27a4f0f2e729ce4ef632b24a.tar nvim-lspconfig-92d69f08b228054e27a4f0f2e729ce4ef632b24a.tar.gz nvim-lspconfig-92d69f08b228054e27a4f0f2e729ce4ef632b24a.tar.bz2 nvim-lspconfig-92d69f08b228054e27a4f0f2e729ce4ef632b24a.tar.lz nvim-lspconfig-92d69f08b228054e27a4f0f2e729ce4ef632b24a.tar.xz nvim-lspconfig-92d69f08b228054e27a4f0f2e729ce4ef632b24a.tar.zst nvim-lspconfig-92d69f08b228054e27a4f0f2e729ce4ef632b24a.zip | |
feat: add basics_ls server config (#3361)
Basics language server provides completion for buffer words, paths, and snippets. The goal is to allow current neovim users to test the built-in lsp completion without 3rd party plugins until neovim gains support for adding custom completion sources.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/basics_ls.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/basics_ls.lua b/lua/lspconfig/configs/basics_ls.lua new file mode 100644 index 00000000..780e92c2 --- /dev/null +++ b/lua/lspconfig/configs/basics_ls.lua @@ -0,0 +1,30 @@ +return { + default_config = { + cmd = { 'basics-language-server' }, + single_file_support = true, + settings = { + buffer = { + enable = true, + minCompletionLength = 4, + }, + path = { + enable = true, + }, + snippet = { + enable = false, + sources = {}, + }, + }, + }, + docs = { + description = [[ +https://github.com/antonk52/basics-language-server/ + +Buffer, path, and snippet completion + +```sh +npm install -g basics-language-server +``` +]], + }, +} |
