Much fun stuff
- Add aerc, a terminal email client - Switch to gruvbox colorschemes - Improve base16 Support in kakoune - Add buffer switch binding in kakoune - Correct quick file openers to real files in kakoune - Add proper tab indentation and quick selection to kakoune - Add markdown support and harper spellcheck in kakoune - Import shellpath into a kakoune variable so it can be used in kakscripts - Add render markdown on toggle to kakoune to see approximate of final output - Add lazygit with config for visual git grepping - Add gdb debugger to C language - Add CLI tools: pv, mtr, shellcheck, wiki-tui and ddgr - Add tree as an alias to eza - Bash source .profile - Theme yazi with base16 - Add zk zettelkasten for note taking - Make home.nix imports look nicer
This commit is contained in:
1 parent
f60301981c
commit
da6f89df0d
15 files changed
+529
-123
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.aerc = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
+43
-19
@@ -5,27 +5,51 @@
|
|||||||
nix-colors.homeManagerModules.default
|
nix-colors.homeManagerModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# colorScheme = {
|
||||||
|
# slug = "gruvbox-light-hard";
|
||||||
|
# name = "Gruvbox Light Hard";
|
||||||
|
# author = "Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)";
|
||||||
|
# palette = {
|
||||||
|
# base00 = "F9F5D7";
|
||||||
|
# base01 = "EBDBB2";
|
||||||
|
# base02 = "D5C4A1";
|
||||||
|
# base03 = "BDAE93";
|
||||||
|
# base04 = "665C54";
|
||||||
|
# base05 = "504945";
|
||||||
|
# base06 = "3C3836";
|
||||||
|
# base07 = "282828";
|
||||||
|
# base08 = "9D0006";
|
||||||
|
# base09 = "AF3A03";
|
||||||
|
# base0A = "B57614";
|
||||||
|
# base0B = "79740E";
|
||||||
|
# base0C = "427B58";
|
||||||
|
# base0D = "076678";
|
||||||
|
# base0E = "8F3F71";
|
||||||
|
# base0F = "D65D0E";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
colorScheme = {
|
colorScheme = {
|
||||||
slug = "ef-cyprus";
|
slug = "gruvbox-dark-hard";
|
||||||
name = "ef-cyprus";
|
name = "Gruvbox Dark Hard";
|
||||||
author = "Protesilaos Stavrou (https://protesilaos.com)";
|
author = "Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)";
|
||||||
palette = {
|
palette = {
|
||||||
base00 = "FCF7EF";
|
base00 = "1D2021";
|
||||||
base01 = "F0ECE0";
|
base01 = "3C3836";
|
||||||
base02 = "E5E3D8";
|
base02 = "504945";
|
||||||
base03 = "59786F";
|
base03 = "665C54";
|
||||||
base04 = "7F475A";
|
base04 = "BDAE93";
|
||||||
base05 = "242521";
|
base05 = "D5C4A1";
|
||||||
base06 = "142010";
|
base06 = "EBDBB2";
|
||||||
base07 = "C0DF6F";
|
base07 = "FBF1C7";
|
||||||
base08 = "9F0D0F";
|
base08 = "FB4934";
|
||||||
base09 = "BF4400";
|
base09 = "FE8019";
|
||||||
base0A = "A7601F";
|
base0A = "FABD2F";
|
||||||
base0B = "006F00";
|
base0B = "B8BB26";
|
||||||
base0C = "1F70AF";
|
base0C = "8EC07C";
|
||||||
base0D = "375CC6";
|
base0D = "83A598";
|
||||||
base0E = "9A456F";
|
base0E = "D3869B";
|
||||||
base0F = "8F6F4A";
|
base0F = "D65D0E";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
+51
-79
@@ -1,89 +1,61 @@
|
|||||||
{ config, lib, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
c = config.colorScheme.palette;
|
c = config.colorScheme.palette;
|
||||||
rgb = hex: "rgb:${lib.toLower hex}";
|
rgb = hex: "rgb:${hex}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.configFile."kak/colors/nix-colorscheme.kak".text = ''
|
xdg.configFile."kak/colors/nix-colorscheme.kak".text = ''
|
||||||
declare-option str bg_main '${rgb c.base00}'
|
## base16.kak — driven by nix-colors palette (${config.colorScheme.name})
|
||||||
declare-option str fg_main '${rgb c.base05}'
|
|
||||||
declare-option str bg_dim '${rgb c.base01}'
|
|
||||||
declare-option str fg_dim '${rgb c.base03}'
|
|
||||||
declare-option str bg_alt '${rgb c.base02}'
|
|
||||||
declare-option str fg_alt '${rgb c.base04}'
|
|
||||||
declare-option str bg_active '${rgb c.base02}'
|
|
||||||
declare-option str bg_inactive '${rgb c.base01}'
|
|
||||||
declare-option str red '${rgb c.base08}'
|
|
||||||
declare-option str red_bright '${rgb c.base08}'
|
|
||||||
declare-option str green '${rgb c.base0B}'
|
|
||||||
declare-option str green_bright '${rgb c.base0B}'
|
|
||||||
declare-option str yellow '${rgb c.base0A}'
|
|
||||||
declare-option str yellow_bright '${rgb c.base0A}'
|
|
||||||
declare-option str blue '${rgb c.base0D}'
|
|
||||||
declare-option str blue_bright '${rgb c.base0D}'
|
|
||||||
declare-option str purple '${rgb c.base0E}'
|
|
||||||
declare-option str purple_bright '${rgb c.base0E}'
|
|
||||||
declare-option str bg_mode_line '${rgb c.base07}'
|
|
||||||
declare-option str fg_mode_line '${rgb c.base06}'
|
|
||||||
declare-option str cursor '${rgb c.base0B}'
|
|
||||||
declare-option str bg_hl_line '${rgb c.base01}'
|
|
||||||
declare-option str fg_space '${rgb c.base03}'
|
|
||||||
declare-option str psel '${rgb c.base02}'
|
|
||||||
declare-option str ssel '${rgb c.base01}'
|
|
||||||
|
|
||||||
# For code
|
## code
|
||||||
set-face global value '${rgb c.base05}'
|
face global value ${rgb c.base09}+b
|
||||||
set-face global type '${rgb c.base0D}'
|
face global type ${rgb c.base0A}
|
||||||
set-face global variable '${rgb c.base0C}'
|
face global variable ${rgb c.base08}
|
||||||
set-face global keyword '${rgb c.base0B}'
|
face global module ${rgb c.base0B}
|
||||||
set-face global module '${rgb c.base05}'
|
face global function ${rgb c.base0D}
|
||||||
set-face global function '${rgb c.base0A}'
|
face global string ${rgb c.base0B}
|
||||||
set-face global string '${rgb c.base08}'
|
face global keyword ${rgb c.base0E}+b
|
||||||
set-face global builtin '${rgb c.base0B}'
|
face global operator ${rgb c.base0C}
|
||||||
set-face global constant '${rgb c.base0B}'
|
face global attribute ${rgb c.base09}
|
||||||
set-face global comment '${rgb c.base0F}'
|
face global comment ${rgb c.base03}
|
||||||
set-face global meta '${rgb c.base08}'
|
face global documentation comment
|
||||||
set-face global operator '${rgb c.base05}'
|
face global meta ${rgb c.base0A}
|
||||||
set-face global comma '${rgb c.base05}'
|
face global builtin default+b
|
||||||
set-face global bracket '${rgb c.base0C}'
|
|
||||||
|
|
||||||
# For markup
|
## markup
|
||||||
set-face global title "%opt{purple}"
|
face global title ${rgb c.base0D}
|
||||||
set-face global header "%opt{yellow_bright}"
|
face global header ${rgb c.base0D}
|
||||||
set-face global bold "%opt{purple}"
|
face global mono ${rgb c.base0B}
|
||||||
set-face global italic "%opt{purple_bright}"
|
face global block ${rgb c.base09}
|
||||||
set-face global mono "%opt{green}"
|
face global link ${rgb c.base0D}
|
||||||
set-face global block "%opt{blue_bright}"
|
face global bullet ${rgb c.base0F}
|
||||||
set-face global link "%opt{green}"
|
face global list ${rgb c.base08}
|
||||||
set-face global bullet "%opt{green}"
|
|
||||||
set-face global list "%opt{fg_main}"
|
|
||||||
|
|
||||||
# Builtin faces
|
## builtin
|
||||||
set-face global Default "%opt{fg_main},%opt{bg_main}"
|
face global Default ${rgb c.base05},${rgb c.base00}
|
||||||
set-face global PrimarySelection "default,%opt{psel}"
|
face global PrimarySelection ${rgb c.base00},${rgb c.base0D}+fg
|
||||||
set-face global SecondarySelection "default,%opt{ssel}"
|
face global SecondarySelection ${rgb c.base00},${rgb c.base03}+fg
|
||||||
set-face global PrimaryCursor "%opt{bg_main},%opt{cursor}"
|
face global PrimaryCursor ${rgb c.base00},${rgb c.base05}+fg
|
||||||
set-face global SecondaryCursor "%opt{bg_main},%opt{fg_alt}"
|
face global SecondaryCursor ${rgb c.base00},${rgb c.base05}+fg
|
||||||
set-face global PrimaryCursorEol "%opt{bg_main},%opt{red_bright}"
|
face global PrimaryCursorEol ${rgb c.base00},${rgb c.base0C}+fg
|
||||||
set-face global SecondaryCursorEol "%opt{bg_main},%opt{blue}"
|
face global SecondaryCursorEol ${rgb c.base00},${rgb c.base0C}+fg
|
||||||
set-face global LineNumbers "%opt{fg_dim},%opt{bg_main}"
|
face global LineNumbers ${rgb c.base03},${rgb c.base00}
|
||||||
set-face global LineNumberCursor "%opt{fg_alt},%opt{bg_main}+b"
|
face global LineNumberCursor ${rgb c.base05},${rgb c.base01}+b
|
||||||
set-face global LineNumbersWrapped "%opt{bg_dim},%opt{bg_main}+i"
|
face global MenuForeground ${rgb c.base00},${rgb c.base0D}
|
||||||
set-face global MenuForeground "%opt{bg_main},%opt{fg_main}+b"
|
face global MenuBackground ${rgb c.base05},${rgb c.base01}
|
||||||
set-face global MenuBackground "%opt{fg_main},%opt{bg_alt}"
|
face global MenuInfo ${rgb c.base0C}
|
||||||
set-face global MenuInfo "%opt{fg_alt},%opt{bg_alt}"
|
face global Information ${rgb c.base00},${rgb c.base0C}
|
||||||
set-face global Information "%opt{fg_mode_line},%opt{bg_mode_line}"
|
face global Error ${rgb c.base00},${rgb c.base08}
|
||||||
set-face global Error "%opt{red},%opt{bg_mode_line}"
|
face global DiagnosticError ${rgb c.base08}
|
||||||
set-face global StatusLine "%opt{fg_mode_line},%opt{bg_mode_line}"
|
face global DiagnosticWarning ${rgb c.base0A}
|
||||||
set-face global StatusLineMode "%opt{fg_mode_line},%opt{bg_mode_line}"
|
face global StatusLine ${rgb c.base05},${rgb c.base01}
|
||||||
set-face global StatusLineInfo "%opt{fg_mode_line},%opt{bg_mode_line}"
|
face global StatusLineMode ${rgb c.base09}
|
||||||
set-face global StatusLineValue "%opt{fg_mode_line},%opt{bg_mode_line}"
|
face global StatusLineInfo ${rgb c.base0C}
|
||||||
set-face global StatusCursor "%opt{fg_main},%opt{blue}"
|
face global StatusLineValue ${rgb c.base0B}
|
||||||
set-face global Prompt "%opt{fg_mode_line},%opt{bg_mode_line}"
|
face global StatusCursor ${rgb c.base01},${rgb c.base0C}
|
||||||
set-face global MatchingChar "%opt{blue},%opt{bg_main}"
|
face global Prompt ${rgb c.base00},${rgb c.base0C}
|
||||||
set-face global Whitespace "%opt{fg_space},%opt{bg_main}+f"
|
face global MatchingChar ${rgb c.base0C},${rgb c.base01}+b
|
||||||
set-face global WrapMarker Whitespace
|
face global BufferPadding ${rgb c.base03},${rgb c.base00}
|
||||||
set-face global BufferPadding "%opt{bg_main},%opt{bg_main}"
|
face global Whitespace ${rgb c.base03}+f
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
@@ -46,17 +46,21 @@ map global buffer-mode d ':delete-buffer<ret>' -docstring 'delete buffer'
|
|||||||
map global buffer-mode k ':delete-buffer!<ret>' -docstring 'kill buffer'
|
map global buffer-mode k ':delete-buffer!<ret>' -docstring 'kill buffer'
|
||||||
map global buffer-mode n ':buffer-next<ret>' -docstring 'next buffer'
|
map global buffer-mode n ':buffer-next<ret>' -docstring 'next buffer'
|
||||||
map global buffer-mode p ':buffer-previous<ret>' -docstring 'previous buffer'
|
map global buffer-mode p ':buffer-previous<ret>' -docstring 'previous buffer'
|
||||||
|
map global buffer-mode b ':buffer ' -docstring 'buffer switch'
|
||||||
|
|
||||||
# Comment Line
|
# Comment Line
|
||||||
map global normal '#' ':comment-line<ret>'
|
map global normal '#' ':comment-line<ret>'
|
||||||
|
|
||||||
# File Keybinds
|
# File Keybinds
|
||||||
declare-user-mode file-mode
|
declare-user-mode file-mode
|
||||||
map global user f ':enter-user-mode file-mode<ret>' -docstring 'file...'
|
map global user f ':enter-user-mode file-mode<ret>' -docstring 'file...'
|
||||||
map global file-mode f '<esc>:prompt -shell-script-candidates %{ fd --type f } file: %{ edit %val{text} }<ret>' -docstring 'find file'
|
map global file-mode f '<esc>:prompt -shell-script-candidates %{ fd --type f } file: %{ edit %val{text} }<ret>' -docstring 'find file'
|
||||||
map global file-mode c ':e ~/.config/kak/kakrc<ret>' -docstring 'open config'
|
map global file-mode p '<esc>:prompt -shell-script-candidates %{ fd --type f . "$(dirname "$kak_buffile")" } file: %{ edit %val{text} }<ret>' -docstring 'find file from buffer'
|
||||||
map global file-mode t ':e ~/Documents/Notes/TODO.md<ret>' -docstring 'open todo'
|
map global file-mode g ':grep -i ' -docstring 'grep files'
|
||||||
map global file-mode a ':e ~/.config/almoxarife.yaml' -docstring 'open alconf'
|
|
||||||
|
map global file-mode c ':e ~/.config/home-manager/config/kakoune/config.kak<ret>' -docstring 'open config'
|
||||||
|
map global file-mode t ':e ~/Documents/Notes/TODO.md<ret>' -docstring 'open todo'
|
||||||
|
map global file-mode n ':e ~/.config/home-manager/home.nix' -docstring 'open nix'
|
||||||
|
|
||||||
# Search case-insensitive by default
|
# Search case-insensitive by default
|
||||||
map global normal '/' '/(?Si)'
|
map global normal '/' '/(?Si)'
|
||||||
@@ -107,6 +111,7 @@ hook global InsertCompletionShow .* %{
|
|||||||
map global normal <tab> '>'
|
map global normal <tab> '>'
|
||||||
map global normal <s-tab> '<'
|
map global normal <s-tab> '<'
|
||||||
|
|
||||||
|
# Go to start of line intelligently based on indentation
|
||||||
define-command smart-gh -docstring 'smart goto line start' \
|
define-command smart-gh -docstring 'smart goto line start' \
|
||||||
%{
|
%{
|
||||||
set-register c %val{cursor_column}
|
set-register c %val{cursor_column}
|
||||||
@@ -126,6 +131,19 @@ map global goto h '<esc>:smart-gh<ret>' -docstring 'line begin (smart)'
|
|||||||
declare-user-mode window-mode
|
declare-user-mode window-mode
|
||||||
map global user w ':enter-user-mode window-mode<ret>' -docstring 'window...'
|
map global user w ':enter-user-mode window-mode<ret>' -docstring 'window...'
|
||||||
map global window-mode c ':kitty-terminal-window kak -c %val{session}<ret>' -docstring 'create new window'
|
map global window-mode c ':kitty-terminal-window kak -c %val{session}<ret>' -docstring 'create new window'
|
||||||
|
map global window-mode t ':kitty-terminal-window %opt{shellpath}<ret>' -docstring 'create terminal window'
|
||||||
|
|
||||||
|
# Selection binds
|
||||||
|
declare-user-mode select-mode
|
||||||
|
map global user s ':enter-user-mode select-mode<ret>' -docstring 'select...'
|
||||||
|
map global select-mode i '<a-i>' -docstring 'select inside object'
|
||||||
|
map global select-mode a '<a-a>' -docstring 'select around object'
|
||||||
|
|
||||||
|
# Tab Indenting
|
||||||
|
hook global WinSetOption filetype=(?!makefile).* %{
|
||||||
|
map buffer insert <tab> '<a-;><a-gt>'
|
||||||
|
map buffer insert <s-tab> '<a-;><a-lt>'
|
||||||
|
}
|
||||||
|
|
||||||
# ~~~
|
# ~~~
|
||||||
# LSP
|
# LSP
|
||||||
@@ -141,7 +159,7 @@ map global goto d <esc>:lsp-definition<ret> -docstring 'LSP definition'
|
|||||||
map global goto r <esc>:lsp-references<ret> -docstring 'LSP references'
|
map global goto r <esc>:lsp-references<ret> -docstring 'LSP references'
|
||||||
map global goto y <esc>:lsp-type-definition<ret> -docstring 'LSP type definition'
|
map global goto y <esc>:lsp-type-definition<ret> -docstring 'LSP type definition'
|
||||||
|
|
||||||
map global insert <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
|
# map global insert <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
|
||||||
|
|
||||||
map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
||||||
map global object <a-a> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
map global object <a-a> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
||||||
@@ -174,8 +192,6 @@ define-command W %{
|
|||||||
|
|
||||||
# LSP language configs
|
# LSP language configs
|
||||||
# Lua
|
# Lua
|
||||||
#
|
|
||||||
#
|
|
||||||
hook global BufSetOption filetype=lua %{
|
hook global BufSetOption filetype=lua %{
|
||||||
set-option buffer lsp_servers %exp{
|
set-option buffer lsp_servers %exp{
|
||||||
# Minimal setup for luals (Lua doesn't really work with LSP, I've tried)
|
# Minimal setup for luals (Lua doesn't really work with LSP, I've tried)
|
||||||
@@ -235,6 +251,37 @@ hook global BufSetOption filetype=typst %{
|
|||||||
[tinymist.settings]
|
[tinymist.settings]
|
||||||
exportPdf = "onType"
|
exportPdf = "onType"
|
||||||
outputPath = "$root/target/$dir/$name"
|
outputPath = "$root/target/$dir/$name"
|
||||||
|
[harper]
|
||||||
|
filetypes = ["typst"]
|
||||||
|
root_globs = ["*.typst"]
|
||||||
|
command = "harper-ls"
|
||||||
|
args = ["--stdio"]
|
||||||
|
settings_section = "_"
|
||||||
|
[harper.settings._.harper-ls]
|
||||||
|
#isolateEnglish = true # Currently very buggy
|
||||||
|
dialect = "British"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Markdown
|
||||||
|
hook global BufSetOption filetype=markdown %{
|
||||||
|
set-option buffer lsp_servers %exp{
|
||||||
|
[zk_lsp]
|
||||||
|
filetypes = ["markdown"]
|
||||||
|
root_globs = [".git/", ".zk/", ".kakrc"]
|
||||||
|
command = "zk"
|
||||||
|
args = ["lsp"]
|
||||||
|
[harper]
|
||||||
|
filetypes = ["markdown"]
|
||||||
|
root_globs = [".git/", ".zk/", ".kakrc"]
|
||||||
|
command = "harper-ls"
|
||||||
|
args = ["--stdio"]
|
||||||
|
settings_section = "_"
|
||||||
|
[harper.settings._.harper-ls]
|
||||||
|
#isolateEnglish = true # Currently very buggy
|
||||||
|
dialect = "British"
|
||||||
|
[harper.settings._.harper-ls.markdown]
|
||||||
|
IgnoreLinkTitle = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
ripgrep
|
ripgrep
|
||||||
fd
|
fd
|
||||||
kakoune-lsp
|
kakoune-lsp
|
||||||
|
harper
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.kakoune = {
|
programs.kakoune = {
|
||||||
@@ -16,10 +17,10 @@
|
|||||||
|
|
||||||
extraConfig = lib.concatStringsSep "\n" [
|
extraConfig = lib.concatStringsSep "\n" [
|
||||||
"# Venomade's kakrc - my quest for a faster editor"
|
"# Venomade's kakrc - my quest for a faster editor"
|
||||||
|
"declare-option str shellpath \"${config.shellpath}\""
|
||||||
(builtins.readFile ./colemak.kak)
|
(builtins.readFile ./colemak.kak)
|
||||||
(builtins.readFile ./config.kak)
|
(builtins.readFile ./config.kak)
|
||||||
(builtins.readFile ./plugins.kak)
|
(builtins.readFile ./plugins.kak)
|
||||||
"map global window-mode t ':kitty-terminal-window ${config.shellpath}<ret>' -docstring 'create terminal window'"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = import ./plugins.nix { inherit pkgs lib; };
|
plugins = import ./plugins.nix { inherit pkgs lib; };
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ harpoon-add-bindings
|
|||||||
|
|
||||||
# focus:
|
# focus:
|
||||||
# location: https://github.com/caksoylar/kakoune-focus
|
# location: https://github.com/caksoylar/kakoune-focus
|
||||||
map global user s ':focus-toggle<ret>' -docstring "toggle selections focus"
|
map global select-mode s ':focus-toggle<ret>' -docstring "selections focus"
|
||||||
define-command focus-live-enable %{
|
define-command focus-live-enable %{
|
||||||
focus-selections
|
focus-selections
|
||||||
hook -group focus window NormalIdle .* %{ focus-extend }
|
hook -group focus window NormalIdle .* %{ focus-extend }
|
||||||
@@ -35,3 +35,15 @@ define-command focus-live-disable %{
|
|||||||
# location: https://github.com/andreyorst/fzf.kak
|
# location: https://github.com/andreyorst/fzf.kak
|
||||||
require-module fzf
|
require-module fzf
|
||||||
# map global file-mode f ':fzf-mode<ret>' -docstring 'fzf'
|
# map global file-mode f ':fzf-mode<ret>' -docstring 'fzf'
|
||||||
|
|
||||||
|
# render-markdown:
|
||||||
|
# location: https://github.com/kmafeni04/render-markdown.kak
|
||||||
|
hook global WinSetOption filetype=markdown %{
|
||||||
|
map buffer user t ':render-markdown-toggle<ret>' -docstring 'toggle rendering'
|
||||||
|
}
|
||||||
|
declare-option str render_markdown_heading_1 "{blue+fb}"
|
||||||
|
declare-option str render_markdown_heading_2 "{green+fb}"
|
||||||
|
declare-option str render_markdown_heading_3 "{yellow+fb}"
|
||||||
|
declare-option str render_markdown_heading_4 "{cyan+fb}"
|
||||||
|
declare-option str render_markdown_heading_5 "{magenta+fb}"
|
||||||
|
declare-option str render_markdown_heading_6 "{red+fb}"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
[
|
[
|
||||||
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
@@ -76,4 +76,15 @@
|
|||||||
sha256 = "sha256-3aj39UW5wsDpjpDJm7HDFkCGjx6+VHrBTkEC0sjyKkI=";
|
sha256 = "sha256-3aj39UW5wsDpjpDJm7HDFkCGjx6+VHrBTkEC0sjyKkI=";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "render-markdown";
|
||||||
|
version = "master";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "kmafeni04";
|
||||||
|
repo = "render-markdown.kak";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-6a+pIO9viXU7KCFG8rkzwvUNak1Rqm3Jty1FxUffXJo=";
|
||||||
|
};
|
||||||
|
})
|
||||||
]
|
]
|
||||||
@@ -0,0 +1,215 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
gui = {
|
||||||
|
border = "single";
|
||||||
|
};
|
||||||
|
|
||||||
|
keybinding = {
|
||||||
|
universal = {
|
||||||
|
quit = "q";
|
||||||
|
quit-alt1 = "<c-c>";
|
||||||
|
suspendApp = "<c-z>";
|
||||||
|
return = "<esc>";
|
||||||
|
quitWithoutChangingDirectory = "Q";
|
||||||
|
togglePanel = "<tab>";
|
||||||
|
prevItem = "<up>";
|
||||||
|
nextItem = "<down>";
|
||||||
|
prevItem-alt = "e";
|
||||||
|
nextItem-alt = "n";
|
||||||
|
prevPage = ",";
|
||||||
|
nextPage = ".";
|
||||||
|
scrollLeft = "H";
|
||||||
|
scrollRight = "I";
|
||||||
|
gotoTop = "<";
|
||||||
|
gotoBottom = ">";
|
||||||
|
gotoTop-alt = "<home>";
|
||||||
|
gotoBottom-alt = "<end>";
|
||||||
|
toggleRangeSelect = "v";
|
||||||
|
rangeSelectDown = "<s-down>";
|
||||||
|
rangeSelectUp = "<s-up>";
|
||||||
|
prevBlock = "<left>";
|
||||||
|
nextBlock = "<right>";
|
||||||
|
prevBlock-alt = "h";
|
||||||
|
nextBlock-alt = "i";
|
||||||
|
nextBlock-alt2 = "<tab>";
|
||||||
|
prevBlock-alt2 = "<backtab>";
|
||||||
|
jumpToBlock = [
|
||||||
|
"1"
|
||||||
|
"2"
|
||||||
|
"3"
|
||||||
|
"4"
|
||||||
|
"5"
|
||||||
|
];
|
||||||
|
focusMainView = "0";
|
||||||
|
nextMatch = "k";
|
||||||
|
prevMatch = "K";
|
||||||
|
startSearch = "/";
|
||||||
|
optionMenu = "<disabled>";
|
||||||
|
optionMenu-alt1 = "?";
|
||||||
|
select = "<space>";
|
||||||
|
goInto = "<enter>";
|
||||||
|
confirm = "<enter>";
|
||||||
|
confirmMenu = "<enter>";
|
||||||
|
confirmSuggestion = "<enter>";
|
||||||
|
confirmInEditor = "<a-enter>";
|
||||||
|
confirmInEditor-alt = "<c-s>";
|
||||||
|
remove = "d";
|
||||||
|
new = "n";
|
||||||
|
edit = "j";
|
||||||
|
openFile = "o";
|
||||||
|
scrollUpMain = "<pgup>";
|
||||||
|
scrollDownMain = "<pgdown>";
|
||||||
|
scrollUpMain-alt1 = "E";
|
||||||
|
scrollDownMain-alt1 = "N";
|
||||||
|
scrollUpMain-alt2 = "<c-u>";
|
||||||
|
scrollDownMain-alt2 = "<c-d>";
|
||||||
|
executeShellCommand = ":";
|
||||||
|
createRebaseOptionsMenu = "m";
|
||||||
|
|
||||||
|
# 'Files' appended for legacy reasons
|
||||||
|
pushFiles = "P";
|
||||||
|
|
||||||
|
# 'Files' appended for legacy reasons
|
||||||
|
pullFiles = "p";
|
||||||
|
refresh = "R";
|
||||||
|
createPatchOptionsMenu = "<c-p>";
|
||||||
|
nextTab = "]";
|
||||||
|
prevTab = "[";
|
||||||
|
nextScreenMode = "+";
|
||||||
|
prevScreenMode = "_";
|
||||||
|
undo = "z";
|
||||||
|
redo = "Z";
|
||||||
|
filteringMenu = "<c-s>";
|
||||||
|
diffingMenu = "W";
|
||||||
|
diffingMenu-alt = "<c-j>";
|
||||||
|
copyToClipboard = "<c-o>";
|
||||||
|
openRecentRepos = "<c-r>";
|
||||||
|
submitEditorText = "<enter>";
|
||||||
|
extrasMenu = "@";
|
||||||
|
toggleWhitespaceInDiffView = "<c-w>";
|
||||||
|
increaseContextInDiffView = "}";
|
||||||
|
decreaseContextInDiffView = "{";
|
||||||
|
increaseRenameSimilarityThreshold = ")";
|
||||||
|
decreaseRenameSimilarityThreshold = "(";
|
||||||
|
openDiffTool = "<c-t>";
|
||||||
|
newWorktree = "w";
|
||||||
|
};
|
||||||
|
|
||||||
|
cycleDiffRenderers = "|";
|
||||||
|
|
||||||
|
status = {
|
||||||
|
checkForUpdate = "u";
|
||||||
|
recentRepos = "<enter>";
|
||||||
|
allBranchesLogGraph = "a";
|
||||||
|
};
|
||||||
|
|
||||||
|
files = {
|
||||||
|
commitChanges = "c";
|
||||||
|
commitChangesWithoutHook = "w";
|
||||||
|
amendLastCommit = "A";
|
||||||
|
commitChangesWithEditor = "C";
|
||||||
|
findBaseCommitForFixup = "<c-f>";
|
||||||
|
confirmDiscard = "x";
|
||||||
|
ignoreFile = "l";
|
||||||
|
refreshFiles = "r";
|
||||||
|
stashAllChanges = "s";
|
||||||
|
viewStashOptions = "S";
|
||||||
|
toggleStagedAll = "a";
|
||||||
|
viewResetOptions = "D";
|
||||||
|
fetch = "f";
|
||||||
|
toggleTreeView = "`";
|
||||||
|
openMergeOptions = "M";
|
||||||
|
openStatusFilter = "<c-b>";
|
||||||
|
copyFileInfoToClipboard = "y";
|
||||||
|
collapseAll = "-";
|
||||||
|
expandAll = "=";
|
||||||
|
};
|
||||||
|
|
||||||
|
branches = {
|
||||||
|
createPullRequest = "o";
|
||||||
|
viewPullRequestOptions = "O";
|
||||||
|
copyPullRequestURL = "<c-y>";
|
||||||
|
checkoutBranchByName = "c";
|
||||||
|
forceCheckoutBranch = "F";
|
||||||
|
checkoutPreviousBranch = "-";
|
||||||
|
rebaseBranch = "r";
|
||||||
|
renameBranch = "R";
|
||||||
|
mergeIntoCurrentBranch = "M";
|
||||||
|
moveCommitsToNewBranch = "K";
|
||||||
|
viewGitFlowOptions = "l";
|
||||||
|
fastForward = "f";
|
||||||
|
createTag = "T";
|
||||||
|
pushTag = "P";
|
||||||
|
setUpstream = "u";
|
||||||
|
fetchRemote = "f";
|
||||||
|
addForkRemote = "F";
|
||||||
|
sortOrder = "s";
|
||||||
|
};
|
||||||
|
|
||||||
|
commits = {
|
||||||
|
squashDown = "s";
|
||||||
|
renameCommit = "r";
|
||||||
|
renameCommitWithEditor = "R";
|
||||||
|
viewResetOptions = "g";
|
||||||
|
markCommitAsFixup = "f";
|
||||||
|
setFixupMessage = "c";
|
||||||
|
createFixupCommit = "F";
|
||||||
|
squashAboveCommits = "S";
|
||||||
|
moveDownCommit = "<c-n>";
|
||||||
|
moveUpCommit = "<c-e>";
|
||||||
|
amendToCommit = "A";
|
||||||
|
resetCommitAuthor = "a";
|
||||||
|
pickCommit = "p";
|
||||||
|
revertCommit = "t";
|
||||||
|
cherryPickCopy = "C";
|
||||||
|
pasteCommits = "V";
|
||||||
|
markCommitAsBaseForRebase = "B";
|
||||||
|
tagCommit = "T";
|
||||||
|
checkoutCommit = "<space>";
|
||||||
|
resetCherryPick = "<ctrl+shift+r>";
|
||||||
|
copyCommitAttributeToClipboard = "y";
|
||||||
|
openLogMenu = "<c-l>";
|
||||||
|
openInBrowser = "o";
|
||||||
|
viewBisectOptions = "b";
|
||||||
|
startInteractiveRebase = "l";
|
||||||
|
selectCommitsOfCurrentBranch = "*";
|
||||||
|
};
|
||||||
|
|
||||||
|
amendAttribute = {
|
||||||
|
resetAuthor = "a";
|
||||||
|
setAuthor = "A";
|
||||||
|
addCoAuthor = "c";
|
||||||
|
};
|
||||||
|
|
||||||
|
stash = {
|
||||||
|
popStash = "g";
|
||||||
|
renameStash = "r";
|
||||||
|
};
|
||||||
|
|
||||||
|
commitFiles = {
|
||||||
|
checkoutCommitFile = "c";
|
||||||
|
};
|
||||||
|
|
||||||
|
main = {
|
||||||
|
toggleSelectHunk = "a";
|
||||||
|
pickBothHunks = "b";
|
||||||
|
editSelectHunk = "J";
|
||||||
|
};
|
||||||
|
|
||||||
|
submodules = {
|
||||||
|
init = "l";
|
||||||
|
update = "u";
|
||||||
|
bulkMenu = "b";
|
||||||
|
};
|
||||||
|
|
||||||
|
commitMessage = {
|
||||||
|
commitMenu = "<c-o>";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
clang
|
clang
|
||||||
clang-tools
|
clang-tools
|
||||||
bear
|
bear
|
||||||
|
gdb
|
||||||
# valgrind # BROKEN on darwin
|
# valgrind # BROKEN on darwin
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nix.nix
|
./c.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./lua.nix
|
./lua.nix
|
||||||
./c.nix
|
./markdown.nix
|
||||||
|
./nix.nix
|
||||||
./rust.nix
|
./rust.nix
|
||||||
./typst.nix
|
./typst.nix
|
||||||
./markdown.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
+22
-1
@@ -8,7 +8,28 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
programs.bash.enable = true;
|
# Packages without home-manager configs
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
pv
|
||||||
|
mtr
|
||||||
|
shellcheck
|
||||||
|
wiki-tui
|
||||||
|
ddgr
|
||||||
|
];
|
||||||
|
|
||||||
|
home.shellAliases = {
|
||||||
|
# Aliases to replace packages
|
||||||
|
tree = "eza --tree";
|
||||||
|
|
||||||
|
# Aliases to fix issues
|
||||||
|
mtr = "TERM=xterm-256color sudo mtr";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Packages with extra configs
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
bashrcExtra = "source ~/.profile";
|
||||||
|
};
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs.bat-extras; [ batdiff batman ];
|
extraPackages = with pkgs.bat-extras; [ batdiff batman ];
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -60,6 +61,49 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
flavors.base16 = pkgs.fetchFromGitHub {
|
||||||
|
owner = "matt-dong-123";
|
||||||
|
repo = "base16.yazi";
|
||||||
|
rev = "master";
|
||||||
|
hash = "sha256-1WhixzYE1zsXg9o6T/YKWJgzfRZnzsmpiUIfi+j4H9Q=";
|
||||||
|
};
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
flavor = {
|
||||||
|
dark = "base16";
|
||||||
|
light = "base16";
|
||||||
|
};
|
||||||
|
|
||||||
|
indicator = {
|
||||||
|
padding = { open = "█"; close = "█"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs = {
|
||||||
|
sep_inner = { open = ""; close = ""; };
|
||||||
|
sep_outer = { open = ""; close = ""; };
|
||||||
|
};
|
||||||
|
|
||||||
|
status = {
|
||||||
|
sep_left = { open = ""; close = ""; };
|
||||||
|
sep_right = { open = ""; close = ""; };
|
||||||
|
};
|
||||||
|
|
||||||
|
icon = {
|
||||||
|
globs = [ ];
|
||||||
|
dirs = [ ];
|
||||||
|
files = [ ];
|
||||||
|
exts = [ ];
|
||||||
|
conds = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
cmp = {
|
||||||
|
icon_file = "";
|
||||||
|
icon_folder = "";
|
||||||
|
icon_command = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
mgr = {
|
mgr = {
|
||||||
sort_by = "mtime";
|
sort_by = "mtime";
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zk = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
notebook = {
|
||||||
|
dir = "~/Documents/Notes";
|
||||||
|
};
|
||||||
|
note = {
|
||||||
|
filename = "{{slug title}}";
|
||||||
|
template = "note.md";
|
||||||
|
};
|
||||||
|
extra.author = "Venomade";
|
||||||
|
format.markdown = {
|
||||||
|
link-format = "wiki";
|
||||||
|
hashtags = true;
|
||||||
|
colon-tags = false;
|
||||||
|
multiword-tags = true;
|
||||||
|
};
|
||||||
|
tool = {
|
||||||
|
editor = "kak";
|
||||||
|
shell = config.shellpath;
|
||||||
|
fzf-preview = "bat -p --color always {-1}";
|
||||||
|
};
|
||||||
|
lsp.diagnostics = {
|
||||||
|
wiki-title = "hint";
|
||||||
|
dead-link = "error";
|
||||||
|
missing-backlink = {
|
||||||
|
level = "warning";
|
||||||
|
position = "bottom";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."zk/templates/note.md".text = ''
|
||||||
|
---
|
||||||
|
title: {{title}}
|
||||||
|
tags: []
|
||||||
|
---
|
||||||
|
|
||||||
|
{{content}}
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -15,7 +15,8 @@
|
|||||||
outputs =
|
outputs =
|
||||||
{ nixpkgs, home-manager, nix-colors, ... }:
|
{ nixpkgs, home-manager, nix-colors, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
# system = "x86_64-linux";
|
||||||
|
system = "aarch64-darwin";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,20 +1,25 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.username = "venomade";
|
home.username = "venomade";
|
||||||
home.homeDirectory =
|
home.homeDirectory =
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin then "/Users/venomade" else "/home/venomade";
|
if pkgs.stdenv.hostPlatform.isDarwin then "/Users/venomade" else "/home/venomade";
|
||||||
|
|
||||||
targets.genericLinux.enable = true;
|
targets.genericLinux = lib.mkIf (pkgs.stdenv.hostPlatform.isLinux) {
|
||||||
targets.genericLinux.gpu.enable = true;
|
enable = true;
|
||||||
|
gpu.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
imports = [
|
imports = map (dir: ./config/${dir}/config.nix) [
|
||||||
./config/programming/config.nix
|
"colors"
|
||||||
./config/colors/config.nix
|
"kakoune"
|
||||||
./config/shell/config.nix
|
"kitty"
|
||||||
./config/kakoune/config.nix
|
"programming"
|
||||||
./config/kitty/config.nix
|
"shell"
|
||||||
./config/yazi/config.nix
|
"yazi"
|
||||||
|
"zk"
|
||||||
|
"lazygit"
|
||||||
|
"aerc"
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "26.05";
|
home.stateVersion = "26.05";
|
||||||
|
|||||||
Reference in new issue
Block a user