Commit Graph
2472 Commits
Author SHA1 Message Date
Matt Sturgeon 8b19d15482 plugins/lsp: fix enabledServers.extraOptions type merging
Use `attrsOf` instead of `attrs` to ensure recursive merging, otherwise
things like `extraOptions.settings = lib.mkIf` will not be unwrapped by
the module system.
2024-11-26 13:57:40 +00:00
347Online | Katie Janzen a1c352affc plugins/vim-be-good: init
Integrate the vim-be-good plugin
2024-11-25 17:49:55 -06:00
347Online | Katie Janzen 8507b01e0c lib/maintainers: add 347Online 2024-11-25 17:49:55 -06:00
Wael M. Nasreddine a81a03a3f5 plugins/vim-colemak: init 2024-11-24 19:57:29 +00:00
NickandGaétan Lepage 6b9d55f936 Update docs/user-guide/config-examples.md
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2024-11-24 17:39:06 +00:00
Nick 99f377335d docs/user-guide/config-examples: add spector700's config 2024-11-24 17:39:06 +00:00
github-actions[bot] 85759f2360 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/a46e702093a5c46e192243edbd977d5749e7f294?narHash=sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo%3D' (2024-11-19)
  → 'github:nix-community/home-manager/8cf9cb2ee78aa129e5b8220135a511a2be254c0c?narHash=sha256-5Umjb5AdtxV5jSJd5jxoCckh5mlg%2BFBQDsyAilu637g%3D' (2024-11-22)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/61cee20168a3ebb71a9efd70a55adebaadfbe4d4?narHash=sha256-XwXUK%2BmeYnlhdQz2TVE4Wv%2Btsx1CkdGbDPt1tRzCNH4%3D' (2024-11-19)
  → 'github:lnl7/nix-darwin/698a62c628c2ec423aa770d8ec0e1d0bcf4fca1a?narHash=sha256-0xzQvoId/P008QkTSAdFVv465P9rL9nYkIOWXL5pdsY%3D' (2024-11-23)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/62003fdad7a5ab7b6af3ea9bd7290e4c220277d0?narHash=sha256-XWHuPWcP59QnHEewdZJXBX1TA2lAP78Vz4daG6tfIr4%3D' (2024-11-20)
  → 'github:numtide/treefmt-nix/705df92694af7093dfbb27109ce16d828a79155f?narHash=sha256-5WSng844vXt8uytT5djmqBCkopyle6ciFgteuA9bJpw%3D' (2024-11-22)
2024-11-23 12:34:34 +00:00
Matt Sturgeon c1271fa10a ci: fix nix-install-action versions
`30` -> `v30` 😭
2024-11-22 22:37:05 +00:00
Matt Sturgeon fb49a740f8 ci: bump nix-install-action 2024-11-22 21:21:36 +00:00
Matt Sturgeon 863d7d5ade docs: link to all "available" versions of the docs 2024-11-22 09:13:11 +00:00
Gaetan Lepage 2f71c4250b tests/avante: remove deprecated model option local 2024-11-20 23:51:39 +01:00
Gaetan Lepage 5f0b33710a tests/{efmls-configs,none-ls}: re-enable phpstan test 2024-11-20 23:08:31 +01:00
Gaetan Lepage 7defce3863 tests/{efmls-configs,lsp-servers}: re-enable psalm test 2024-11-20 23:07:45 +01:00
github-actions[bot] fd41c5afee generated: Updated rust-analyzer.nix 2024-11-20 21:52:33 +00:00
github-actions[bot] 2a94d1de6e flake.lock: Update
Flake lock file updates:

• Updated input 'git-hooks':
    'github:cachix/git-hooks.nix/cd1af27aa85026ac759d5d3fccf650abe7e1bbf0' (2024-11-11)
  → 'github:cachix/git-hooks.nix/3308484d1a443fc5bc92012435d79e80458fe43c' (2024-11-19)
• Updated input 'home-manager':
    'github:nix-community/home-manager/f3a2ff69586f3a54b461526e5702b1a2f81e740a' (2024-11-17)
  → 'github:nix-community/home-manager/a46e702093a5c46e192243edbd977d5749e7f294' (2024-11-19)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/c60b5c924c6188a0b3ca2e139ead3d0f92ae5db5' (2024-11-17)
  → 'github:lnl7/nix-darwin/61cee20168a3ebb71a9efd70a55adebaadfbe4d4' (2024-11-19)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5e4fbfb6b3de1aa2872b76d49fafc942626e2add' (2024-11-15)
  → 'github:NixOS/nixpkgs/23e89b7da85c3640bbc2173fe04f4bd114342367' (2024-11-19)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/579b9a2fd0020cd9cd81a4ef4eab2dca4d20c94c' (2024-11-18)
  → 'github:numtide/treefmt-nix/62003fdad7a5ab7b6af3ea9bd7290e4c220277d0' (2024-11-20)
