Nixvim: Enable formatters using conform.nvim
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./lsp.nix
|
||||
./formatter.nix
|
||||
./telescope
|
||||
./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;
|
||||
};
|
||||
rnix.enable = true;
|
||||
|
||||
basedpyright.enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
|
||||
Reference in New Issue
Block a user