mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 01:05:38 +00:00
fix: neovim xdg mimeapps don't work in macos
This commit is contained in:
parent
3d73f8cab4
commit
d4fa322fb1
@ -34,11 +34,11 @@ in {
|
|||||||
programs.kitty.settings.scrollback_pager = lib.mkForce ''
|
programs.kitty.settings.scrollback_pager = lib.mkForce ''
|
||||||
${neovim}/bin/nvim -c 'setlocal nonumber nolist showtabline=0 foldcolumn=0|Man!' -c "autocmd VimEnter * normal G" -'';
|
${neovim}/bin/nvim -c 'setlocal nonumber nolist showtabline=0 foldcolumn=0|Man!' -c "autocmd VimEnter * normal G" -'';
|
||||||
|
|
||||||
xdg.desktopEntries.nvim = {
|
xdg.desktopEntries.nvim = lib.mkIf pkgs.stdenv.isLinux {
|
||||||
name = "Neovim wrapper";
|
name = "Neovim wrapper";
|
||||||
exec = "kitty nvim %F";
|
exec = "kitty nvim %F";
|
||||||
};
|
};
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = lib.mkIf pkgs.stdenv.isLinux {
|
||||||
defaultApplications."text/markdown" = [ "nvim.desktop" ];
|
defaultApplications."text/markdown" = [ "nvim.desktop" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user