Commit Graph
1557 Commits
Author SHA1 Message Date
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
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
Matt Sturgeon c16533b3f7 lib: add upperFirstChar
A util function to capitalize the first character of a string.
2024-06-07 09:17:29 +01:00
github-actions[bot] 36f2e51b28 flake.lock: Update
Flake lock file updates:

• Updated input 'devshell':
    'github:numtide/devshell/12e914740a25ea1891ec619bb53cf5e6ca922e40' (2024-04-19)
  → 'github:numtide/devshell/1ebbe68d57457c8cae98145410b164b5477761f4' (2024-06-03)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/8dc45382d5206bd292f9c2768b8058a8fd8311d9' (2024-05-16)
  → 'github:hercules-ci/flake-parts/2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8' (2024-06-01)
• Updated input 'git-hooks':
    'github:cachix/git-hooks.nix/0e8fcc54b842ad8428c9e705cb5994eaf05c26a0' (2024-05-20)
  → 'github:cachix/git-hooks.nix/cc4d466cb1254af050ff7bdf47f6d404a7c646d1' (2024-06-06)
• Updated input 'home-manager':
    'github:nix-community/home-manager/29c69d9a466e41d46fd3a7a9d0591ef9c113c2ae' (2024-05-30)
  → 'github:nix-community/home-manager/a7117efb3725e6197dd95424136f79147aa35e5b' (2024-06-04)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9ca3f649614213b2aaf5f1e16ec06952fe4c2632' (2024-05-27)
  → 'github:NixOS/nixpkgs/57610d2f8f0937f39dbd72251e9614b1561942d8' (2024-05-31)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/2fba33a182602b9d49f0b2440513e5ee091d838b' (2024-05-17)
  → 'github:numtide/treefmt-nix/3eb96ca1ae9edf792a8e0963cc92fddfa5a87706' (2024-06-01)
2024-06-06 15:40:57 +02:00
Gaetan Lepage f1289fadee misc/post-release 24.05: update workflows 2024-06-06 14:46:34 +02:00
Gaetan Lepage f02d8c95ac misc: prepare 24.05 release 2024-06-06 14:06:46 +02:00
Sefa Eyeoglu aa4afbeac2 docs: use lib.extend instead of patching nixpkgs
This speeds up evaluation and removes IFD. Additionally, this makes it
easier to maintain these library changes, as we don't have to maintain
static patches.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-06-06 11:13:52 +01:00
Gaetan Lepage 04671a049a plugins/schemastore: enable lsp in 'empty' test to avoid the warning 2024-06-06 11:39:55 +02:00
Gaetan Lepage 74a6731226 plugins/schemastore: init 2024-06-06 10:53:41 +02:00
Matt Sturgeon f530700ccd plugins/dashboard: switch to mkNeovimPlugin + update options
Note: the plugin has had a breaking change since the last time we
checked.
2024-06-05 18:13:31 +01:00
Matt Sturgeon a54ee8ad64 flake-modules: explicitly set the same nixfmt for treefmt + pre-commit 2024-06-05 09:09:08 +01:00
Matt Sturgeon d9789956d9 flake-modules: don't explicitly set treefmt package 2024-06-05 09:09:07 +01:00
Matt Sturgeon 4d1d008e78 flake-modules: treefmt is formatter by default
Remove explicit `formatter = config.treefmt.build.wrapper`, because treefmt's `flakeFormatter` option (default `true`) handles that for us.
2024-06-05 09:09:07 +01:00
Matt Sturgeon ec78d2e1ab flake-modules: drop flake-root
treefmt isn't actually using flake-root to find the flake's root; it
does it itself.

All we were doing was passing flake-root's default `projectRootFile` to
treefmt, which is `"flake.nix"`;
2024-06-05 09:09:07 +01:00
Matt Sturgeon 77d4e909f8 .git-blame-ignore-revs: init
Added to ignore a treewide reformatting commit when using `git blame`.

See [GitHub's Documentation][1] and the [`git blame` manual][2].

[1]: https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
[2]: https://www.git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt
2024-06-05 09:09:07 +01:00
Matt Sturgeon 37dbf9d2e2 modules/clipboard: use md link in description
Use a markdown-syntax link so that the docs show a clickable-link.
2024-06-05 08:04:33 +01:00
Beaudan Brown cfff48c267 plugins/lsp: add r_language_server 2024-06-04 18:34:23 +01:00
Matt Sturgeon 7ffff28f43 contributing: describe commit title style 2024-06-04 16:16:06 +01:00
Petr Portnov | PROgrm_JARvis afc98b291d fix(hmts): correct error message on no treesitter 2024-06-04 16:48:13 +03: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
Matt Sturgeon 0c2834c50b readme: add "plugin settings" and "raw lua" sections 2024-06-03 17:05:34 +01:00
Matt Sturgeon a7cbb0ecf0 readme: move "how it works" near the top 2024-06-03 17:05:29 +01:00
Matt Sturgeon cf487e09af readme: move "advanced usage" next to "standalone usage" 2024-06-03 17:05:23 +01:00
Matt Sturgeon 80ed86649b readme: use pkgs.system in standalone example 2024-06-03 17:05:18 +01:00
Matt Sturgeon d3f12340e1 readme: put installation instruction in <details> 2024-06-03 17:05:06 +01:00
Gaetan Lepage 4b05fde873 plugins/lsp/efmls-configs: simplify implementation 2024-06-03 17:16:46 +02:00
Mikael Fangel c0a4c2ef6f docs/user-guide/config-examples: add elythh's config 2024-06-03 10:59:08 +02:00
Gaetan Lepage dafada6d25 plugins/lsp/efmls-configs: cosmetic-only refactoring 2024-06-03 09:40:33 +02:00
Gaetan Lepage 514413f631 wrappers/hm: add vimdiffAlias option 2024-06-03 00:29:52 +02:00
Gaetan LepageandIsmaïl Senhaji 34d56c712e plugins/barbar: add keymaps.* options for missing actions
Co-authored-by: Ismaïl Senhaji <134528+iSma@users.noreply.github.com>
2024-06-03 00:25:46 +02:00
Gaetan Lepage 1c270521ad plugins/barbar: switch to mkNeovimPlugin + update options 2024-06-03 00:25:46 +02:00
Gaetan Lepage 513b3c76e2 plugins/lsp/nil_ls: refactor options 2024-06-02 23:50:43 +02:00
Matt Sturgeon f7e009d29e lib/options: add mkEnum' argument assertions 2024-06-02 03:18:11 +01:00