feat: install conform-nvim

This commit is contained in:
Mohammad Rafiq 2025-03-11 12:33:32 +08:00
parent 24063cd365
commit 15ed06def1
3 changed files with 22 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./nixvim/treesitter-context.nix # context line
./nixvim/treesitter.nix # syntax highlighting
./nixvim/which-key.nix # show keybind hints
./nixvim/conform-nvim.nix # formatter
];
programs.nixvim = {
enable = true;
@ -43,6 +44,19 @@
backspace = "indent,eol,start";
};
keymaps = [
{
# make gf create the file if it doesnt exist
# cd to the working directory to handle relative file paths
key = "gf";
action = ":cd %:p:h<CR>:e <cfile><CR>";
options = {
silent = true;
};
}
];
clipboard.providers.wl-copy.enable = true;
};
}

View file

@ -0,0 +1,5 @@
{
programs.nixvim.plugins.conform-nvim = {
enable = true;
};
}

View file

@ -5,6 +5,9 @@
mode = "n";
key = "t";
action = ":NvimTreeToggle<CR>";
options = {
silent = true;
};
}
];
plugins = {