mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00:00
Merge 179b3c8db2
into f5c91f6a66
This commit is contained in:
commit
31d37d29ed
1 changed files with 6 additions and 6 deletions
|
@ -109,14 +109,14 @@ in {
|
|||
(mkIf cfg.crates.enable {
|
||||
vim = {
|
||||
startPlugins = ["crates-nvim"];
|
||||
lsp.null-ls.enable = mkIf cfg.crates.codeActions true;
|
||||
autocomplete.nvim-cmp.sources = {crates = "[Crates]";};
|
||||
pluginRC.rust-crates = entryAnywhere ''
|
||||
require('crates').setup {
|
||||
null_ls = {
|
||||
enabled = ${boolToString cfg.crates.codeActions},
|
||||
name = "crates.nvim",
|
||||
}
|
||||
lsp = {
|
||||
enabled = ${boolToString cfg.crates.enable},
|
||||
actions = ${boolToString cfg.crates.codeActions},
|
||||
completion = ${boolToString cfg.crates.enable},
|
||||
hover = ${boolToString cfg.crates.enable},
|
||||
},
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue