Commit Graph

56 Commits

Author SHA1 Message Date
Justin M. Keyes
e6569c18c2
feat(lspinfo): replace :LspInfo with :checkhealth #3339
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.
2024-10-02 06:57:18 -07:00
Justin M. Keyes
ae7698f4fe
feat: expose config definition as config_def #3335
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`...
2024-10-02 02:50:41 -07:00
Justin M. Keyes
aa615f6230 docs: help tags for :LspFoo commands 2024-10-01 17:54:35 +02:00
Justin M. Keyes
6b6ce782c2
docs: cleanup, deprecate APIs #3328 2024-09-29 14:40:36 -07:00
glepnir
73e0002b6f
feat: show deprecate servers list in LspInfo (#3308)
* 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>
2024-09-18 20:36:07 +08:00
Gregory Anders
b972e7154b
docs: delete lspconfig-keybindings section (#3175)
This section is way too verbose and encourages sloppy copy-pasting. Nvim
already ships help documentation for configuring the LSP client, so
instead of duplicating that information, point users toward upstream
docs instead.
2024-05-23 16:15:01 -05:00
Maria José Solano
d0a4176a19
fix: let core handle 'workspace/didChangeConfiguration' after init (#3023) 2024-02-24 19:04:29 +01:00
Evgeny Zislis
9099871a7c
fix: typo in util documentation (#2947) 2023-12-22 11:05:33 +08:00
Sten Arthur Laane
6c797ff932
docs: fix typo in keybind section (#2924)
Co-authored-by: Sten Laane <stenarthur.laane@mil.ee>
2023-12-06 18:08:25 +08:00
Emilio Ziniades
7384e7149e
fix: util.root_pattern prioritises pattern order (#2885)
* fix: util.root_pattern prioritises pattern order

Instead of traversing the filesystem upwards once and
returning the first match of all the patterns, it traverses
the filesystem upwards once for each pattern. This means
that the order of the patterns provided matters, and the
highest priority patterns should be put first. Also updated
corresponding tests.

* docs: update util.root_pattern description
2023-11-18 15:40:13 +08:00
UnkwUsr
c0de180ddb
docs: rename deprecated resolved_capabilities -> server_capabilities (#2746)
According to c618b314c6
2023-08-04 13:57:48 +08:00
ii14
01b25ff1a6
docs: make vimdocs consistent with readme (#2732)
Co-authored-by: ii14 <ii14@users.noreply.github.com>
2023-07-25 13:37:59 +08:00
dundargoc
8cbfc30c4b
docs: fix typo 2023-04-01 21:08:41 +02:00
Raphael
41dc4e0173
docs: fix typo (#2382) 2023-01-07 18:49:59 +08:00
Raphael
0c038493b3
docs: fix typo (#2310) 2022-12-12 19:16:29 +08:00
Raphael
23c72d4da3
feat: support force stop language server (#2294)
* feat: support force stop language server

* feat: use vim syntax

* feat: update doc
2022-12-07 20:21:21 +08:00
Raphael
8faa599646
feat: support unnamed buffer with single_file_support (#2226)
* feat: support unnamed buffer with single_file_support

* fix: make some code simple clear

* feat: update doc

* fix: grammar

* fix: grammar
2022-12-06 17:23:41 +08:00
Horror Proton
03a09b930b
docs: vim.lsp.buf.formatting() is deprecated (#2166) 2022-10-02 08:22:10 +08:00
Raphael
b89530f9f8
Revert "fix: remove the config.commands (#2092)" (#2093)
This reverts commit 99e0dc9937.
2022-08-26 21:25:39 +08:00
Raphael
99e0dc9937
fix: remove the config.commands (#2092)
* fix: remove the config.commands

* fix: format by stylua and remove comamnds test

* fix: remove commands from doc

* fix: remove unused function
2022-08-26 20:49:40 +08:00
Raphael
03981bd991
feat: improve LspInfo (#2081)
* 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
2022-08-26 20:38:35 +08:00
Ranjith Hegde
fe7a6f41e5
feat!: 0.7 API update (#1984)
* switch to lua api for autocommands
* switch to nvim_create_user_command
* move to lua plugin initialization

NOTICE: Defining commands in server configurations will be deprecated in
future releases.
See `:help lspconfig.txt` to setup the same in an `on_attach` function.

Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
2022-08-23 07:03:20 -07:00
kylo252
4a09c346e4
docs: add an entry about the setup-hook (#1873) 2022-08-23 16:18:16 +08:00
Justin M. Keyes
4f94bf5ba9 docs: unverbose, mention "settings" param
Problem:
- The docs are verbose.
- The "settings" param is not really clarified anywhere.

Solution:
- Mention the "settings" param in the README.
- Tighten up the wording.
- Remove the "Use a loop to conveniently call 'setup'..." advice in the
  docs. It confuses users and doesn't really save much code.
- Start to reduce the scope of nvim-lspconfig.
  - For example, it is redundant for it to document general LSP things.
    Thus, the help section *lspconfig-lsp* was removed.

closes #1951
2022-06-13 01:44:59 -07:00
Kurtis
134a291fec
fix(docs): vim.lsp.buf.format -> vim.lsp.buf.formatting (#1936)
There doesn't appear to actually be a function called `format`.
Instead, I believe what we actually want here is a call `formatting`.

Co-authored-by: Kurtis Nusbaum <kcommiter@gmail.com>
2022-06-03 08:09:46 -07:00
Kurtis
7be59acd6e
fix(docs): update example keybindings documentation (#1899) 2022-06-01 07:26:02 -07:00
William Boman
2972d9264b
feat: add :LspLog command #1917 2022-05-22 06:39:16 -07:00
Michael Lingelbach
700eda9131
chore: remove all package.json (#1656) 2022-02-25 09:02:19 -08:00
daangoossens22
d00966c011
docs: update suggested keybinds (#1689) 2022-01-28 13:58:00 -08:00
Michael Lingelbach
b1c5ed0af3
docs: update readme (#1677) 2022-01-23 11:10:21 -08:00
Michael Lingelbach
bba61ed968
fix: internally use forward delineated paths cross-platform (#1593)
* Escape paths used to autocommands
* Always normalize windows path to forward slash for internal use
2021-12-23 10:43:16 -05:00
zeertzjq
382712c4ec
docs: replace mention of deprecated APIs (#1532) 2021-12-03 15:54:34 -08:00
Michael Lingelbach
bbc5405169
docs: update adding a new server example (#1499) 2021-11-27 09:44:50 -05:00
Michael Lingelbach
d52e45acf9
docs: make |lspconfig-server-configurations| jump to the markdown file (#1497)
* generating the tags at docgen and modifying the
|lspconfig-server-configurations|
tag allows `:help lspconfig-server-configurations` take you to
./doc/server_configurations.md
* adding a modeline to the markdown file ensures it sets the
correct filetype

Co-authored-by: Javier López <graulopezjavier@gmail.com>
2021-11-27 09:01:30 -05:00
Michael Lingelbach
b49965f543
fix: single_file_mode should be single_file_support (#1489) 2021-11-26 10:35:12 -05:00
Michael Lingelbach
97da7ed12e chore: clean up imports 2021-11-25 23:46:21 -05:00
wdrap
27d2c116fd
docs: fix typo in lspconfig.txt (#1434) 2021-11-16 16:13:50 -08:00
Michael Lingelbach
0d1ce78d23
feat: add single file mode (#1385)
* 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>
2021-11-11 01:00:24 -08:00
dundargoc
5b328b6cd4
docs: fixed incorrect tag (#1391) 2021-11-09 16:15:59 -08:00
Michael Lingelbach
d1dd1a6675
docs: follow-up fixes from overhaul (#1389) 2021-11-09 10:26:37 -08:00
Michael Lingelbach
3d85ff447d
docs: documentation overhaul (#1384)
* remove automated generation of vimdoc + ci
* unify ADVANCED_README.md and vimdoc
* rename CONFIGS.md to server_configurations.md, move into doc folder
* move CONTRIBUTING.md to .github folder
2021-11-09 09:53:21 -08:00
Github Actions
cb037a0c07 docs: update README.md
skip-checks: true
2021-10-30 21:43:08 +00:00
Github Actions
3d092fc8d4 docs: update README.md
skip-checks: true
2021-10-16 04:46:44 +00:00
Github Actions
5b0fa84ee3 [docgen] Update README.md
skip-checks: true
2021-08-22 15:29:03 +00:00
Github Actions
b4661ec91e [docgen] Update README.md
skip-checks: true
2021-08-15 14:44:47 +00:00
Github Actions
316a9e824b [docgen] Update README.md
skip-checks: true
2021-07-26 19:53:24 +00:00
Github Actions
f9d30db7d4 [docgen] Update README.md
skip-checks: true
2021-07-20 20:27:19 +00:00
Github Actions
a33a5dbc2a [docgen] Update README.md
skip-checks: true
2021-07-03 19:28:07 +00:00
Github Actions
6a25eb0d3f [docgen] Update README.md
skip-checks: true
2021-05-25 11:39:08 +00:00
Github Actions
e883e23305 [docgen] Update README.md
skip-checks: true
2021-05-22 19:44:29 +00:00