Commit graph

1873 commits

Author SHA1 Message Date
github-actions[bot]
55a45b6713 flake.lock: Update
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8' (2024-06-01)
  → 'github:hercules-ci/flake-parts/c3c5ecc05edc7dafba779c6c1a61cd08ac6583e9' (2024-06-30)
• Updated input 'home-manager':
    'github:nix-community/home-manager/7e68e55d2e16d3a1e92a679430728c35a30fd24e' (2024-06-28)
  → 'github:nix-community/home-manager/36317d4d38887f7629876b0e43c8d9593c5cc48d' (2024-06-29)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b2852eb9365c6de48ffb0dc2c9562591f652242a' (2024-06-27)
  → 'github:NixOS/nixpkgs/2741b4b489b55df32afac57bc4bfd220e8bf617e' (2024-06-29)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/065a23edceff48f948816b795ea8cc6c0dee7cdf' (2024-06-24)
  → 'github:numtide/treefmt-nix/8df5ff62195d4e67e2264df0b7f5e8c9995fd0bd' (2024-06-30)
2024-07-01 09:18:41 +00:00
Matt Sturgeon
1391a64cf6
plugins/otter: switch to nvim-cmp association
Removes the addCmpSources option.
2024-06-30 18:22:59 +01:00
Matt Sturgeon
17f4aa5556
plugins/cmp: refactor sources list & mkCmpSourcePlugin
List mkCmpSourcePlugin args directly in `sources/default.nix`,
similar to LSP's language-servers list.
2024-06-30 18:22:59 +01: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
bd422db9ba
plugins/cmp: fix secondary settings descriptions 2024-06-30 18:22:58 +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
714aa7bb18
flake/devshell: add test-lib command + improve checks 2024-06-30 17:53:35 +01:00
Sandro Jäckel
662a0e1bdb wrappers: use system from stdenv.hostPlatform
`pgs.system` is a flaky alias and it is more reliable to directly use
`pkgs.stdenv.hostPlatform.system`
2024-06-30 09:54:24 +02:00
Matt Sturgeon
c062b976ef
flake/legacyPackages: simplify makeNixvim, making it more powerful
Rather than nesting it as `config`, pass `makeNixvim`'s argument through
directly as a module.

