Add nvim system defaults

nvim is now default editor
This commit is contained in:
GHOSCHT 2023-12-28 18:22:05 +01:00
parent 4873555459
commit 03d2ee2836
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -8,6 +8,8 @@
vars = import ../../../../vars.nix;
colors = config.colorScheme.colors;
in {
home.sessionVariables.EDITOR = "nvim";
programs.neovim = {
enable = true;
@ -151,4 +153,34 @@ in {
}
];
};
xdg.desktopEntries = {
nvim = {
name = "Neovim";
genericName = "Text Editor";
comment = "Edit text files";
exec = "nvim %F";
icon = "nvim";
mimeType = [
"text/english"
"text/plain"
"text/x-makefile"
"text/x-c++hdr"
"text/x-c++src"
"text/x-chdr"
"text/x-csrc"
"text/x-java"
"text/x-moc"
"text/x-pascal"
"text/x-tcl"
"text/x-tex"
"application/x-shellscript"
"text/x-c"
"text/x-c++"
];
terminal = true;
type = "Application";
categories = ["Utility" "TextEditor"];
};
};
}