Commit graph

1071 commits

Author SHA1 Message Date
Austin Horstman
b17c801f2e plugins/claude-code: init module 2025-05-08 10:35:31 +02:00
Matt Sturgeon
c26f5c2e31 plugins/lsp-format: use lsp.onAttach instead of an autoCmd 2025-05-06 14:08:03 +01:00
Jeremy Fleischman
64cd675ece
Port lsp-format to use non-deprecated setup instructions
Upstream still documents the now-deprecated
`require("lspconfig").<name>.setup` mechanism. I believe the modern
alternative is to register a `LspAttach` autocmd. For more context, see:

- https://github.com/lukas-reineke/lsp-format.nvim/issues/98
- https://github.com/lukas-reineke/lsp-format.nvim/pull/99
2025-05-05 14:13:25 -07:00
FKouhai
7d18194a22 colorschemes/kanagawa-paper: init 2025-05-04 20:42:00 +01:00
Benedikt Peetz
8fcd7f1a92 plugins/lf: init 2025-05-03 22:58:16 +01:00
Johan Larsson
8b3107ad6f plugins/clangd-extensions: adapt to new lsp module
Adapt warnings, default settings, and tests to the new lsp module. Also
change the previous warning, which I think should target the clangd
server directly, and just not `plugins.lsp`, since the clangd server is
necessary for clangd-extensions to function.
2025-05-03 17:21:30 +01:00
Johan Larsson
8523385bd8
plugins/schemastore: adapt to new lsp module
Modify warnings, tests, and default settings to work with the new lsp
module.

Update plugins/by-name/schemastore/default.nix

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>

Update plugins/by-name/schemastore/default.nix

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-05-03 09:43:04 +02:00
Johan Larsson
4b27678512 plugins/iron: init
Update plugins/by-name/iron/default.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2025-05-02 23:25:40 +02:00
Gaetan Lepage
98644a34ab plugins/origami: init 2025-05-02 13:52:22 +02:00
Gaetan Lepage
cd30817b21 plugins/tiny-inline-diagnostic: init 2025-05-02 01:48:26 +02:00
Matt Sturgeon
a072e3c3a7
modules/lsp: enable servers."*" by default 2025-05-01 00:36:41 +01:00
Gaetan Lepage
6297f4c01a plugins/vimade: init 2025-05-01 00:40:14 +02:00
Gaetan Lepage
913a3521ab plugins/ident-tools: init 2025-04-30 22:49:38 +02:00
Johan Larsson
eeae362038
modules/lsp: add enable = true to wildcard config section 2025-04-30 20:55:26 +01:00
Matt Sturgeon
1df98b6636
modules/diagnostic: rename diagnostic.config -> diagnostic.settings
Follow up to #3226, in line with the decisions made in #3254.
2025-04-30 18:31:17 +01:00
Gaetan Lepage
405a564f3d plugins/actions-preview: init 2025-04-30 19:14:35 +02:00
Matt Sturgeon
21688b1d2a
modules/lsp/server: rename config -> settings
`config` is a loaded term within modules and options.

`settings` is the name usually used for freeform config in nixvim and
most other module configurations.
2025-04-30 17:35:46 +01:00
Gaetan Lepage
276abde288 plugins/peek: init 2025-04-30 16:27:29 +02:00
Gaetan Lepage
944a316881 plugins/goto-preview: init 2025-04-29 13:52:09 +02:00
Gaetan Lepage
19528509e5 plugins/dial: init 2025-04-29 00:48:55 +02:00
Matt Sturgeon
556eb29548
plugins/lspconfig: init
A simplified replacement for `plugins.lsp`.

Eventually, once the `lsp` and `plugins.lspconfig` modules are mature,
`plugins.lsp` will be deprecated and/or aliased.
2025-04-28 18:54:04 +01:00
Gaetan Lepage
70c9b3b890 modules/lsp: init
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-04-28 18:11:39 +02:00
Stanislav Asunkin
6415ae4a97 tests/modules/performance/combine-plugins: improve assertion messages
This commit eliminates assertions boilerplate and improves assertion
message by returning the number of plugins and their names.
2025-04-28 17:26:13 +03:00
Stanislav Asunkin
f28d384ab5 modules/performance/combine-plugins: propagate lua dependencies
Plugins from luarocks (e.g. telescope-nvim) have dependencies specified
in propagatedBuildInputs. These dependencies are not added as plugins in
Nvim runtime. They are added to LUA_PATH env var for wrapped neovim.
This commit collects all propagatedBuildInputs from input plugin list
and puts them in the combined plugin.
Note that such dependencies are never combined, because they are not
plugins.
2025-04-28 17:26:13 +03:00
Stanislav Asunkin
57e19ec3ec tests/modules/performance/combine-plugins: use stub plugins for tests
During the last half of the year many dependencies of plugins used in
the tests were changed in nixpkgs. To make tests more robust use a
specially crafted stub plugins.
2025-04-28 17:26:13 +03:00
Stanislav Asunkin
9c39ea4ccb tests/modules/performance/byte-compile-lua: fix tests
telescope-nvim doesn't have explicit dependency on plenary-nvim anymore.
Use noice-nvim which have a dependency on nui-nvim instead.
2025-04-28 17:26:13 +03:00
Stanislav Asunkin
014b143f6a tests/modules/performance/combine-plugins: restore test functionality
Replace test plugins to those that reflect the intention for the test.
2025-04-28 17:26:13 +03:00
Stanislav Asunkin
faa31d994c Revert "tests/modules-performance: add nvim-cmp to extraPlugins when necessary"
This reverts commit bb5b0a2655.

