Nixvim: Enable formatters using conform.nvim
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./lsp.nix
|
./lsp.nix
|
||||||
|
./formatter.nix
|
||||||
./telescope
|
./telescope
|
||||||
./cmp
|
./cmp
|
||||||
];
|
];
|
||||||
|
|||||||
15
modules/programs/nixvim/_nixvim-config/plugins/formatter.nix
Normal file
15
modules/programs/nixvim/_nixvim-config/plugins/formatter.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
plugins.conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
autoInstall.enable = true;
|
||||||
|
settings = {
|
||||||
|
formatters_by_ft = {
|
||||||
|
cpp = [ "clang_format" ];
|
||||||
|
markdown = [
|
||||||
|
"prettier"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
formatters = { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -20,6 +20,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
rnix.enable = true;
|
rnix.enable = true;
|
||||||
|
|
||||||
|
basedpyright.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
keymaps = [
|
keymaps = [
|
||||||
|
|||||||
Reference in New Issue
Block a user