Update home config + better kakoone destkop entry management
This commit is contained in:
parent
bb3a42ab6f
commit
8240e28c06
2 changed files with 20 additions and 24 deletions
|
|
@ -17,6 +17,19 @@ let
|
|||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
(makeDesktopItem
|
||||
{
|
||||
name = "kakoune";
|
||||
type = "Application";
|
||||
exec = "kak %U";
|
||||
icon = "kakoune";
|
||||
desktopName = "Kakoune";
|
||||
comment = "Kakoune text editor";
|
||||
terminal = true;
|
||||
categories = "Development;Office;";
|
||||
mimeType = "text/plain;text/*";
|
||||
})
|
||||
] ++ [
|
||||
# editorconfig-core-c
|
||||
python3.pkgs.editorconfig
|
||||
] ++ (
|
||||
|
|
@ -79,7 +92,7 @@ let
|
|||
plugins = with pkgs; [
|
||||
kakounePlugins.prelude-kak
|
||||
kakounePlugins.kak-lsp
|
||||
# kakounePlugins.auto-pairs-kak
|
||||
kakounePlugins.auto-pairs-kak
|
||||
kakounePlugins.powerline-kak
|
||||
kakounePlugins.connect-kak
|
||||
];
|
||||
|
|
@ -137,7 +150,7 @@ in
|
|||
];
|
||||
hooks = with pkgs; [
|
||||
{ name = "BufCreate"; option = ".*"; commands = "editorconfig-load"; }
|
||||
{ name = "ModuleLoaded"; option = "auto-pairs"; commands = "auto-pairs-enable"; }
|
||||
# { name = "ModuleLoaded"; option = "auto-pairs"; commands = "auto-pairs-enable"; }
|
||||
{ name = "ModuleLoaded"; option = "powerline"; commands = builtins.concatStringsSep "\n" [ "powerline-enable" ]; }
|
||||
# { name = "WinSetOption"; option = "filetype=(rust|python|c|cpp|latex|javascript|go|nix)"; commands = builtins.concatStringsSep "\n" [ "lsp-enable-window" ]; }
|
||||
] ++ (
|
||||
|
|
@ -350,22 +363,4 @@ in
|
|||
''
|
||||
)
|
||||
);
|
||||
|
||||
xdg.dataFile."applications/kakoune.desktop".source =
|
||||
let
|
||||
desktopItem = pkgs.makeDesktopItem
|
||||
{
|
||||
name = "kakoune";
|
||||
type = "Application";
|
||||
exec = "kak %U";
|
||||
icon = "kakoune";
|
||||
desktopName = "Kakoune";
|
||||
comment = "Kakoune text editor";
|
||||
terminal = true;
|
||||
categories = "Development;Office;";
|
||||
mimeType = "text/plain;text/*";
|
||||
};
|
||||
in
|
||||
builtins.toPath
|
||||
"${desktopItem}/share/applications/kakoune.desktop";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue