mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 15:30:50 +00:00
Compare commits
4 commits
90943ff33a
...
ff31e0fe25
| Author | SHA1 | Date | |
|---|---|---|---|
|
ff31e0fe25 |
|||
|
|
132c3da8ec |
||
|
a6d9e75f37 |
|||
|
|
e9e7bfba53 |
3 changed files with 38 additions and 5 deletions
|
|
@ -139,3 +139,7 @@
|
||||||
|
|
||||||
- Add `vim.languages.zig.dap` support through pkgs.lldb dap adapter. Code
|
- Add `vim.languages.zig.dap` support through pkgs.lldb dap adapter. Code
|
||||||
Inspiration from `vim.languages.clang.dap` implementation.
|
Inspiration from `vim.languages.clang.dap` implementation.
|
||||||
|
|
||||||
|
[nezia1](https://github.com/nezia1)
|
||||||
|
|
||||||
|
- Add support for [nixd](https://github.com/nix-community/nixd) language server.
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,40 @@
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixd = {
|
||||||
|
package = pkgs.nixd;
|
||||||
|
internalFormatter = true;
|
||||||
|
lspConfig = ''
|
||||||
|
lspconfig.nixd.setup{
|
||||||
|
capabilities = capabilities,
|
||||||
|
${
|
||||||
|
if cfg.format.enable
|
||||||
|
then useFormat
|
||||||
|
else noFormat
|
||||||
|
},
|
||||||
|
cmd = ${packageToCmd cfg.lsp.package "nixd"},
|
||||||
|
${optionalString cfg.format.enable ''
|
||||||
|
settings = {
|
||||||
|
nixd = {
|
||||||
|
${optionalString (cfg.format.type == "alejandra")
|
||||||
|
''
|
||||||
|
formatting = {
|
||||||
|
command = {"${cfg.format.package}/bin/alejandra", "--quiet"},
|
||||||
|
},
|
||||||
|
''}
|
||||||
|
${optionalString (cfg.format.type == "nixfmt")
|
||||||
|
''
|
||||||
|
formatting = {
|
||||||
|
command = {"${cfg.format.package}/bin/nixfmt"},
|
||||||
|
},
|
||||||
|
''}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
''}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultFormat = "alejandra";
|
defaultFormat = "alejandra";
|
||||||
|
|
|
||||||
|
|
@ -87,11 +87,6 @@
|
||||||
type = float;
|
type = float;
|
||||||
default = 0.55;
|
default = 0.55;
|
||||||
};
|
};
|
||||||
results_width = mkOption {
|
|
||||||
description = "";
|
|
||||||
type = float;
|
|
||||||
default = 0.8;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
vertical = {
|
vertical = {
|
||||||
mirror = mkOption {
|
mirror = mkOption {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue