Commit graph

2891 commits

Author SHA1 Message Date
Matt Sturgeon
7087b6014d
plugins/cmp-git: general cleanup of options
- Replace all pre-formatted plugin defaults
- Move several options to `strLuaFn`
- Refactored "action" options to use a `mkAction` helper
- Fix some incorrect examples/tests
- Remove undocumented `filter_fn` from settings example
2024-06-17 09:04:50 +01:00
Matt Sturgeon
130a66bce7
plugins/ltex-extra: minor options cleanup
- Remove stringified default values
- Use an enum for log levels
- Remove adding package (done by mkNeovimPlugin)
2024-06-17 08:51:33 +01:00
Matt Sturgeon
36b4a39b2b
lib/types: allow assigning raw lua to string lua
Relax the check a little to allow (slightly) incorrect usage and enable migrating option types to string lua types.
2024-06-17 00:01:40 +01:00
Matt Sturgeon
2d063c2c24
lib/types: simplify isRawType
No change in behaviour.
2024-06-17 00:01:39 +01:00
Matt Sturgeon
69e43a6bf9
plugins/none-ls: refactor mkRaw
- Allow passing raw types through mkRaw
- Throw an error when passing invalid input into mkRaw
2024-06-17 00:01:39 +01:00
Nikhil Singh
6ac0d2869d docs/config-examples: add niksingh710's config 2024-06-16 23:18:17 +05:30
Matt Sturgeon
7a2a25af02
ci: simplify docs-build workflow 2024-06-14 15:42:05 +01:00
Gaetan Lepage
3834c4e0db plugins/cmp: add cmp_ai source 2024-06-14 16:25:00 +02:00
Matt Sturgeon
582641a639
lib/options: fix minor typo 2024-06-14 12:29:53 +01:00
Matt Sturgeon
8e8c22ce65
lib/options: rename convertArgs to processDefaultNullArgs 2024-06-14 12:28:59 +01: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
e51b8b9b5c
lib/options: remove defaultNullOpts.mkDesc
Leave a stub for now, which aborts with an error message.
2024-06-14 10:56:11 +01:00
Matt Sturgeon
6e979dbe94
plugins/barbar: switch from mkDesc to pluginDefaultText 2024-06-14 10:49:06 +01:00
Matt Sturgeon
44cd01b253
plugins/edgy: switch from mkDesc to pluginDefault 2024-06-14 10:49:05 +01:00
Matt Sturgeon
a8943f2502
lib/options: allow pluginDefault in any helper
All helpers eventually go through `mkNullOrOption`, so we can move where
`pluginDefault` is handled there.

Added a private helper `processNixvimArgs` that can be used by any future
helper that needs to call `lib.mkOption` directly.

It might make sense to offer a `helpers.mkOption` which simply wraps
`lib.mkOption` but with support for custom args like `pluginDefault`?
2024-06-14 10:49:05 +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
Michael Thomas
db93efffdb plugins/toggleterm: allow lua functions in float_opts keys which support them 2024-06-14 09:05:24 +02: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
Matt Sturgeon
4ab2b289b6
plugins/none-ls: more compatible gdtoolkit fix
Nixpkgs renamed to gdtoolkit_3 & _4 without maintaining an alias!
Out of sync lock files could be using either attr name...
2024-06-13 13:43:43 +01:00
Matt Sturgeon
f8787bd23b
docs: capitalize URL 2024-06-13 05:46:16 +01:00
Matt Sturgeon
5c9b98e64d
docs: render maintainers with github links
If a maintainer has their github defined, render their name as a link to
their github profile.
2024-06-13 05:42:49 +01:00
svl
cc9023fb1d plugins/languages/lint: allow irregular linters
setting `linters.markdownlint-cli.cmd` would genenrate

before:
`linters.markdownlint-cli.cmd` resulting in an error.

