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
@@ -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 n ':buffer-next<ret>' -docstring 'next buffer'
|
||||
map global buffer-mode p ':buffer-previous<ret>' -docstring 'previous buffer'
|
||||
map global buffer-mode b ':buffer ' -docstring 'buffer switch'
|
||||
|
||||
# Comment Line
|
||||
map global normal '#' ':comment-line<ret>'
|
||||
|
||||
# File Keybinds
|
||||
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 c ':e ~/.config/kak/kakrc<ret>' -docstring 'open config'
|
||||
map global file-mode t ':e ~/Documents/Notes/TODO.md<ret>' -docstring 'open todo'
|
||||
map global file-mode a ':e ~/.config/almoxarife.yaml' -docstring 'open alconf'
|
||||
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 g ':grep -i ' -docstring 'grep files'
|
||||
|
||||
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
|
||||
map global normal '/' '/(?Si)'
|
||||
@@ -107,6 +111,7 @@ hook global InsertCompletionShow .* %{
|
||||
map global normal <tab> '>'
|
||||
map global normal <s-tab> '<'
|
||||
|
||||
# Go to start of line intelligently based on indentation
|
||||
define-command smart-gh -docstring 'smart goto line start' \
|
||||
%{
|
||||
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
|
||||
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 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
|
||||
@@ -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 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> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
||||
@@ -174,8 +192,6 @@ define-command W %{
|
||||
|
||||
# LSP language configs
|
||||
# Lua
|
||||
#
|
||||
#
|
||||
hook global BufSetOption filetype=lua %{
|
||||
set-option buffer lsp_servers %exp{
|
||||
# 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]
|
||||
exportPdf = "onType"
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user