Commit graph

811 commits

Author SHA1 Message Date
Gaetan Lepage
92e9f5466d plugins/chatgpt: init 2024-07-04 21:00:56 +00:00
Matt Sturgeon
9b25eaaa6f
lib/to-lua: fix removing empties nested in lists
- Add options for removing empty/null list entries (default false)
- Fix recursion into attrs that are themselves list entries

Fixes #1804
2024-07-03 16:44:30 +01:00
Gaetan Lepage
6252a41fc6 plugins/preview: init 2024-07-02 15:38:28 +02:00
Gaetan Lepage
18bea9bad6 plugins/markdown-preview: move source in dedicated markdown sub-folder 2024-07-02 15:33:00 +02:00
Matt Sturgeon
55fee7051f
standalone: rename nixvimExtend to extend
This is our scope, so there's no need to be explicit.

This also follows the precedent set by `lib.extend`, although that takes
an overlay function.
2024-07-01 15:54:29 +01:00
Gaetan Lepage
3bfe71f1ae plugins/yanky: export 'utils' and 'mapping' for more readible settings 2024-07-01 14:22:27 +00:00
Gaetan Lepage
b3c520d13e plugins/yanky: switch to mkNeovimPlugin 2024-07-01 14:22:27 +00:00
Gaetan Lepage
f6e32ac3cf plugins/neoclip: init 2024-07-01 15:37:23 +02:00
Matt Sturgeon
aaab869d4f plugins/flash: switch to mkNeovimPlugin 2024-07-01 12:18:56 +00:00
Matt Sturgeon
3a8d4fee35
plugins/cmp: refactor source->plugin association
Introduce the internal option `cmpSourcePlugins` where plugins can
register their nvim-cmp source name association.
2024-06-30 18:22:59 +01:00
Matt Sturgeon
78275321f8
tests/test-derivation: don't invoke test modules
`def.module or lib.removeAttrs def [ "tests" ]` is actually equivalent to
`(def.module or lib.removeAttrs) def [ "tests" ]`.

This meant whenever `def` had a `module` attribute, it was invoked as
`def.module def [ "tests" ]`!
2024-06-30 18:22:58 +01:00
Matt Sturgeon
10f64e6c96
tests/test-derivation: allow tests to be modules
Use `mkTestDerivationFromNixvimModule` instead of `mkTestDerivation`,
allowing "proper" modules to be used instead of plain attr configs.

This is useful for more complex tests that wish to use `config` or
`options` arguments, e.g:

```nix
{config, options, ...}: {
  /* some cool test */
}
```

To allow `tests.dontRun` to be defined on such a test, the module is
allowed to be nested as `module`, e.g:

```nix
{
  tests.dontRun = true;
  module = {config, options, ...}: {
    /* a disabled test */
  };
}
```

Also ended up doing some general cleanup, removing an unused function,
etc.
2024-06-29 22:02:44 +01:00
Gaetan Lepage
d564b52999 tests/plugins/none-ls: re-enable rubyfmt test for linux 2024-06-29 12:36:07 +02:00
Matt Sturgeon
7dcdd6e989
plugins/lsp-lines: switch to mkNeovimPlugin
Remove custom options in favor of using `diagnostics` directly.
2024-06-28 23:14:01 +01:00
Matt Sturgeon
aff12581d8
lib/lua: refactor toLuaObject, now configurable
Heavily based on nixpkgs lib.generators.toPretty
2024-06-28 22:44:43 +01:00
PerchunPak
cd479ec0ef plugins/otter: init 2024-06-28 22:39:51 +01:00
Gaetan Lepage
1b3bda78b4 plugins/zk: switch to mkNeovimPlugin 2024-06-28 20:11:48 +02:00
Jamis Hartley
ab9bca4a1e colorschems/everforest: init 2024-06-28 01:09:46 +01:00
Matt Sturgeon
ca8ac5f8e4
plugins/none-ls: switch to mkNeovimPlugin 2024-06-27 11:35:41 +01:00
Matt Sturgeon
53a9599cc4
lib/lua: pad table , with a space
Makes toLuaObject's output a little more readable.
2024-06-26 12:35:47 +01:00
Matt Sturgeon
00ce71f51a
lib/lua: only quote table keys when needed 2024-06-26 12:31:05 +01:00
Matt Sturgeon
01cf43dbaa
lib/lua: add isKeyword and isIdentifier
Allow testing whether a string is a valid lua identifier or a reserved
keyword.
2024-06-26 11:40:52 +01:00
Gaetan Lepage
b64ee08d6b plugins/codesnap: init 2024-06-26 07:28:11 +02:00
Gaetan Lepage
18ecd740e9 plugins.gitsigns: remove deprecated options
https://github.com/lewis6991/gitsigns.nvim/issues/453
2024-06-24 08:32:52 +02:00
Nikita Shirokov
49452662b7 plugins/auto-save: switch to mkNeovimPlugin 2024-06-22 14:51:02 +07:00
Gaetan Lepage
4e224d27ae modules/diagnostics: add test 2024-06-21 16:10:27 +02:00
Gaetan Lepage
4766d05fb1 plugins/octo: do not run tests as they are flaky 2024-06-21 16:04:39 +02:00
Gaetan Lepage
c2c81a2734 tests/plugins/sniprun: disable old irrelevant test for sniprun 2024-06-18 20:21:14 +02:00
Gaetan Lepage
9ed3538685 plugins/cmp-tabby: switch to RFC-42 style 2024-06-18 20:19:14 +02:00
Gaetan Lepage
bf109a3e59 plugins/none-ls: disable rubyfmt test as it is broken 2024-06-18 11:38:52 +02:00
Matt Sturgeon
5755ff0958
plugins/sniprun: switch to mkNeovimPlugin 2024-06-17 21:27:17 +01:00
Gaetan Lepage
b822078ec1 plugins/ts-autotag: switch to mkNeovimPlugin 2024-06-17 11:02:51 +02:00
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
Gaetan Lepage
3834c4e0db plugins/cmp: add cmp_ai source 2024-06-14 16:25:00 +02: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
Gaetan Lepage
de9b81c7e7 plugins/specs: add tests 2024-06-11 08:12:09 +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
Jake Hamilton
552e8b0a85
plugins/dashboard: add additional examples 2024-06-07 23:39:28 +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
c16533b3f7
lib: add upperFirstChar
A util function to capitalize the first character of a string.
2024-06-07 09:17:29 +01: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
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
Beaudan Brown
cfff48c267
plugins/lsp: add r_language_server 2024-06-04 18:34:23 +01:00