feat(nixvim): added conform
also fixed merge conflict
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixvim.homeModules.nixvim
|
inputs.nixvim.homeModules.nixvim
|
||||||
|
./plugins
|
||||||
];
|
];
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
24
nix/modules/nixvim/plugins/conform.nix
Normal file
24
nix/modules/nixvim/plugins/conform.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ ... }: {
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins = {
|
||||||
|
conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
formatters_by_ft = {
|
||||||
|
nix = [ "nixfmt" ];
|
||||||
|
rust = [ "rustfmt" ];
|
||||||
|
"_" = [
|
||||||
|
"squeeze_blanks"
|
||||||
|
"trim_whitespace"
|
||||||
|
"trim_newlines"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
format_on_save = {
|
||||||
|
timeout_ms = 500;
|
||||||
|
lsp_format = "fallback";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./
|
./conform.nix
|
||||||
]
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
_: {
|
|
||||||
notify: ./notify.nix
|
|
||||||
}
|
|
||||||
@@ -1 +1 @@
|
|||||||
/nix/store/hlbhy7wzzj8fnh6c6fa9kg33c26s1hzy-home-manager-files/.config/nvim/init.lua
|
/nix/store/q03c1i1hawl68l71aynw1ykhmpw7mbxj-home-manager-files/.config/nvim/init.lua
|
||||||
Reference in New Issue
Block a user