aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/ui/lspinfo.lua
Commit message (Collapse)AuthorAgeFilesLines
* feat(lspinfo): replace :LspInfo with :checkhealth #3339Justin M. Keyes2024-10-021-375/+0
| | | | | | | | | | | | Problem: :LspInfo has its own "inner platlform" of highlights, mappings etc. And it doesn't integrate with :checkhealth. Solution: - Move the lspinfo code to a healthcheck. - LspInfo features such as highlights, "floating window" presentation, etc., should be added to :checkhealth in Nvim core, if they are really needed. - Define a "q" mapping until Nvim stable has that in :checkhealth.
* refactor: replace deprecated vim.loop with vim.uvdundargoc2024-10-021-1/+1
|
* feat: expose config definition as `config_def` #3335Justin M. Keyes2024-10-021-1/+1
| | | | | | | | | | | | | | Problem: Users/plugins may want to use the config definition without actually activating the config via setup(). Solution: - Expose `config_def` field and document it. - Also undeprecate some stuff that doesn't yet have a documented alternative. TODO: configs.lua sets `M.filetypes = config.filetypes` and other fields in ad-hoc fashion "for :LspInfo" but it's not clear when those fields are actually populated, and they don't source from `config_def`...
* feat: show deprecate servers list in LspInfo (#3308)glepnir2024-09-181-1/+7
| | | | | | | | | | | | * feat: show deprecate servers list in LspInfo In order to smoothly transition to the vim.lsp.start interface in the future, adding checkhealth here is meaningless. Only the lspinfo information window is available. So shown deprecate servers list in LspInfo and update the server deprecate remove version to 0.2.1. 0.2.0 is tagged too quickly cause some servers not removed. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* refactor: move all old get_clients to new compatible (#3159)glepnir2024-05-171-3/+3
|
* refactor: general cleanupLewis Russell2024-03-071-4/+4
|
* fix: remove usages of private (now deprecated) functions (#2822)Gregory Anders2023-09-201-3/+0
| | | | | Functions prefixed with _ should not be used, as they have no stability guarantees from Nvim and can be removed at anytime with no warning or replacement. _trim was such a function that was recently removed.
* fix(LspInfo): error if root_dir is nil #2813Saltaformajo2023-09-181-1/+1
| | | fix #2811
* feat: wrap get root dir in coroutine . (#2565)Raphael2023-05-061-21/+38
| | | Co-authored-by: ii14 <59243201+ii14@users.noreply.github.com>
* fix(lspinfo): sub fname to check root (#2573)Raphael2023-04-241-12/+4
|
* fix(lspinfo): use compatible api to set the lspinfo bufhidden option(#2500)Raphael2023-03-091-1/+1
| | | | | * fix(lspinfo): set the lspinfo bufhidden to wipe * fix: using api
* fix(lspinfo): normalize fname path correctly (#2343)musjj2023-02-151-2/+7
| | | | | | | | | | | | | | | | | * fix(lspinfo): normalize `fname` path correctly * fix(lspinfo): fallback to `fnamemodify` and `resolve` if file doesn't exist * fix(lspinfo): normalize Windows slashes and handle double separators * nit(lspinfo): use aliases Co-authored-by: Raphael <glephunter@gmail.com> * fix: improve check --------- Co-authored-by: Raphael <glephunter@gmail.com>
* feat: extend the syntax for LspInfo(Title|List) (#2456)Yusei Ueno2023-02-141-2/+2
| | | | replace \k with \S support e.g., null-ls
* fix: lspinfo buffer in use error when use quit command close (#2424)Raphael2023-01-271-4/+2
|
* feat: support show server doc description in LspInfo (#2373)Raphael2023-01-111-3/+54
| | | | | | | | | | | | | | | | | * feat: support show server doc description in LspInfo * feat: add show other match client desc * fix: check buf unload * fix: desc Co-authored-by: William Boman <william@redwill.se> * fix: imrove * fix: improve Co-authored-by: William Boman <william@redwill.se>
* fix(lspinfo): safely expand filenames that don't exist on fs (#2320)William Boman2022-12-181-1/+3
| | | | | | | | The filename of a buffer may point to a node on the file system that does not yet exist. `uv.fs_realpath()` will return nil in these cases, causing a nil exception later on. The builtin `resolve()` function will return the provided filename as-is if it does not yet exist. Alternatively we could stick to libuv APIs.
* feat: support multiple workspaceFolders and show correct root in Lspinfo (#2304)Raphael2022-12-111-11/+33
| | | | | | | | | | | | | * feat: support multiple workspaceFolders and show correct root in Lspinfo * fix: add return branch * fix: convert path before compare * fix: improve find root dir in LspInfo * fix: check logic * fix: remove unnecessary code
* fix: check workspae folders follow nvim version (#2301)Raphael2022-12-091-3/+4
|
* fix: remove searched for message in lspinfo (#2274)Raphael2022-12-011-7/+0
|
* fix: check cmd type equals function (#2142)Raphael2022-09-141-7/+16
| | | | | | | | | | | | | | | | | * fix: check cmd type equals function * fix: set meg in cmd field when is function * fix: format with stylua * fix: remove unused variable * fix: improve cmd check * fix: check executable in a table * fix: improve * fix: use underline instead of unused param
* fix(lspinfo): nil-check config.get_root_dir (#2137)William Boman2022-09-141-1/+1
| | | | | | This is currently causing an error when opening the :LspInfo window while having a server configuration that doesn't provide a root_dir. awk_ls is an example of such a config (it only supports single file mode).
* fix: improve highlight regex (#2131)Raphael2022-09-121-12/+9
|
* feat: improve LspInfo (#2081)Raphael2022-08-261-13/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: improve LspInfo * feat: update README for highlight * fix: wrong typo * fix: ci failed * fix: remove unnecessary block * fix: stylua format * fix: set default border to none * fix: update the doc * fix: define names in if statement * fix: use default_options to set border * fix: use available servers list * fix: fixup * fix: format by stylua * fix: use bufdelete event * fix: format * fix: add tips * fix: stylua format * fix: use wrap * fix: add 122 to luacheck ignore * fix: reset the default options * fix: merge master * fix: remove unecessary code * feat: update the highlight group * feat: update doc for highlight * fix: remove highlig from README * fix: remae highlight group in doc
* fix: remove unused variables in `lspinfo.lua` (#1999)Peter Lithammer2022-07-141-7/+0
| | | | | | | | | | | | | | | | | | | | | | ```console $ selene . warning[unused_variable]: buf_client_names is assigned a value, but never used ┌─ lua/lspconfig/ui/lspinfo.lua:160:9 │ 160 │ local buf_client_names = {} │ ^^^^^^^^^^^^^^^^ 161 │ for _, client in pairs(buf_clients) do 162 │ table.insert(buf_client_names, client.name) │ ---------------- `table.insert` only writes to `buf_client_names` warning[unused_variable]: client_names is assigned a value, but never used ┌─ lua/lspconfig/ui/lspinfo.lua:171:9 │ 171 │ local client_names = {} │ ^^^^^^^^^^^^ · 176 │ table.insert(client_names, client.name) │ ------------ `table.insert` only writes to `client_names` ```
* fix(lspinfo): may use wrong buffer #1983William Boman2022-07-051-3/+6
| | | The `vim.fn.expand '%:p:h'` used to acquire the directory of the opened buffer would actually be executed in the context of the floating `:LspInfo` - causing it to return the current working directory instead of the actual buffer directory (the one that was active when opening the `:LspInfo` window).
* fix(lspinfo): trim newlines in root_dir pattern (#1962)William Boman2022-06-181-1/+4
|
* feat(lspinfo): explain root directory not found #1939William Boman2022-06-091-2/+35
|
* fix: remove dependency on deprecated close_preview_autocommand (#1575)Michael Lingelbach2021-12-161-1/+3
|
* chore: clean up importsMichael Lingelbach2021-11-251-3/+3
|
* feat: add single file mode (#1385)Michael Lingelbach2021-11-111-1/+5
| | | | | | | | | | | | * This adds a "single file mode" option for each language server * Currently, if a root is not detected, a new language server is started for each file opened. * Root directory is set to `nil` in start_client. Some servers will refuse to start, or otherwise panic. This is opt-in per server. * Some servers, such as rust-analyzer, explicitly have a "single file mode", we will not support that until it is officially part of the LSP specification Co-authored-by: Peter Lithammer <peter.lithammer@gmail.com>
* feat(lspinfo): improve layout (#1186)kylo2522021-08-281-109/+173
|
* Revert "feat(ui): lspinfo: better layout #1184)" (#1185)Michael Lingelbach2021-08-251-171/+102
| | | This reverts commit d6e78ef013a57761226df5b842d52912f15011dd.
* feat(ui): lspinfo: better layout #1184)kylo2522021-08-251-102/+171
|
* chore: refactor ui components (#1172)Michael Lingelbach2021-08-241-0/+155