fix: null_ls deprecated on crates.nvim

Signed-off-by: Christopher Valerio <christopher@valerio.guru>
This commit is contained in:
Christopher Valerio 2025-09-01 11:31:14 -06:00
commit 0334e94212
No known key found for this signature in database
GPG key ID: 56368034522CF3A9

View file

@ -109,14 +109,14 @@ in {
(mkIf cfg.crates.enable { (mkIf cfg.crates.enable {
vim = { vim = {
startPlugins = ["crates-nvim"]; startPlugins = ["crates-nvim"];
lsp.null-ls.enable = mkIf cfg.crates.codeActions true;
autocomplete.nvim-cmp.sources = {crates = "[Crates]";};
pluginRC.rust-crates = entryAnywhere '' pluginRC.rust-crates = entryAnywhere ''
require('crates').setup { require('crates').setup {
null_ls = { lsp = {
enabled = ${boolToString cfg.crates.codeActions}, enabled = true,
name = "crates.nvim", actions = true,
} completion = true,
hover = true,
},
} }
''; '';
}; };