format code

This commit is contained in:
2025-12-24 06:47:56 +01:00
parent f01b079931
commit fb6ac408e1
3 changed files with 13 additions and 16 deletions

View File

@@ -3,9 +3,8 @@
pkgs,
inputs,
...
}:
{
imports = [ inputs.nixvim.homeModules.nixvim ];
}: {
imports = [inputs.nixvim.homeModules.nixvim];
home.sessionVariables = {
EDITOR = "nvim";
@@ -93,9 +92,9 @@
conform-nvim = {
enable = true;
settings.formatters_by_ft = with pkgs; {
lua = [ "stylua" ];
python = [ "black" ];
nix = [ "nixfmt" ];
lua = ["stylua"];
python = ["black"];
nix = ["nixfmt"];
};
# extraOptions = {
# default_format_opts.lsp_format = "fallback";
@@ -107,9 +106,9 @@
enable = true;
autoEnableSources = true;
settings.sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
{name = "nvim_lsp";}
{name = "path";}
{name = "buffer";}
];
settings.mapping = {
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";