Update vim config, fix printing, add more associations
This commit is contained in:
parent
e8cb263117
commit
cd12d6a385
|
@ -1,10 +1,20 @@
|
|||
[Default Applications]
|
||||
application/pdf=org.gnome.Evince.desktop
|
||||
application/vnd.oasis.opendocument.presentation=impress.desktop
|
||||
application/vnd.oasis.opendocument.spreadsheet=calc.desktop
|
||||
application/vnd.oasis.opendocument.text=writer.desktop
|
||||
application/xml=code.desktop
|
||||
audio/aac=mpv.desktop
|
||||
audio/flac=mpv.desktop
|
||||
image/png=org.gnome.eog.desktop
|
||||
audio/mpeg=mpv.desktop
|
||||
audio/ogg=mpv.desktop
|
||||
image/jpeg=org.gnome.eog.desktop
|
||||
image/png=org.gnome.eog.desktop
|
||||
text/html=firefox.desktop
|
||||
video/mp4=mpv.desktop
|
||||
video/mpeg=mpv.desktop
|
||||
video/ogg=mpv.desktop
|
||||
video/webm=mpv.desktop
|
||||
x-scheme-handler/about=firefox.desktop
|
||||
x-scheme-handler/discord-455712169795780630=discord-455712169795780630.desktop
|
||||
x-scheme-handler/http=firefox.desktop
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
enable = true;
|
||||
vimAlias = true;
|
||||
withNodeJs = true;
|
||||
configure = {
|
||||
customRC = builtins.readFile ./init.vim;
|
||||
packages.default.start = with pkgs.vimPlugins; [
|
||||
extraConfig = builtins.readFile ./init.vim;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
coc-nvim
|
||||
editorconfig-vim
|
||||
fzf-vim
|
||||
|
@ -27,7 +26,6 @@
|
|||
coc-rust-analyzer
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -51,5 +51,7 @@ nmap <leader>rn <Plug>(coc-rename)
|
|||
xmap <leader>f <Plug>(coc-format-selected)
|
||||
nmap <leader>f <Plug>(coc-format-selected)
|
||||
|
||||
nmap <leader>a <Plug>(coc-action)
|
||||
|
||||
command! -nargs=0 Format :call CocAction('format')
|
||||
command! -nargs=? Fold :call CocAction('fold', <f-args>)
|
||||
|
|
|
@ -3,8 +3,16 @@
|
|||
{
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [
|
||||
(pkgs.pkgsi686Linux.callPackage ../externals/packages/hll2300d { })
|
||||
drivers = with pkgs; [
|
||||
(pkgs.brlaser.overrideAttrs (old: {
|
||||
patches = [
|
||||
(pkgs.fetchpatch {
|
||||
name = "l2300d-fix.patch";
|
||||
url = "https://patch-diff.githubusercontent.com/raw/pdewacht/brlaser/pull/68.patch";
|
||||
sha256 = "07iqv048q0iplghn0aamjslyixw1p5jbk004i20xnl1vs95nyqzy";
|
||||
})
|
||||
];
|
||||
}))
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -62,5 +62,12 @@
|
|||
weechat
|
||||
];
|
||||
|
||||
|
||||
# Printing
|
||||
services.printing = {
|
||||
listenAddresses = [ "localhost:631" "10.69.0.2:631" "starlight.manehattan.artem.ist:631" ];
|
||||
allowFrom = [ "localhost" "10.69.0.*" ];
|
||||
};
|
||||
|
||||
system.stateVersion = "19.09";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue