Commit graph

196 commits

Author SHA1 Message Date
Matt Sturgeon
0f07201a0c
plugins/lsp: normalize plugin defaults 2024-06-21 08:49:08 +01:00
Gaetan Lepage
f5de31debc pugins/lsp/rust-analyzer: temporarily remove rust-analyzer settings options declarations 2024-06-18 11:38:52 +02:00
Gaetan Lepage
8609ea3ce4 plugins/lsp/bashls: set correct package 2024-06-18 11:38:52 +02:00
Matt Sturgeon
5cec79e59f
lib/options: migrate defaultNullOpts to use pluginDefault
Rename all instances where the plugin default argument is named
`default` to `pluginDefault` to avoid conflict.
2024-06-14 12:25:06 +01:00
Matt Sturgeon
eb5c090e90
plugins/lsp/tflint: init 2024-06-14 09:46:32 +01:00
Matt Sturgeon
ea5078fc10
plugins/lsp/jsonnet-ls: init 2024-06-14 09:31:12 +01:00
Théophane Hufschmitt
80c03843e7 plugins/lsp: add nickel-ls
Add `nls`, the official language server for the Nickel language.

https://github.com/tweag/nickel/
2024-06-13 16:48:56 +02:00
darkdarcool
01aa3d469e
plugins/lsp: fix incorrect inlay_hint usage
The previous implementation used an outdated function signature, which
no longer works. Switched to the correct usage as-per the docs.
2024-06-13 13:46:53 +01:00
Gaetan Lepage
7a2d065cce misc: ensure all options have a description 2024-06-11 11:34:10 +02:00
Matt Sturgeon
3be9db71c2
plugins/lsp/nixd: add "diagnostic" options
Used to suppress unwanted hints/warnings.
2024-06-11 09:22:58 +01:00
Matt Sturgeon
893b28779d
plugins/lsp/nixd: remove pre-formatted string default 2024-06-11 09:22:58 +01:00
Matt Sturgeon
8a462dc957
plugins/lsp: fix inlayHints description
`mkEnableOption` adds an extra `.`, just use `mkOption` and be explicit.
2024-06-09 09:35:56 +01:00
Matt Sturgeon
4a22c35e6d
plugins/lsp: add inlay-hint option
`onAttach` code is based on [this comment](https://github.com/lvimuser/lsp-inlayhints.nvim/issues/46#issuecomment-1949916683).

Documented upstream at [`:h lsp-inlay_hint`](https://neovim.io/doc/user/lsp.html#lsp-inlay_hint)
2024-06-09 08:55:53 +01:00
Matt Sturgeon
2ce578e35f
docs/lsp: Show LSP server homepage URLs
Using `meta.nixvimInfo`
2024-06-07 22:22:56 +01:00
Matt Sturgeon
302262304e
lib/keymaps: refactor mkMapOptionSubmodule again
Allow passing in `key` and `action` as either bool or an attrset.

If `false`, the option is omitted. If `true` or an attrset, the option is included.
If an attrset is used, it will update the default `mkOption` args.
This is useful for overriding `type` or adding an `example`.
2024-06-07 15:42:54 +01:00
Gaetan Lepage
74a6731226 plugins/schemastore: init 2024-06-06 10:53:41 +02:00
Beaudan Brown
cfff48c267
plugins/lsp: add r_language_server 2024-06-04 18:34:23 +01:00
Matt Sturgeon
b7a8b03190
plugins/lsp: normalise kebab-case-names 2024-06-03 20:56:37 +01:00
Matt Sturgeon
0a24327632
plugins/lsp: automatically add serverName alias
A warning will be printed if the `serverName` alias is used, which may
help new users to figure out the correct `plugins.lsp.servers.*` name.
2024-06-03 20:56:37 +01:00
Matt Sturgeon
61fa26c9e9
plugins/lsp: remove installLanguageServer assertion 2024-06-03 18:10:28 +01:00
Gaetan Lepage
4b05fde873 plugins/lsp/efmls-configs: simplify implementation 2024-06-03 17:16:46 +02:00
Gaetan Lepage
dafada6d25 plugins/lsp/efmls-configs: cosmetic-only refactoring 2024-06-03 09:40:33 +02:00
Gaetan Lepage
513b3c76e2 plugins/lsp/nil_ls: refactor options 2024-06-02 23:50:43 +02:00
Matt Sturgeon
d136c08f3a
plugins: normalise null plugin-defaults
Replaced all instances of `"null"` with `null`, when passing
plugin-defaults to `defaultNullOpts` functions.
2024-06-02 03:18:10 +01:00
Gaetan Lepage
e58380adcd plugins/lsp/ltex: refactoring of the settings options 2024-06-01 22:44:52 +02:00
Gaetan Lepage
7c3ae8c718 plugins/lsp/lua-ls: refactor settings options 2024-06-01 19:06:02 +02:00
Gaetan Lepage
adf7bb1301 plugins/lsp/lua-ls: remove useless if/else for default package 2024-06-01 19:06:02 +02:00
Matt Sturgeon
df3aa86713
lib/keymap-helpers: refactor mkMapOptionSubmodule
Make the `key` and `action` options optional, and allow configuring
whether `action` can be a raw type.
2024-06-01 16:19:35 +01:00
Gaetan Lepage
1bbd58b6b2 plugins/lsp: add ruby-lsp 2024-05-31 22:40:43 +02:00
Gaetan Lepage
da9bd1f2e8 plugins/efmls-configs: add typstyle formatter 2024-05-30 16:56:47 +02:00
Matt Sturgeon
ff1ab1700c
lib/options: mkEnum quote default if string
As there's only a handful of call-sites to fix, ensure all `mkEnum`
defaults are passed in as the correct type (tree wide) and change
`mkEnum` to now correctly render string-type defaults "quoted" (like
`mkString` does).
2024-05-30 14:27:37 +01:00
ben
993deb227e plugins/lsp-status: init 2024-05-30 14:23:23 +02:00
Gaetan Lepage
4175fac0ea keymaps: remove remaining usages of deprecated lua option 2024-05-27 14:57:40 +02:00
Austin Horstman
ba293d3640 plugins/lsp/language-servers/nil_ls: improve settings options 2024-05-26 23:33:17 +02:00
Gaetan Lepage
546b4b029d
plugins/jsonls: add settings option 2024-05-25 22:26:50 +01:00
Gaetan Lepage
f3e2a064a1
plugins/yamlls: add settings option 2024-05-25 22:26:50 +01:00
Gaetan Lepage
818834a7bb plugins/lsp-format: fix setup example 2024-05-20 12:01:55 +02:00
Gaetan Lepage
26367692da lib/options: rename mkPackageOption to mkPluginPackageOption 2024-05-17 22:15:47 +02:00
Gaetan Lepage
d844ac1a06 plugins/lsp/tinymist: add settings options 2024-05-17 09:36:12 +02:00
Gaetan Lepage
6be28a941b plugins/lsp/nixd: refactor 2024-05-15 23:13:33 +02:00
Gaetan Lepage
f14aa756ba plugins/lsp/vls: inline options and config in language-servers/default.nix 2024-05-15 23:13:33 +02:00
Gaetan Lepage
e97755be47 plugins/lsp/language-servers: add extraOptions argument to mkLsp 2024-05-15 23:13:33 +02:00
Gaetan Lepage
2705ce0ec6 plugins/lsp/language-servers: harmless refactor 2024-05-15 08:44:25 +02:00
traxys
908932b53c plugins/nixd: Adapt to new options
Note that due to the structure of the code we can't introduce
deprecation warnings, it results in:

  cannot find attribute `plugins.lsp.servers.nixd.settings.XXX`
2024-05-12 19:27:25 +02:00
traxys
62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Gaetan Lepage
20aea5cd7a plugins/lsp: move dartls options in a dedicated file 2024-05-03 11:11:51 +02:00
Gaetan Lepage
afa64f35ee plugins/lsp/helpers/mkLsp: add extraConfig argument 2024-05-01 17:45:16 +02:00
Gaetan Lepage
b5dbe0bb69 plugins/lsp: make plugins.lsp.servers.*.settings RFC-42 compliant 2024-05-01 17:45:16 +02:00
Gaetan Lepage
bf23dfdb0f plugins/lsp: add nginx-language-server 2024-04-29 09:43:58 +02:00
Gaetan Lepage
b12d81c69a plugins/lsp: add ast-grep language server 2024-04-29 07:36:37 +02:00