Commit graph

74 commits

Author SHA1 Message Date
Austin Horstman
4e6bb69680
plugins/none-ls: fix pkg names 2024-09-08 19:22:03 -05:00
Austin Horstman
5330427e2b
plugins/none-ls: fix pkg names 2024-09-08 18:35:01 -05:00
Matt Sturgeon
cdb2e79e51
lib/pkg-lists: move to common location
Extract the helper functions defined in `efmls-configs-pkgs` to a common
location where they can also be used by none-ls's package list.
2024-09-04 20:29:52 +01:00
Matt Sturgeon
d2aad1071f
plugins/none-ls: use defaultText in package options 2024-09-04 20:29:52 +01:00
Matt Sturgeon
1fd4b6c739
plugins: migrate defaultPackage -> package
Migrate all users of `mkVimPlugin` and `mkNeovimPlugin` to use the new
`package` argument instead of the old `defaultPackage` argument.
2024-09-04 03:29:34 +01:00
Matt Sturgeon
18b7597e6c
lib/neovim-plugin: drop config arg 2024-09-02 10:35:52 +01:00
Florian Brandes
d7bdf1f4b8
plugins/none-ls: update prisma package name
Due to https://github.com/NixOS/nixpkgs/pull/337521

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-08-31 21:06:05 +01:00
Gaetan Lepage
1e761b11bc generated: Update
- Updated none-ls.nix
- Updated rust-analyzer.nix
2024-07-31 17:05:50 +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
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
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
Matt Sturgeon
ca8ac5f8e4
plugins/none-ls: switch to mkNeovimPlugin 2024-06-27 11:35:41 +01:00
Gaetan Lepage
bd650b953e plugins/none-ls: add typstyle server 2024-06-24 08:32:52 +02:00
Matt Sturgeon
0caa5b957e
plugins/none-ls: normalize plugin defaults 2024-06-21 08:49:08 +01:00
Matt Sturgeon
4ab2b289b6
plugins/none-ls: more compatible gdtoolkit fix
Nixpkgs renamed to gdtoolkit_3 & _4 without maintaining an alias!
Out of sync lock files could be using either attr name...
2024-06-13 13:43:43 +01:00
Gaetan Lepage
4edfed1075 plugins/none-ls: add package association for xmllint 2024-06-12 15:04:09 +02:00
Gaetan Lepage
d777475e69 plugins/none-ls: add package association for opentofu_fmt 2024-06-12 15:04:09 +02:00
Drewry Pope
ca7db4316d plugins/none-ls: update gdtoolkit to gdtoolkit_4 2024-06-12 15:04:09 +02:00
Matt Sturgeon
d136c08f3a
plugins: normalise null plugin-defaults
Replaced all instances of `"null"` with `null`, when passing
plugin-defaults to `defaultNullOpts` functions.
2024-06-02 03:18:10 +01:00
traxys
62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Gaetan Lepage
f2f97d844b misc: allow null in extraPackages 2024-04-24 08:10:51 +02:00
Gaetan Lepage
6f7b236f65 plugins/none-ls: update tools 2024-04-22 15:54:34 +02:00
Gaetan Lepage
2742dc091a plugins/none-ls: rename package nixfmt to nixfmt-classic 2024-04-09 10:42:58 +02:00
Gaetan Lepage
f05d5aaf3b plugins/none-ls: add new server htmlbeautifier 2024-04-09 10:42:58 +02:00
Gaetan Lepage
c8f97fc952 plugins/none-ls: update sources 2024-03-18 11:56:56 +01:00
Gaétan Lepage
a1636f620f
plugins/none-ls: Switch from assertions to warnings for none-ls tools maintenance (#1285) 2024-03-18 10:36:35 +01:00
Gaetan Lepage
ace360b5de plugins/none-ls: clean tools list w.r.t upstream 2024-03-07 14:52:18 +01:00
Gaetan Lepage
1748ebaf92 plugins/none-ls: automatic check for tools packages declaration 2024-03-07 14:52:18 +01:00
Gaetan Lepage
bb64e79de6 plugins/none-ls: add packages for supported builtin tools 2024-03-06 22:25:37 +01:00
Rob Hanlon
64d3996bd0
plugins/none-ls: fix withArgs type, syntax (#1182)
This was previously null or string, but was changed to null or Lua in
nix-community/nixvim#1169. Internally, `withArgs` is expected to be a
string, but `mkNullOrLua` applies `mkRaw`, leading to a type error when
generating the output, as it is attempting to interpolate a set rather
than a string.

Tested locally, and verified that it fixes my setup.
2024-03-03 11:39:13 +01:00
traxys
f9280a6865
plugin/none-ls: Implement all builtins (#1169)
* plugins/none-ls: Use upstream builtins.json to list sources

This avoids the need to define sources in nixvim. We only need to define
a mapping from source names to packages.

This commit does not yet introduce sources for the newly available builtins

* plugin/none-ls: Enable all known sources in tests

* plugins/none-ls: Add all missing sources
2024-03-01 13:24:14 +01:00
Gaetan Lepage
07e690abd4 plugins/none-ls: use php-codesniffer package instead of deprecated phpcbf 2024-02-28 09:30:26 +01:00
Nathan Felber
060a05138c Add ruff linter and formatter as none-ls source 2024-02-22 16:15:40 +01:00
James Taranto
be82033814 plugins/none-ls: add typos 2024-02-15 13:06:08 +01:00
Mateus Alves
81ff1f8f6f
plugins/none-ls: Add google_java_format as a source for none-ls (#1068)
Add google_java_format for none-ls sources.
2024-02-12 21:36:48 +01:00
James Taranto
2d7c834866 plugins/none-ls add stylelint 2024-02-12 11:09:23 +01:00
Mateus Alves
b0edf063c4
plugins/none-ls: add prettierd (#1058)
add prettierd formatter source for none-ls.
2024-02-12 08:40:11 +01:00
Mateus Alves
2b3581e41a
plugins/none-ls: add asmfmt (#1064)
Add an option to enable asmfmt in none-ls sources.
2024-02-11 21:49:33 +01:00
Gabriel Arazas
0b5800a2a2
docs: clean up descriptions (#1061) 2024-02-11 13:51:34 +01:00
Gaetan Lepage
7dbf7f978c plugins: do not import helpers.nix directly 2024-02-11 11:50:35 +01:00
Mateus Alves
9f3bbca7f1
plugins/none-ls: add astyle (#1056)
Add an option to enable astyle none-ls source.
2024-02-11 10:32:13 +01:00
Mateus Alves
66c069c48d
plugins/none-ls: add checkstyle (#1047)
Add an option to enable checkstyle none-ls source.
2024-02-10 07:05:57 +01:00
Gaetan Lepage
e2c3459d1d lib/helpers: extraOptionsOptions -> neovim-plugin.extraOptionsOptions 2024-01-28 23:39:14 +01:00
Coutinho de Souza
8b91bf010a
plugins/none-ls: add bean_format (#985) 2024-01-28 11:31:47 +01:00
Gaetan Lepage
bcbe244e54 plugins/none-ls: remove deprecated prettier_d_slim formatter 2024-01-22 13:41:54 +01:00
Geoffrey Frogeye
05fcc7ebe1
plugins/none-ls: add formatting/code_action source: ltrs (#953) 2024-01-20 19:07:30 +01:00