This change defeats the purpose of the dependency test. Revert it.
The test should verify that dependencies are correctly pulled. If
upstream plugin doesn't have dependency anymore, then a suitable
alternative should be used, not dependencies added manually.
2025-04-28 17:26:13 +03:00
Gaetan Lepage
89c94d9ea7 plugins/telescope/media-files: use the top-level dependencies option 2025-04-27 11:28:18 +02:00
Gaetan Lepage
8d8a856896 plugins/lsp: remove unused internal enabledServers.*.capabilities option 2025-04-26 21:52:14 +02:00
Matt Sturgeon
6c73350557
modules/diagnostic: rename diagnostics -> diagnostic.config
Currently we represent `vim.diagnostic.config()` as a top-level
`diagnostics` option. This means we have no clear namespace for
(e.g.) `vim.diagnostic.<action>` keymap functions.
2025-04-26 20:09:23 +01:00
Matt Sturgeon
b72ba2e4e2
plugins/lsp/servers: replace rootDir with rootMarkers
nvim-lspconfig historically used `root_dir`, along with util functions
like `root_pattern`.

Now that neovim's own LSP API is used, `root_dir` appears to be subtly
different and `root_markers` is introduced to replace `util.root_pattern`.

Since we cannot easily warn about the `root_dir` differences, it can
usually be replaced with `root_markers`, and can still be manually
configured via `extraOptions` if needed; the simplest approach here is
to remove the `rootDir` option.
2025-04-25 16:04:38 +01:00
Wyatt Avilla
d86fe3df56
modules/diagnostics: fix virtual_lines example
The setting is named `current_line`, not `only_current_line`.

See https://neovim.io/doc/user/diagnostic.html#vim.diagnostic.Opts.VirtualLines
2025-04-24 16:50:32 -07:00
Gaetan Lepage
991f3c8709 treewide: re-enable godot tests 2025-04-24 12:48:41 +02:00
Gaetan Lepage
60638182b8 tests/none-ls: disable rego and opacheck on aarch64-linux (build failure of open-policy-agent) 2025-04-22 12:16:02 +00:00
Gaetan Lepage
4f72d5c43e tests/{none-ls,efmls-configs}: disable ansible-lint (build failure) 2025-04-22 12:16:02 +00:00
Gaetan Lepage
9eb03ab777 treewide: disable godot (build failure) 2025-04-22 12:16:02 +00:00
Gaetan Lepage
d6709382e7 tests: disable tests depending on broken sourcekit on aarch64-linux 2025-04-22 12:16:02 +00:00
Gaetan Lepage
7a58109958 tests/dependencies: extend the disabled logic to the "examples" test case 2025-04-21 16:08:11 +02:00
Gaetan Lepage
91073486b2 tests/dependencies: add disabled list to skip testing broken dependencies 2025-04-21 13:55:36 +02:00
Gaetan Lepage
75efaa0a97 tests: move away from string comparisons with stdenv.hostPlatform 2025-04-21 21:25:15 +10:00
Gaetan Lepage
490bb4e2bd plugins/lilypond-suite: init 2025-04-20 23:59:36 +02:00
Austin Horstman
710f9cbd52 tests/cmp: disable codeium 2025-04-20 07:55:12 +10:00
Austin Horstman
b541c36468 tests/windsurf-nvim: dont run nvim
Transient error being cached.
2025-04-20 07:55:12 +10:00
Austin Horstman
c8cd3a9467 tests/efmls-configs: disable php tools
Broken dependency upstream
2025-04-20 07:55:12 +10:00
Austin Horstman
7f4efe62e0 plugins/windsurf-vim: rename codeium-vim
Rename plugin, use new packpathname, and update deprecations to point
from old name to new name.
2025-04-20 07:55:12 +10:00
Austin Horstman
1971ec5b2b plugins/windsurf-nvim: rename codeium-nvim
Rename plugin, use new packpathname, and update deprecations to point
from old name to new name.
2025-04-20 07:55:12 +10:00
Gaetan Lepage
0bdc32e331 plugins/supermaven: init
Co-authored-by: Po Co <polniolino@gmail.com>
2025-04-15 22:40:13 +01:00
Matt Sturgeon
d94956e5da
lib/deprecation: implement aliases for mkRemovedPackageOptionModule
Allows most existing configs to continue building, now with warnings
instead of assertions when the old `plugins.*.*Package` options are
used.

An assertion will still occur if there is a merge conflict, e.g:
`plugins.a.fooPackage = null` and `plugins.b.fooPackage = pkgs.foo`.
2025-04-15 22:15:18 +01:00
Gaetan Lepage
327d491936 plugins/parrot: init 2025-04-14 07:39:40 +10:00