Commit graph

1078 commits

Author SHA1 Message Date
Stanislav Asunkin
06261fc472 modules/lsp/servers/vls: do not add filetype extension if not enabled 2024-07-21 20:17:03 +02:00
Sandro Jäckel
8a4dc239d6 plugins/{lsp,none-ls}: remove package aliases 2024-07-19 18:39:01 +02:00
Matt Sturgeon
55bda0cc3b
plugins/none-ls/sources: structured "with" settings
Allow supplying strLua or an attrset that will be handled using
`toLuaObject`.

Included an example and a link to the [upstream documentation].

[upstream documentation]: https://github.com/nvimtools/none-ls.nvim/blob/main/doc/BUILTIN_CONFIG.md
2024-07-17 14:50:05 +01:00
Sandro
433d2f213c
plugins/treesitter: disable folding by default 2024-07-15 11:58:08 +02:00
Gaetan Lepage
0d95fc6888 plugins/telescope/extensions/undo: deprecate option diff_context_lines 2024-07-14 00:05:32 +02:00
Matt Sturgeon
06a44e9e88
plugins/none-ls: rename servers.nix to sources.nix 2024-07-13 20:20:51 +01:00
Matt Sturgeon
4f3cd9f368
plugins/none-ls: combine packaged+unpackaged lists
We can just make `packaged` nullable again.
2024-07-13 20:20:46 +01:00
Matt Sturgeon
d8f3113e90
plugins/none-ls: refactor using mkSourcePlugin
Introduce `_mk-source-plugin.nix`, which returns a module handling a
specific none-ls source plugin.

This wasn't possible previously due to IFD conflicting with evaluating
module imports.

Adjusted the test to use the `options` provided via module args, and
cleaned up some stuff allowing "unpackaged" sources to not be listed
again in the test file.
2024-07-13 20:11:09 +01:00
Matt Sturgeon
195978e627
plugins/treesitter: fix ensure_installed to allow "all"
The plugin allows passing either the string `"all"` or a list of languages.
2024-07-13 10:59:02 +01:00
Austin Horstman
89d74cdce1
plugins/treesitter: fix folding
opts getting wiped out by setting entire set as default instead of each
attribute
2024-07-12 12:13:27 -05:00
Austin Horstman
1385953299
plugins/treesitter: fix parser_install_dir default
The plugin's default is not compatible with nix, because it ends up in
the read-only /nix/store.

Set our default to the one used in their upcoming "1.0" version.
2024-07-12 10:48:21 -05:00
hrmny
53e85da240
plugins/intellitab: fix treesitter option usage
intellitab was still using the old deprecated option.
2024-07-11 23:06:35 +01:00
traxys
123c102a13 plugin/rustaceanvim: Handle rust-analyzer settings rename 2024-07-10 22:44:58 +02:00
Matt Sturgeon
497ce47593
maintainers: remove MattSturgeon 2024-07-10 09:18:17 +01:00
Matt Sturgeon
a5e9dbdef1
plugins/bufdelete: init 2024-07-09 14:15:38 +01:00
traxys
023dc1c93a plugins/treesitter: Add a treesitter injection query for raw lua 2024-07-09 07:45:26 +00:00
traxys
29118021b3 plugins/treesitter: Adapt nixvim queries to 0.10 2024-07-09 07:45:26 +00:00
seth
0f76a8cdfc plugins/glow: init 2024-07-09 06:06:29 +00:00
Austin Horstman
1a644b8c2b
plugins/treesitter: fix settingsExample 2024-07-08 14:23:42 -05:00
Austin Horstman
97fa47376b
treewide: treesitter moduleConfig -> settings 2024-07-08 09:09:48 -05:00
Austin Horstman
435ef287ab
plugins/treesitter: switch to mkNeovimPlugin 2024-07-08 09:09:48 -05:00
Matt Sturgeon
c0ea106b4b
colorschemes/base16: add settings + refactor
Added support for the plugin's "advanced" config settings.

Removed the enum restriction and prefix concatenation, allowing anything
to be passed through, including raw lua: fixes #1675

The theme list is now much shorter and is included directly in the option
description.

Some general cleanup, in particular to `extraConfig` and `customColorschemeType`.
2024-07-08 10:21:27 +01:00
Gaetan Lepage
451beb4eca plugins/leap: allow __empty for safeLabels option 2024-07-08 09:54:47 +02:00
Matt Sturgeon
086873bed9
modules: refactor extraFiles
Moved `extraFiles` from `modules/output.nix` into its own file `modules/files.nix`.

Users should now assign text to a `text` attribute, however they could
also assign a file path to a `source` attribute instead.

The old method of directly assigning a string still works, and is
coerced to the new type along with a deprecation warning.
2024-07-07 16:42:47 +01:00
traxys
930f5fdd21 plugins/none-ls: Adapt to autogenerated builtin list 2024-07-05 21:36:45 +02:00
traxys
0b93815db5 dev: Add a script to generate the none-ls builtins 2024-07-05 21:36:45 +02:00
traxys
99f272d8c7 plugigns/efmls-configs: Use the generated source files 2024-07-05 16:57:03 +02:00
traxys
c1231826b9 dev: Add a script to generate efmls-configs tools 2024-07-05 16:57:03 +02:00
m1mir
87c7757a5b
plugins/coverage: Added keymap for the loadLcov command. 2024-07-05 13:36:29 +01:00
traxys
954876bef7 plugins/lsp/rust-analyzer: Use the newly generated options 2024-07-05 13:34:44 +02:00
traxys
8b6b2e5253 dev: Add a script to generate rust-analyzer options 2024-07-05 13:34:44 +02:00
Gaetan Lepage
92e9f5466d plugins/chatgpt: init 2024-07-04 21:00:56 +00: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
purepani
079c2c479b plugins/lsp/pylsp: Add python option to generate obtain the pylsp from.
Currently, pkgs.python3Packges is used by default and is unable to be
changed. This stops consumers from using different/newer python
versions.
2024-07-01 19:58:20 +01:00
Matt Sturgeon
100ae4027d
plugins/nvim-osc52: mark as obsolete
Upstream has declared the plugin obsolete because OSC52 support was
added to Neovim 0.10.

See https://neovim.io/doc/user/provider.html#clipboard-osc52
2024-07-01 17:24:08 +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
Gaetan Lepage
7cc1685eaf plugins/neotest: add assertion to ensure that neotest is enabled if an adapter is 2024-07-01 13:59:20 +02: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
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
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
Sandro
38e3849f4a plugins/surround: stop using alias 2024-06-28 17:18:31 +02:00