2024-11-20 21:52:10 +00:00
Matt Sturgeon 7b94afceaf plugins: cleanup most extraConfig args
- Remove `cfg` where it is unused.
- Use `opts` where necessary.
2024-11-20 20:55:16 +00:00
Matt Sturgeon 63cfc84abe lib/modules: add applyExtraConfig
Used for
- mkVimPlugin: extraConfig
- mkNeovimPlugin: extraConfig
- mkLsp: extraConfig
- mkLsp: settings
- mkExtension (telecsope): extraConfig
2024-11-20 20:55:16 +00:00
Simon Elsbrock c7b7b6481b docs: no longer using master but main
Tiny update. Noticed the `master` branch does not exist.
2024-11-20 21:44:01 +01:00
Matt Sturgeon 9416bc9018 docs/ci: use nix build --argstr to safely supply input
Rather than interpolating input (flakeref & baseHref) into the build
expression, take advantage of `--argstr`.

See "Common evaluation options" in `nix build --help` for more detail.
2024-11-20 19:41:14 +00:00
Gaetan Lepage ed30fd8588 modules/opts: fix code generation condition to prevent false positives
Currently, we generate the lua code as soon as the value of the option
is not an empty attrs.
However, a case where the attrs only contains `null` values
(`nord_colorscheme = null; nord_foo = null;}` would pass the `if`
condition, but the generated lua table would still be empty because
`toLua` filters out those values.

Hence, we should directly check if the attrs would be translated to an
empty lua table or not to decide whether we should generate the lua
snippet or not.
2024-11-20 16:30:09 +01:00
Matt Sturgeon 929bb0cd1c plugins/telescope: refactor mkExtension
Allow importing `mkExtension` without needing to supply any
dependencies.

All dependencies can be accessed via module args anyway.
2024-11-19 17:01:19 +00:00
traxys c674f10d18 plugins/lsp: Correctly mark servers as disabled if the lsp plugin is disabled 2024-11-19 12:07:42 +01:00
traxys 31eb9d8d75 plugins/lsp: Fix extra config of lsp servers 2024-11-19 12:07:42 +01:00
Matt Sturgeon 2017830a2c docs/ci: fix a typo when calling mkdir -p
Should have been included in 8524447554
2024-11-18 22:33:22 +00:00
Matt Sturgeon 8524447554 docs/ci: fix docs being installed to nixvim/nixvim/<subdir>
We don't need to specify `/nixvim/` as part of our install path as that
is where gh-pages uploads to by default.

Rather, we only need to specify the full `/nixvim/foo/` in the base-href
and the install path should just be `/foo`.
2024-11-18 22:16:16 +00:00
Matt Sturgeon 2bc8dc86a0 ci/docs: fix env vs environment error 2024-11-18 21:14:40 +00:00
Matt Sturgeon 99b066ba6d docs: only set base-href in CI built docs
This reverts commit c12e59ff7c
2024-11-18 19:54:38 +00:00
Matt Sturgeon cdbda982f0 docs/search: refactor to use override 2024-11-18 17:53:47 +00:00
github-actions[bot] 9eb07bb16f flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/5056a1cf0ce7c2a08ab50713b6c4af77975f6111' (2024-11-17)
  → 'github:nix-community/home-manager/f3a2ff69586f3a54b461526e5702b1a2f81e740a' (2024-11-17)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/34588d57cfc41c6953c54c93b6b685cab3b548ee' (2024-11-17)
  → 'github:lnl7/nix-darwin/c60b5c924c6188a0b3ca2e139ead3d0f92ae5db5' (2024-11-17)
• Updated input 'nuschtosSearch':
    'github:NuschtOS/search/13300b2297c51368e0892c3ebe220f688014fe15' (2024-11-14)
  → 'github:NuschtOS/search/fe07070f811b717a4626d01fab714a87d422a9e1' (2024-11-18)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/746901bb8dba96d154b66492a29f5db0693dbfcc' (2024-10-30)
  → 'github:numtide/treefmt-nix/579b9a2fd0020cd9cd81a4ef4eab2dca4d20c94c' (2024-11-18)
2024-11-18 17:17:32 +00:00
Gaetan Lepage f4c910dd82 tests/lsp-servers: disable deprecated servers 2024-11-18 09:07:32 +00:00
Gaetan Lepage a773b945fb tests/lsp: ruff_lsp is deprecated, test ruff instead 2024-11-18 09:07:32 +00:00
Gaetan Lepage e1417016df tests/{lsp-servers,efmls-configs}: disable psalm
https://github.com/NixOS/nixpkgs/pull/356704
2024-11-18 09:07:32 +00:00
Gaetan Lepage 8b77198d49 tests/{none-ls,efmls-configs}: disable phpstan
https://github.com/NixOS/nixpkgs/pull/356691
2024-11-18 09:07:32 +00:00
Gaetan Lepage 909b4f41d7 tests: re-enable lua-language-servers tests on all platforms
This reverts commit 432af78ffd.
2024-11-18 09:07:32 +00:00
Gaetan Lepage 1ee4915f65 plugins/lsp: update lsp-packages.nix 2024-11-18 09:07:32 +00:00
github-actions[bot] 00365d6d40 generated: Updated lspconfig-servers.json 2024-11-18 09:07:32 +00:00
github-actions[bot] b5a999fb22 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/1d0862ee2d7c6f6cd720d6f32213fa425004be10' (2024-11-14)
  → 'github:nix-community/home-manager/5056a1cf0ce7c2a08ab50713b6c4af77975f6111' (2024-11-17)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/f86f158efd4bab8dce3e207e4621f1df3a760b7a' (2024-11-15)
  → 'github:lnl7/nix-darwin/34588d57cfc41c6953c54c93b6b685cab3b548ee' (2024-11-17)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/dc460ec76cbff0e66e269457d7b728432263166c' (2024-11-11)
  → 'github:NixOS/nixpkgs/5e4fbfb6b3de1aa2872b76d49fafc942626e2add' (2024-11-15)
2024-11-18 09:07:32 +00:00
bpatel347 5bc3fa6996 plugins/quarto: init
Use neovim-plugin.mkNeovimPlugin and move quarto-nvim to quarto

Rename tests to match convention

Passing tests locally, add required dependencies

Utilize `let` - `in` block

Remove extraPlugins

plugins/quarto: init

plugin/quarto: init

plugins/quarto: init

plugins/quarto: init
2024-11-17 22:51:48 +00:00
Anthony Cicchetti 9d99d7cfdb plugins/lsp: remove buf-language-server 2024-11-16 13:13:02 -05:00
Matt Sturgeon 587b1cbf21 lib/types: allow inline-lua in rawLua type 2024-11-16 17:20:11 +00:00
Matt Sturgeon c8267ba395 plugins/tmux-navigator: re-word usage instructions 2024-11-16 17:01:43 +00:00
Matt Sturgeon a52572c060 plugins/tmux-navigator: use markdown admonition 2024-11-16 17:01:42 +00:00
bpatel347 7b0df222fc plugins/kulala: init 2024-11-16 16:43:44 +00:00
github-actions[bot] 5c6dd20aeb flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/35b055009afd0107b69c286fca34d2ad98940d57' (2024-11-13)
  → 'github:nix-community/home-manager/1d0862ee2d7c6f6cd720d6f32213fa425004be10' (2024-11-14)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/6c71c49e2448e51ad830ed211024e6d0edc50116' (2024-11-12)
  → 'github:lnl7/nix-darwin/f86f158efd4bab8dce3e207e4621f1df3a760b7a' (2024-11-15)
• Updated input 'nuschtosSearch':
    'github:NuschtOS/search/135d202e032be70c93b6d7d53592ef4799d6efde' (2024-11-11)
  → 'github:NuschtOS/search/13300b2297c51368e0892c3ebe220f688014fe15' (2024-11-14)
• Updated input 'nuschtosSearch/flake-utils':
    'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a' (2024-09-17)
  → 'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b' (2024-11-13)
2024-11-16 12:33:52 +00:00
Matt Sturgeon be455f7f27 lib/options: use literalLua for defaultNullOpts.mkRaw 2024-11-15 21:46:25 +00:00
Matt Sturgeon da6e3499d4 lib/utils: add nestedLiteral and nestedLiteralLua
`nestedLiteral` converts a `literalExpression` into a `toPretty` style
pretty-printer.

`nestedLiteralLua` composes `nestedLiteral` and `literalLua` together.
2024-11-15 21:46:25 +00:00
Matt Sturgeon eb76e62a9b lib/utils: add literalLua for use in option docs
Creates a `literalExpression` equivalent to using `lib.nixvim.mkRaw`.
2024-11-15 21:46:25 +00:00
Matt Sturgeon de99f2938f lib/{vim,neovim}-plugin: installPackage -> packageDecorator
Replace `mkNeovimPlugin`'s `installPackage` parameter with a new
internal module option: `packageDecorator`.

The option is a function that applies some transformation to
`cfg.package`'s value before it is installed.
2024-11-15 21:44:59 +00:00
Heitor Augusto 1d78aee791 tests/modules/clipboard: add raw lua code test 2024-11-15 18:40:10 +00:00
Heitor Augusto ef8d57aba0 modules/clipboard: allow raw lua code in register option 2024-11-15 18:40:10 +00:00