feat: install conform-nvim
This commit is contained in:
parent
24063cd365
commit
15ed06def1
3 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue