diff --git a/home/features/coding/nvim/default.nix b/home/features/coding/nvim/default.nix index 6f089d4..7fb907a 100644 --- a/home/features/coding/nvim/default.nix +++ b/home/features/coding/nvim/default.nix @@ -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"]; + }; + }; }