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-context.nix # context line
|
||||||
./nixvim/treesitter.nix # syntax highlighting
|
./nixvim/treesitter.nix # syntax highlighting
|
||||||
./nixvim/which-key.nix # show keybind hints
|
./nixvim/which-key.nix # show keybind hints
|
||||||
|
./nixvim/conform-nvim.nix # formatter
|
||||||
];
|
];
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -43,6 +44,19 @@
|
||||||
backspace = "indent,eol,start";
|
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;
|
clipboard.providers.wl-copy.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
5
users/modules/programs/nixvim/conform-nvim.nix
Normal file
5
users/modules/programs/nixvim/conform-nvim.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
programs.nixvim.plugins.conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,6 +5,9 @@
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "t";
|
key = "t";
|
||||||
action = ":NvimTreeToggle<CR>";
|
action = ":NvimTreeToggle<CR>";
|
||||||
|
options = {
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
plugins = {
|
plugins = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue