diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-10-16 12:23:13 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2024-10-18 12:30:55 +0200 |
| commit | 679d978e644778abcf7b4552f9b763c040a8f0b5 (patch) | |
| tree | bce3c06c00e604d48721e72a780c15860da8455c /lua/lspconfig/configs/hls.lua | |
| parent | refactor: minor cleanup #3379 (diff) | |
| download | nvim-lspconfig-679d978e644778abcf7b4552f9b763c040a8f0b5.tar nvim-lspconfig-679d978e644778abcf7b4552f9b763c040a8f0b5.tar.gz nvim-lspconfig-679d978e644778abcf7b4552f9b763c040a8f0b5.tar.bz2 nvim-lspconfig-679d978e644778abcf7b4552f9b763c040a8f0b5.tar.lz nvim-lspconfig-679d978e644778abcf7b4552f9b763c040a8f0b5.tar.xz nvim-lspconfig-679d978e644778abcf7b4552f9b763c040a8f0b5.tar.zst nvim-lspconfig-679d978e644778abcf7b4552f9b763c040a8f0b5.zip | |
fix(lspinfo)!: remove config.lspinfo
Problem:
`config.lspinfo` is an undocumented feature that allows extending the
info shown in `:LspInfo` (`:checkhealth lspconfig`).
This feature is unwanted because:
- it's undocumented
- it adds a maintenance burden
- it provides info that should be derived from the LSP protocol itself.
Solution:
Remove support for `config.lspinfo`.
Instead, `:LspInfo` (`:checkhealth lspconfig`) should be enhanced to
automatically gather this kind of extra info from the server response.
Diffstat (limited to 'lua/lspconfig/configs/hls.lua')
| -rw-r--r-- | lua/lspconfig/configs/hls.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lua/lspconfig/configs/hls.lua b/lua/lspconfig/configs/hls.lua index 4390440d..99426b5e 100644 --- a/lua/lspconfig/configs/hls.lua +++ b/lua/lspconfig/configs/hls.lua @@ -12,22 +12,6 @@ return { cabalFormattingProvider = 'cabalfmt', }, }, - lspinfo = function(cfg) - local extra = {} - local function on_stdout(_, data, _) - local version = data[1] - table.insert(extra, 'version: ' .. version) - end - - local opts = { - cwd = cfg.cwd, - stdout_buffered = true, - on_stdout = on_stdout, - } - local chanid = vim.fn.jobstart({ cfg.cmd[1], '--version' }, opts) - vim.fn.jobwait { chanid } - return extra - end, }, docs = { |
