| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
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>
|
| | |
|
| | |
|
| |
|
|
|
| |
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 #2811
|
| |
|
| |
Co-authored-by: ii14 <59243201+ii14@users.noreply.github.com>
|
| | |
|
| |
|
|
|
| |
* fix(lspinfo): set the lspinfo bufhidden to wipe
* fix: using api
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
| |
replace \k with \S
support e.g., null-ls
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
|
|
| |
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
* 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 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
|
| |
|
|
|
|
| |
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: increase the lspinfo window row value
* fix: fixup
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
```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`
```
|
| |
|
| |
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).
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| | |
|
| |
|
| |
This reverts commit d6e78ef013a57761226df5b842d52912f15011dd.
|
| | |
|
| |
|