feat: neovim plugins update
This commit is contained in:
parent
6e8014e0b5
commit
eaf110c96f
13 changed files with 1195 additions and 6 deletions
21
home-manager/modules/neovim/autocommands.nix
Normal file
21
home-manager/modules/neovim/autocommands.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{...}: {
|
||||
programs.nixvim = {
|
||||
autoCmd = [
|
||||
# Remove trailing whitespace on save
|
||||
{
|
||||
event = "BufWrite";
|
||||
command = "%s/\\s\\+$//e";
|
||||
}
|
||||
|
||||
{
|
||||
event = "FileType";
|
||||
pattern = [
|
||||
"tex"
|
||||
"latex"
|
||||
"markdown"
|
||||
];
|
||||
command = "setlocal spell spelllang=en_us";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue