Commit graph

2891 commits

Author SHA1 Message Date
Gaetan Lepage
fc3ad35196 tests/openscad: disable test on darwin (broken) 2024-01-05 00:05:28 +01:00
Gaetan Lepage
f9eda14f67 tests/lsp: disable ols test on darwin (broken) 2024-01-05 00:05:28 +01:00
Gaetan Lepage
4c0a067afb tests/{none-ls,efmls-configs}: disable cbfmt, latexindent and chktex on darwin (broken) 2024-01-05 00:05:28 +01:00
Gaetan Lepage
6c3f97ccc0 tests: aggregate all test derivations into one using a linkFarm 2024-01-05 00:05:28 +01:00
Gaetan Lepage
10d114f5a6 misc/wrapRc: ignore user "after" directory when wrapRc is true 2024-01-04 09:22:31 +01:00
github-actions[bot]
b4a969e90a flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/cfc3698c31b1fb9cdcf10f36c9643460264d0ca8' (2023-12-27)
  → 'github:NixOS/nixpkgs/bd645e8668ec6612439a9ee7e71f7eac4099d4f6' (2024-01-02)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/7f35ec30d16b38fe0eed8005933f418d1a4693ee' (2023-12-24)
  → 'github:cachix/pre-commit-hooks.nix/9d3d7e18c6bc4473d7520200d4ddab12f8402d38' (2023-12-30)
2024-01-04 09:02:41 +01:00
Gaetan Lepage
2785267b1b plugins/treesitter: add an option to control if gcc should be installed 2024-01-04 09:01:54 +01:00
Gaetan Lepage
78276e91bb ci/check: prevent CI from using remote builders 2024-01-03 07:38:42 +01:00
Gaetan Lepage
a2fa6753f9 misc/wrapRc: switch to XDG compliant path resolution 2024-01-02 13:20:07 +01:00
Gaetan Lepage
c359761871 misc/wrapRc: ignore user configuration when wrapRc is true 2024-01-02 11:31:18 +01:00
traxys
8aa4b7e4ce
helpers: Add option helpers for types that are either a lua str or a value (#876)
Those types needed the following code in apply:

if builtins.isString value
then mkRaw value
else value

This commit avoids this boilerplate, and clarifies that the `str` is lua
code in the documentation.
2024-01-02 00:30:10 +01:00
traxys
8b8a1c0f4b
fix: Remove missed mentions of rawType (#875) 2024-01-02 00:26:41 +01:00
traxys
4d14c098b6 helpers: Add types for lua function & lua code
This allows to display `lua function string` and `lua code string` in
the documentation for related options.
2024-01-02 00:15:30 +01:00
Gaetan Lepage
0e52776433 plugins/bufferline: use nixvimTypes.highlight 2024-01-02 00:14:32 +01:00
Gaetan Lepage
f88ff0a82e helpers: borderType -> nixvimTypes.border 2024-01-01 23:55:27 +01:00
Gaetan Lepage
d88a30fba6 helpers: highlightType -> nixvimTypes.highlight 2024-01-01 23:55:27 +01:00
traxys
af41ea2d80
helpers: move rawType to helpers.nixvimTypes (#871)
This is done in preparation of adding new (lua) types to help the
documentation.
2024-01-01 23:33:53 +01:00
Gaetan Lepage
2f13e3a21d ci/check: prevent CI from using remote builders 2024-01-01 23:19:40 +01:00
Gaetan Lepage
1057ef93e3 plugins/codeium-nvim: init 2024-01-01 23:13:47 +01:00
Gaetan Lepage
e1e417bff8 plugins/image: init 2024-01-01 22:08:54 +01:00
Gaetan Lepage
99ebb5f074 helpers: fix typo 2024-01-01 21:49:35 +01:00
traxys
abd1c4007a
helpers: Add mkLua,mkLuaFn (defaultNullOpts or not) (#866)
This makes it such that defaultNullOpts.mkStr never represents a lua
string, easing documenting where a string is a lua string vs lua code.
2024-01-01 20:28:55 +01:00
Gaetan Lepage
f2e808a519 plugins: add a sensible template for modern plugins 2024-01-01 02:54:17 +01:00
Markus Lohmayer
2bcdcfafe5
plugins/lsp: add marksman language server (#867) 2023-12-31 21:32:33 +01:00
Glen
5fcfb763cd
plugins/lsp: add dhall-lsp-server (#860)
* lsp.servers: add dhall-lsp-server(dhall language)

tests: add dhall lsp server to tests

squash me

* Update plugins/lsp/language-servers/default.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* Update tests/test-sources/plugins/lsp/_lsp.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* Update plugins/lsp/language-servers/default.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

---------

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2023-12-30 23:26:50 +01:00
github-actions[bot]
9738dae3ea flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6' (2023-12-19)
  → 'github:NixOS/nixpkgs/cfc3698c31b1fb9cdcf10f36c9643460264d0ca8' (2023-12-27)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/007a45d064c1c32d04e1b8a0de5ef00984c419bc' (2023-12-13)
  → 'github:cachix/pre-commit-hooks.nix/7f35ec30d16b38fe0eed8005933f418d1a4693ee' (2023-12-24)
2023-12-30 14:59:18 +01:00
traxys
1d8e7906c9
plugins: Introduce helpers.defaultNullOpts.mkLuaFn (#855)
This allows to avoid calling `mkRaw` on lua functions, as they will get
applied automatically.

This could also help in the future to refactor the use of Lua code to
make it more user-friendly.
2023-12-29 15:24:42 +01:00
Gaetan Lepage
b38dbdb0dc plugins/fidget: adapt to latest rewrite of the plugin 2023-12-29 12:23:06 +01:00
traxys
5d49b9b66d
plugin/illuminate: Avoid using mkAttrsOf with submodules (#853)
This confuses the documentation, as mentioned in the function
definition.
2023-12-29 11:52:05 +01:00
Gaetan Lepage
3b9fa101fb plugins/illuminate: fix filetypeOverrides option 2023-12-29 11:16:15 +01:00
Gaetan Lepage
acc9c8cad1 modules/options: improve documentation 2023-12-29 10:52:24 +01:00
Gaetan Lepage
61013ca4ab plugins/startup: init 2023-12-28 18:06:05 +01:00
Gaetan Lepage
a7144cfbf7 modules/options: refactoring 2023-12-28 11:52:46 +01:00
Gaetan Lepage
02149dbb01 modules/options: add localOptions and globalOptions 2023-12-28 11:52:46 +01:00
Ryan
b140981d65
plugins/rust-tools: Allow null serverPackage (#845)
Some users might want to use rust-analyzer beta/nightly from their own nix develop shell.
2023-12-27 21:33:01 +01:00
Ariel D'Alessandro
c11158c73e fix: add missing test 2023-12-24 17:32:43 +01:00
Ariel D'Alessandro
08b055af7e feat: add laravel pint formating to none-ls 2023-12-24 17:32:43 +01:00
Mikael Fangel
310f1ad5b5 plugins/none-ls: init golines 2023-12-24 00:20:42 +01:00
Mikael Fangel
6e66c1bc5e plugins/none-ls: init goimports 2023-12-24 00:20:42 +01:00
Mikael Fangel
9119cc1554 plugins/none-ls: init staticcheck 2023-12-24 00:20:42 +01:00
Mikael Fangel
6e8bc402af plugins/none-ls: init revive 2023-12-24 00:20:42 +01:00
github-actions[bot]
2e69cb98e0 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/91a00709aebb3602f172a0bf47ba1ef013e34835' (2023-12-17)
  → 'github:NixOS/nixpkgs/54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6' (2023-12-19)
2023-12-23 20:48:31 +01:00
traxys
e0521dde87
helpers: Allow to set raw lua code in more places (#837)
With this change a user should be able to set raw lua code in more
places than before.

The `mkStr` helper was _not_ changed as a large number of places in
nixvim are using this helper to directly implement raw lua code.

Also note that types of the form `oneOf [submodule <something else>` are
not well rendered in the documentation, and should be avoided (this
includes `listOf [submodule <something else>`, so the helpers should be
avoided in this case)
2023-12-22 16:55:50 +01:00
traxys
2871dc94b4
Allow to add meta options like maintainers (#836) 2023-12-22 15:59:41 +01:00
Tilman Andre Mix
189ae51b02 Update tests/test-sources/plugins/lsp/_lsp.nix to not run ols test on aarch64-linux
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2023-12-22 15:07:39 +01:00
Tilman Andre Mix
18124f5eeb tests: fix failing test because of unknown option
tests failed because lsp.servers.odin was unknown,
the option was named lsp.servers.ols, so fixed this

Signed-off-by: Tilman Andre Mix <tilmanmixyz@proton.me>
2023-12-22 15:07:39 +01:00
Tilman Andre Mix
9ab350de7d tests: add ols lsp server to tests
Signed-off-by: Tilman Andre Mix <tilmanmixyz@proton.me>
2023-12-22 15:07:39 +01:00
Tilman Andre Mix
be87bb0fd6 lsp.servers: add ols (odin language)
Signed-off-by: Tilman Andre Mix <tilmanmixyz@proton.me>
2023-12-22 15:07:39 +01:00
Gaetan Lepage
ebe13a1d24 plugins/treesitter: fix typo 2023-12-22 14:48:15 +01:00
Gaetan Lepage
ff7fe40bf6 plugins/rainbow-delimiters: remove warnings 2023-12-22 14:48:15 +01:00