after:
`linters["markdownlint-cli"]["cmd"]`
2024-06-12 16:25:02 +02:00
Gaetan Lepage
34d75943ed plugins/neotest/adapters/playwright: temporarily enable telescope when this adapter is used
https://github.com/NixOS/nixpkgs/pull/319314
2024-06-12 15:04:09 +02:00
Gaetan Lepage
4edfed1075 plugins/none-ls: add package association for xmllint 2024-06-12 15:04:09 +02:00
Gaetan Lepage
d777475e69 plugins/none-ls: add package association for opentofu_fmt 2024-06-12 15:04:09 +02:00
Drewry Pope
ca7db4316d plugins/none-ls: update gdtoolkit to gdtoolkit_4 2024-06-12 15:04:09 +02:00
github-actions[bot]
ded9ca4029 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/a7117efb3725e6197dd95424136f79147aa35e5b' (2024-06-04)
  → 'github:nix-community/home-manager/3d65009effd77cb0d6e7520b68b039836a7606cf' (2024-06-09)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/c0d5b8c54d6828516c97f6be9f2d00c63a363df4' (2024-05-29)
  → 'github:lnl7/nix-darwin/315aa649ba307704db0b16c92f097a08a65ec955' (2024-06-09)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/051f920625ab5aabe37c920346e3e69d7d34400e' (2024-06-07)
  → 'github:NixOS/nixpkgs/c7b821ba2e1e635ba5a76d299af62821cbcb09f3' (2024-06-09)
2024-06-12 15:04:09 +02: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
Gaetan Lepage
de9b81c7e7 plugins/specs: add tests 2024-06-11 08:12:09 +02:00
Gaetan Lepage
9d0960b986 plugins/specs: switch to mkNeovimPlugin 2024-06-11 08:12:09 +02:00
Gaetan Lepage
5361e42828 plugins/specs: move source files to the ui folder 2024-06-11 08:12:09 +02:00
Matt Sturgeon
33a32c9417
lib/options: move "plugin default" into defaultText
Introduce a new `helpers.pluginDefaultText` and deprecate `helpers.defaultNullOpts.mkDesc`.

Displaying the "plugin default" within `defaultText` ensures that both
defaults are grouped together in the docs.

Also take the first step towards transitioning `defaultNullOpts` from
using `default` to `pluginDefault` to mean "plugin default".
2024-06-10 15:11:21 +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
github-actions[bot]
f2d38e0a3c flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e8057b67ebf307f01bdcc8fba94d94f75039d1f6' (2024-06-05)
  → 'github:NixOS/nixpkgs/051f920625ab5aabe37c920346e3e69d7d34400e' (2024-06-07)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/3eb96ca1ae9edf792a8e0963cc92fddfa5a87706' (2024-06-01)
  → 'github:numtide/treefmt-nix/4fc1c45a5f50169f9f29f6a98a438fb910b834ed' (2024-06-08)
2024-06-09 10:25:48 +02: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
Gaetan Lepage
70088f6f89 plugins/wakatime: init 2024-06-08 22:38:46 +02:00
Cezary Drożak
e8a05261d5
plugins/luasnip: add SnipMate loader 2024-06-08 20:56:17 +01:00
github-actions[bot]
db32ebe205 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/57610d2f8f0937f39dbd72251e9614b1561942d8' (2024-05-31)
  → 'github:NixOS/nixpkgs/e8057b67ebf307f01bdcc8fba94d94f75039d1f6' (2024-06-05)
2024-06-08 17:43:14 +02:00
Sizhe Zhao
dedb1f8593 plugins/nvim-cmp: don't specify default twice 2024-06-08 12:29:25 +02:00
Jake Hamilton
552e8b0a85
plugins/dashboard: add additional examples 2024-06-07 23:39:28 +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
f34fda8d99
meta: extend meta.nixvimInfo support treewide
Rather than supplying a `kind` and `name` pair, we now supply a raw
path.

This path could point to any nixvim option.
2024-06-07 22:22:55 +01:00
Matt Sturgeon
b2a477260d
docs: emphasise "Plugin default" to match nixpkgs
Nixpkg's "headings" are emphasised in italics ("Default", "Example",
"Type", etc). We should match the style.
2024-06-07 17:47:33 +01:00
Matt Sturgeon
ade4539b3f
lib/options: defaultNullOpts don't require having a default
Made the `default` and `description` arguments optional for all prime
variants of `defaultNullOpts` functions.

If neither `default` nor `description` are provided, the option will
have no description.

The "Plugin default" line is only added when a `default` argument is
present (`args ? default`).
2024-06-07 17:34:46 +01:00
Matt Sturgeon
94a452074f
plugins/tmux-navigator: add keymaps option
Enable users to more easily create keymaps for tmux-navigator's
directional motions.
2024-06-07 15:42:54 +01:00
Matt Sturgeon
4634c3781b
plugins/tmux-navigator: remove old deprecations 2024-06-07 15:42:54 +01:00