feat: various minor tweaks
This commit is contained in:
parent
e64559e143
commit
e88a424bb1
4 changed files with 67 additions and 7 deletions
|
@ -1,11 +1,51 @@
|
||||||
{...}: {
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||||
|
in {
|
||||||
programs.newsboat = {
|
programs.newsboat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoReload = true;
|
autoReload = true;
|
||||||
|
browser =
|
||||||
|
if isLinux
|
||||||
|
then (lib.getExe pkgs.xdg-utils)
|
||||||
|
else "open";
|
||||||
urls = [
|
urls = [
|
||||||
{url = "https://blog.gitea.io/index.xml";}
|
{
|
||||||
{url = "https://neomutt.org/feed.xml";}
|
url = "https://blog.gitea.io/index.xml";
|
||||||
{url = "https://this-week-in-neovim.org/rss";}
|
title = "Gitea Blog";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
title = "Gitea Helm Chart";
|
||||||
|
url = "https://gitea.com/gitea/helm-chart/releases.rss";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
title = "Neomutt";
|
||||||
|
url = "https://neomutt.org/feed.xml";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
title = "This Week in Neovim";
|
||||||
|
url = "https://this-week-in-neovim.org/rss";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
title = "XKCD";
|
||||||
|
url = "https://xkcd.com/rss.xml";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
bind-key j down feedlist
|
||||||
|
bind-key k up feedlist
|
||||||
|
bind-key j next articlelist
|
||||||
|
bind-key k prev articlelist
|
||||||
|
bind-key J next-feed articlelist
|
||||||
|
bind-key K prev-feed articlelist
|
||||||
|
bind-key j down article
|
||||||
|
bind-key k up article
|
||||||
|
|
||||||
|
unbind-key C feedlist
|
||||||
|
confirm-exit no
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
"editor.inlineSuggest.enabled": true,
|
"editor.inlineSuggest.enabled": true,
|
||||||
"git.autofetch": true,
|
"git.autofetch": true,
|
||||||
"editor.lineNumbers": "relative",
|
"editor.lineNumbers": "relative",
|
||||||
"vim.easymotion": true,
|
|
||||||
"vim.incsearch": true,
|
"vim.incsearch": true,
|
||||||
"vim.replaceWithRegister": true,
|
"vim.replaceWithRegister": true,
|
||||||
"vim.useSystemClipboard": false,
|
"vim.useSystemClipboard": false,
|
||||||
|
@ -39,6 +38,22 @@
|
||||||
"before": ["<leader>", "n", "f"],
|
"before": ["<leader>", "n", "f"],
|
||||||
"commands": ["editor.action.formatDocument"]
|
"commands": ["editor.action.formatDocument"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"before": ["[", "d"],
|
||||||
|
"commands": ["editor.action.marker.prevInFiles"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": ["]", "d"],
|
||||||
|
"commands": ["editor.action.marker.nextInFiles"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": ["[", "c"],
|
||||||
|
"commands": ["workbench.action.editor.previousChange"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"before": ["]", "c"],
|
||||||
|
"commands": ["workbench.action.editor.nextChange"],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"before": ["<C-l>"],
|
"before": ["<C-l>"],
|
||||||
"after": ["<C-W>", "l"]
|
"after": ["<C-W>", "l"]
|
||||||
|
@ -95,5 +110,6 @@
|
||||||
"markdown.preview.fontFamily": "IBM Plex Sans, sans-serif",
|
"markdown.preview.fontFamily": "IBM Plex Sans, sans-serif",
|
||||||
"workbench.preferredDarkColorTheme": "Catppuccin Mocha",
|
"workbench.preferredDarkColorTheme": "Catppuccin Mocha",
|
||||||
"workbench.preferredHighContrastColorTheme": "Catppuccin Latte",
|
"workbench.preferredHighContrastColorTheme": "Catppuccin Latte",
|
||||||
"window.autoDetectColorScheme": true
|
"window.autoDetectColorScheme": true,
|
||||||
|
"vim.smartRelativeLine": true,
|
||||||
}
|
}
|
||||||
|
|
4
justfile
4
justfile
|
@ -40,3 +40,7 @@ install-fonts:
|
||||||
mkdir -p "{{fontdir}}"
|
mkdir -p "{{fontdir}}"
|
||||||
gpg --decrypt home/secrets/fonts.tgz.gpg | tar -xz -C "{{fontdir}}" --strip-components=1
|
gpg --decrypt home/secrets/fonts.tgz.gpg | tar -xz -C "{{fontdir}}" --strip-components=1
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
fetch:
|
||||||
|
@nix run nixpkgs\#onefetch -- --true-color never --no-bots -d lines-of-code
|
||||||
|
@nix run nixpkgs\#scc -- . --no-cocomo
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
mouse_drop_action = "swap";
|
mouse_drop_action = "swap";
|
||||||
mouse_follows_focus = "off";
|
mouse_follows_focus = "off";
|
||||||
mouse_modifier = "off";
|
mouse_modifier = "off";
|
||||||
window_animation_duration = "0.1";
|
window_animation_duration = "0.0";
|
||||||
window_border = "on";
|
window_border = "on";
|
||||||
window_border_blur = "on";
|
window_border_blur = "on";
|
||||||
window_border_width = "2";
|
window_border_width = "2";
|
||||||
|
|
Loading…
Reference in a new issue