diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-11-01 16:31:51 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-12-10 17:16:01 +0000 |
commit | 3f1d09bc94d02266d6fa588a2ccd1be1ca084cf7 (patch) | |
tree | f296c9607155bffe75ebaa23e20b19c36ecb87f1 /runtime/doc/options.txt | |
parent | ca760e645ba4d1fdb0b6fff3ac98231c3d683306 (diff) | |
download | rneovim-3f1d09bc94d02266d6fa588a2ccd1be1ca084cf7.tar.gz rneovim-3f1d09bc94d02266d6fa588a2ccd1be1ca084cf7.tar.bz2 rneovim-3f1d09bc94d02266d6fa588a2ccd1be1ca084cf7.zip |
feat(lsp): add vim.lsp.config and vim.lsp.enable
Design goals/requirements:
- Default configuration of a server can be distributed across multiple sources.
- And via RTP discovery.
- Default configuration can be specified for all servers.
- Configuration _can_ be project specific.
Solution:
- Two new API's:
- `vim.lsp.config(name, cfg)`:
- Used to define default configurations for servers of name.
- Can be used like a table or called as a function.
- Use `vim.lsp.confg('*', cfg)` to specify default config for all
servers.
- `vim.lsp.enable(name)`
- Used to enable servers of name. Uses configuration defined
via `vim.lsp.config()`.
Diffstat (limited to 'runtime/doc/options.txt')
-rw-r--r-- | runtime/doc/options.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 5763d16cad..6fe208f506 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4810,6 +4810,7 @@ A jump table for the options with a short description can be found at |Q_op|. indent/ indent scripts |indent-expression| keymap/ key mapping files |mbyte-keymap| lang/ menu translations |:menutrans| + lsp/ LSP client configurations |lsp-config| lua/ |Lua| plugins menu.vim GUI menus |menu.vim| pack/ packages |:packadd| |