This not only simplifies the implementation, but allows users to use
`makeNixvim` for any scenario where `makeNixvimWithModule` would normally
be required.
2024-06-29 22:15:45 +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
Matt Sturgeon
049bbc168f
github/mergify: rename yaml -> yml (#1775)
It seems mergify only checks for `.yml`, not `.yaml` files.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-06-29 13:01:15 +00:00
Gaetan Lepage
d564b52999 tests/plugins/none-ls: re-enable rubyfmt test for linux 2024-06-29 12:36:07 +02:00
github-actions[bot]
f938dfd9bf flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/1a4f12ae0bda877ec4099b429cf439aad897d7e9' (2024-06-26)
  → 'github:nix-community/home-manager/7e68e55d2e16d3a1e92a679430728c35a30fd24e' (2024-06-28)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/2893f56de08021cffd9b6b6dfc70fd9ccd51eb60' (2024-06-24)
  → 'github:NixOS/nixpkgs/b2852eb9365c6de48ffb0dc2c9562591f652242a' (2024-06-27)
2024-06-29 12:36:07 +02:00
Matt Sturgeon
b0d8c00264
lib/vim-plugin: fix + improve settings example
`foo_bar = true` -> `${prefix}foo_bar=1` is incorrect and confusing.

See related issue #1741
2024-06-29 00:09:43 +01:00
Matt Sturgeon
039f6c1973
lib/lua: workaround builtins.match alias issue
It seems that `with lib` isn't (always) bringing `match` into scope
Odd, but we can fix by explicitly using `builtins.match`.
2024-06-28 23:59:39 +01: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
7c35bdb3f7
lib/neovim-plugin: allow overriding settings description
- The `setup` function name can be overridden with `setup`
  (default ".setup")
- The entire `settings` option description can be overridden with
  `settingsDescription`
- `luaName` and `setup` are used in the default description
2024-06-28 22:58:31 +01:00
Matt Sturgeon
c351c175ec
lib/neovim-plugin: support not having settings
Allow callers to explicitly set `settingsOptions = null` to disable
creating the `settings` option.

`settingsOptions` still defaults to `{ }`.
2024-06-28 22:58:30 +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
Matt Sturgeon
d823c1463e
github/mergify: init 2024-06-28 21:55:15 +01:00
Gaetan Lepage
1b3bda78b4 plugins/zk: switch to mkNeovimPlugin 2024-06-28 20:11:48 +02:00
Sandro
38e3849f4a plugins/surround: stop using alias 2024-06-28 17:18:31 +02:00
Ronnie Hounskul
155353436c Update config-examples.md 2024-06-28 07:53:52 +02:00
Jamis Hartley
ab9bca4a1e colorschems/everforest: init 2024-06-28 01:09:46 +01:00
Jamis Hartley
479430c2d8 maintainers: add sheemap 2024-06-28 01:09:46 +01:00
PerchunPak
0957f5fd89
flake/dev: fix nix-output-monitor
- Bash resolves `'${VAR:-0}'` as literal string `'${VAR:-0}'`, instead
we want a value from `$VAR`.
- Proper package name for NOM is `nix-output-monitor`, not `nom`.
2024-06-27 18:34:55 +02:00
Jesse Martinez
35e837c10b Update config-examples.md
Adding new configuration JMartJonesy/kickstart.nixvim

Update config-examples.md

Fixed alphabetic ordering
2024-06-27 17:04:37 +02:00
Matt Sturgeon
ca8ac5f8e4
plugins/none-ls: switch to mkNeovimPlugin 2024-06-27 11:35:41 +01:00
github-actions[bot]
cb9ee70e8b flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/6b1f90a8ff92e81638ae6eb48cd62349c3e387bb' (2024-06-23)
  → 'github:nix-community/home-manager/1a4f12ae0bda877ec4099b429cf439aad897d7e9' (2024-06-26)
2024-06-27 11:39:05 +02:00
Gaetan Lepage
a5bc4e645b docs/config-examples: add comment for keeping entries sorted 2024-06-27 11:38:44 +02: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
github-actions[bot]
1a46075dfe flake.lock: Update
Flake lock file updates:

• Updated input 'git-hooks':
    'github:cachix/git-hooks.nix/8cd35b9496d21a6c55164d8547d9d5280162b07a' (2024-06-20)
  → 'github:cachix/git-hooks.nix/0ff4381bbb8f7a52ca4a851660fc7a437a4c6e07' (2024-06-24)
• Updated input 'home-manager':
    'github:nix-community/home-manager/cd886711998fe5d9ff7979fdd4b4cbd17b1f1511' (2024-06-22)
  → 'github:nix-community/home-manager/6b1f90a8ff92e81638ae6eb48cd62349c3e387bb' (2024-06-23)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/a71e967ef3694799d0c418c98332f7ff4cc5f6af' (2024-06-22)
  → 'github:NixOS/nixpkgs/2893f56de08021cffd9b6b6dfc70fd9ccd51eb60' (2024-06-24)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/68eb1dc333ce82d0ab0c0357363ea17c31ea1f81' (2024-06-16)
  → 'github:numtide/treefmt-nix/065a23edceff48f948816b795ea8cc6c0dee7cdf' (2024-06-24)
2024-06-25 23:02:06 +02:00
Matt Sturgeon
76a8790764
docs/mdbook: only include sub-options of visible options
E.g. rename aliases that target the `settings` option shouldn't show the
`settings` sub-options under the `visible=false` alias.
2024-06-25 17:47:38 +01:00
Matt Sturgeon
9e6d690104
docs/mdbook: simplify isVisible 2024-06-25 17:41:42 +01:00
Matt Sturgeon
7ac283f050
plugins/gitsigns: remove deprecated options 2024-06-25 15:48:33 +01:00
Matt Sturgeon
54d118869b
lib/deprecation: init with mkDeprecatedSubOptionModule
Similar to `lib.mkRemovedOptionModule` but tweaked to work with
sub-options (e.g. settings options).

Also uses warnings instead of assertions.
2024-06-25 15:48:33 +01:00
Roel de Cort
66c8592b31 fix url
didn't render the url correctly, fixed.
2024-06-24 13:28:07 +02:00
Roel de Cort
00f77cbfd0 conform to alphabetical order
Requisted to respect the alphabetical ordering of the list.
2024-06-24 13:28:07 +02:00
Roel de Cort
d0bf018de6 Update config-examples.md with my Nixvim Config
Added my nixvim config to the list of examples
2024-06-24 13:28:07 +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
Gaetan Lepage
bd650b953e plugins/none-ls: add typstyle server 2024-06-24 08:32:52 +02:00
github-actions[bot]
47127abf00 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/d7830d05421d0ced83a0f007900898bdcaf2a2ca' (2024-06-19)
  → 'github:nix-community/home-manager/cd886711998fe5d9ff7979fdd4b4cbd17b1f1511' (2024-06-22)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/29b3096a6e283d7e6779187244cb2a3942239fdf' (2024-06-17)
  → 'github:lnl7/nix-darwin/50581970f37f06a4719001735828519925ef8310' (2024-06-23)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c00d587b1a1afbf200b1d8f0b0e4ba9deb1c7f0e' (2024-06-18)
  → 'github:NixOS/nixpkgs/a71e967ef3694799d0c418c98332f7ff4cc5f6af' (2024-06-22)
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
Nikita Shirokov
54207d1eff maintainers: add braindefender 2024-06-22 07:13:11 +07:00
Gaetan Lepage
4e224d27ae modules/diagnostics: add test 2024-06-21 16:10:27 +02:00
Gaetan Lepage
e84881f46f modules/diagnostics: rename source file 2024-06-21 16:10:27 +02:00