Compare commits

21 Commits
Author SHA1 Message Date
roodletoof 4b2f5f9429 simpler build
includes test. somehow failing tests are not part of the result??
possibly overwrite the errorformat?
2026-10-15 20:09:26 +02:00
roodletoof 08d0d18b89 support file level structs in zig 2026-10-15 19:19:31 +02:00
roodletoof 26d35c355b add zig ctags regexes 2026-10-15 18:18:45 +02:00
roodletoof 28cd17645b update lazy.lock 2026-10-11 15:52:26 +02:00
roodletoof 887ae4d316 make popup use the same colors 2026-10-09 17:20:13 +02:00
roodletoof dfc4647fe0 odin compiler support vim 2026-10-08 21:01:20 +02:00
roodletoof 1f0e1c47af use standard library in sesh to make directories instead of mkdir program 2026-10-08 20:19:06 +02:00
roodletoof aa35fb57b2 update lazy.lock 2026-10-08 20:00:48 +02:00
Ivar Fatland be650592a3 move screenshot paste into own plugin 2026-10-07 21:21:55 +02:00
Ivar Fatland 769dc51be2 Merge branch 'master' of ssh://git.roodletoof.org:2222/roodletoof/dotfiles 2026-10-07 08:12:53 +02:00
Ivar Fatland b875e5743a Revert "remove copy paste image to md"
This reverts commit e466fd5365.
2026-10-07 08:12:50 +02:00
Ivar Fatland 3922b8d572 update lazy lock 2026-10-05 23:52:28 +02:00
roodletoof 940b7178e1 enable focus_follows_mouse 2026-10-03 20:54:41 +02:00
roodletoof a22f1de097 remove folds from kanata config 2026-10-03 19:00:21 +02:00
roodletoof ef39bf3b00 add running of python program to basedpyright check 2026-10-03 00:17:57 +02:00
roodletoof 6082093b82 Revert "enable cursor trails"
This reverts commit 62803618ba.
2026-09-30 21:29:38 +02:00
roodletoof 21e7aa8c87 Merge branch 'master' of ssh://git.roodletoof.org:2222/roodletoof/dotfiles 2026-09-30 21:29:08 +02:00
roodletoof 62803618ba enable cursor trails 2026-09-30 21:29:05 +02:00
Ivar Fatland 89d36975ad Merge branch 'master' of ssh://git.roodletoof.org:2222/roodletoof/dotfiles 2026-09-30 08:50:26 +02:00
Ivar Fatland e104c33dc5 add alt and command swap for razer keyboard in karabiner elements 2026-09-30 08:50:15 +02:00
roodletoof 14cde96c91 remove current_compiler check.
that check is for the standard implementations, not mine
2026-09-24 19:01:45 +02:00
13 changed files with 133 additions and 41 deletions
+13
View File
@@ -0,0 +1,13 @@
--langdef=zig
--map-zig=.zig
--kinddef-zig=f,function,functions
--kinddef-zig=m,method,methods
--kinddef-zig=t,type,types
--kinddef-zig=v,field,fields
--regex-zig=/^(export +)?(pub +)?(inline +)?fn +([a-zA-Z0-9_]+)/\4/f/{exclusive}
--regex-zig=/^(export +)?(pub +)?[\t ]*const +([a-zA-Z0-9_]+) = (@This\(\)|struct|enum|union)/\3/t/{exclusive}{scope=push}
--regex-zig=/^}///{exclusive}{scope=pop}{placeholder}
--regex-zig=/^[\t ]+(pub +)?(inline +)?fn +([a-zA-Z0-9_]+)/\3/m/{exclusive}{scope=ref}
--regex-zig=/^(export +)?pub +const +([a-zA-Z0-9_]+)(:.*)? = .*/\2/v/{exclusive}
+1 -1
View File
@@ -34,7 +34,7 @@ bindsym $mod+Shift+r reload
# Exit i3 # Exit i3
bindsym $mod+Shift+e exit bindsym $mod+Shift+e exit
focus_follows_mouse no focus_follows_mouse yes
focus_on_window_activation none focus_on_window_activation none
# Move focus # Move focus
+6 -7
View File
@@ -1,10 +1,9 @@
;; vim:foldmethod=marker
(defcfg ;;{{{1 (defcfg
process-unmapped-keys yes process-unmapped-keys yes
) )
(defsrc ;;{{{1 (defsrc
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = bspc grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \ tab q w e r t y u i o p [ ] \
@@ -13,7 +12,7 @@
lctl lmet lalt spc ralt rmet rctl lctl lmet lalt spc ralt rmet rctl
) )
(deflayer default ;;{{{1 (deflayer default
brdn brup bldn blup f5 f6 prev pp next mute vold volu brdn brup bldn blup f5 f6 prev pp next mute vold volu
grv 1 2 3 4 5 6 7 8 9 0 - = bspc grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \ tab q w e r t y u i o p [ ] \
@@ -22,7 +21,7 @@
@mus lmet lalt @shsp @gmng rmet rctl @mus lmet lalt @shsp @gmng rmet rctl
) )
(deflayer gaming ;;{{{1 (deflayer gaming
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
esc 1 2 3 4 5 6 7 8 9 0 - = bspc esc 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \ tab q w e r t y u i o p [ ] \
@@ -31,7 +30,7 @@
lctl lmet lalt spc @dflt rmet rctl lctl lmet lalt spc @dflt rmet rctl
) )
(defalias ;;{{{1 (defalias
cap (tap-hold-press 0 200 esc lctl) cap (tap-hold-press 0 200 esc lctl)
shsp (tap-hold-press 0 200 spc lsft) shsp (tap-hold-press 0 200 spc lsft)
gmng (layer-switch gaming) gmng (layer-switch gaming)
@@ -39,7 +38,7 @@
mus (layer-while-held mouse) mus (layer-while-held mouse)
) )
(deflayermap (mouse) ;;{{{1 (deflayermap (mouse)
h (movemouse-left 10 5) h (movemouse-left 10 5)
j (movemouse-down 10 5) j (movemouse-down 10 5)
k (movemouse-up 10 5) k (movemouse-up 10 5)
@@ -35,24 +35,58 @@
"type": "basic" "type": "basic"
} }
] ]
},
{
"description": "swap alt and cmd",
"manipulators": [
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }],
"type": "basic"
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }],
"type": "basic"
}
]
} }
] ]
}, },
"devices": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 21042,
"vendor_id": 1155
},
"simple_modifications": [
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "non_us_backslash" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 8467,
"vendor_id": 16700
},
"simple_modifications": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 5225,
"vendor_id": 1266
},
"simple_modifications": [
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
}
]
}
],
"name": "KarabinerTS", "name": "KarabinerTS",
"selected": true, "selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" } "virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
@@ -75,6 +75,23 @@
"product_id": 5225, "product_id": 5225,
"vendor_id": 1266 "vendor_id": 1266
}, },
"simple_modifications": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 599,
"vendor_id": 5426
},
"simple_modifications": [ "simple_modifications": [
{ {
"from": { "key_code": "left_option" }, "from": { "key_code": "left_option" },
+1 -6
View File
@@ -7,12 +7,7 @@ let current_compiler = "zig"
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
" a subcommand must be provided for the this compiler (test, build-exe, etc) CompilerSet makeprg=zig\ build\ test\ &&\ zig\ build\ run
if has('patch-7.4.191')
CompilerSet makeprg=zig\ \$*\ \%:S
else
CompilerSet makeprg=zig\ \$*\ \"%\"
endif
" TODO: improve errorformat as needed. " TODO: improve errorformat as needed.
+1
View File
@@ -595,3 +595,4 @@ require'lazy'.setup{ --{{{1
end, end,
}, },
} }
+3 -3
View File
@@ -2,7 +2,7 @@
"git-blame.nvim": { "branch": "main", "commit": "5c536e2d4134d064aa3f41575280bc8a2a0e03d7" }, "git-blame.nvim": { "branch": "main", "commit": "5c536e2d4134d064aa3f41575280bc8a2a0e03d7" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" }, "lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "137bd0feba2c1885545b6934d36f5e5aa6adb486" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "e17625cdc8c2650787467398e02c5d63a2cde966" },
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" }, "mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
"mini.align": { "branch": "main", "commit": "77d7446b9f2452193f13ced9fb73a8b3aa4a4f4d" }, "mini.align": { "branch": "main", "commit": "77d7446b9f2452193f13ced9fb73a8b3aa4a4f4d" },
"moonfly": { "branch": "master", "commit": "2c883835f5b7b380a0a9e80695c420f7efebdfe4" }, "moonfly": { "branch": "master", "commit": "2c883835f5b7b380a0a9e80695c420f7efebdfe4" },
@@ -10,13 +10,13 @@
"nvim-dap-cs": { "branch": "main", "commit": "16e5debe8cb7fb73c8799d20969ee00883586602" }, "nvim-dap-cs": { "branch": "main", "commit": "16e5debe8cb7fb73c8799d20969ee00883586602" },
"nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" }, "nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" },
"nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" }, "nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" },
"nvim-lspconfig": { "branch": "master", "commit": "046b1a797af1effe8e0474b9af9657a3761ec58a" }, "nvim-lspconfig": { "branch": "master", "commit": "c59fc922f718fa055f69f5f3bc888f23211571eb" },
"nvim-surround": { "branch": "main", "commit": "2e93e154de9ff326def6480a4358bfc149d5da2c" }, "nvim-surround": { "branch": "main", "commit": "2e93e154de9ff326def6480a4358bfc149d5da2c" },
"oil.nvim": { "branch": "master", "commit": "b73018b75affd13fa38e2fc94ef753b465f770d7" }, "oil.nvim": { "branch": "master", "commit": "b73018b75affd13fa38e2fc94ef753b465f770d7" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
"roslyn.nvim": { "branch": "main", "commit": "bf1bd4e70bc7068d1b4aebf4ce03cc19a86615be" }, "roslyn.nvim": { "branch": "main", "commit": "bf1bd4e70bc7068d1b4aebf4ce03cc19a86615be" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" }, "telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" },
"tree-sitter-manager.nvim": { "branch": "main", "commit": "c59cb96f62db1c41830c2bb6c32fa72ffd701105" }, "tree-sitter-manager.nvim": { "branch": "main", "commit": "d93782393d7d4b48ddbdbcb0fdff6f8cb8d7043a" },
"vim-indent-object": { "branch": "master", "commit": "8ab36d5ec2a3a60468437a95e142ce994df598c6" } "vim-indent-object": { "branch": "master", "commit": "8ab36d5ec2a3a60468437a95e142ce994df598c6" }
} }
@@ -0,0 +1,27 @@
local function save_clipboard_image()
local is_mac = vim.fn.has("mac")
if not is_mac then
error("only supported for mac")
end
local filename = vim.fn.input("image name: ")
local path = filename .. ".png"
local cmd = "pngpaste " .. vim.fn.shellescape(path)
local res = os.execute(cmd)
if res == 0 then
print("saved image to ".. path)
else
error("failed to save image")
end
local row, _ = unpack(vim.api.nvim_win_get_cursor(0))
vim.api.nvim_buf_set_lines(0, row, row, false, {
"!["..filename.."]("..path..")"
})
end
vim.keymap.set(
'n',
',q',
save_clipboard_image,
{}
)
+1 -8
View File
@@ -55,7 +55,6 @@ type Config map[string][]Window
const ( const (
tmux = "tmux" tmux = "tmux"
mkdir = "mkdir"
) )
func main() { func main() {
@@ -64,11 +63,6 @@ func main() {
panic(err) panic(err)
} }
_, err = exec.LookPath(mkdir)
if err != nil {
panic(err)
}
homeDir, err := os.UserHomeDir() homeDir, err := os.UserHomeDir()
if err != nil { if err != nil {
panic(err) panic(err)
@@ -161,8 +155,7 @@ func main() {
return return
} }
for _, window := range sesh { for _, window := range sesh {
// TODO: use go stdandard library instead _ = os.MkdirAll(window.ExpandedPath(), 0775);
exec.Command(mkdir, "-p", window.ExpandedPath()).Run()
} }
for _, window := range sesh { for _, window := range sesh {
NewWindowInSession(seshName, window) NewWindowInSession(seshName, window)
+2
View File
@@ -56,3 +56,5 @@ set -g message-style "fg=${gray_medium},bg=default"
set -g mode-style "fg=${gray_dark},bg=${blue_muted}" set -g mode-style "fg=${gray_dark},bg=${blue_muted}"
set -g pane-border-style "fg=${gray_dark}" set -g pane-border-style "fg=${gray_dark}"
set -g pane-active-border-style "fg=${gray_medium}" set -g pane-active-border-style "fg=${gray_medium}"
set -g popup-style "bg=default,fg=default"
set -g popup-border-style "bg=default,fg=default"
+1 -1
View File
@@ -2,7 +2,7 @@ let current_compiler = "basedpyright"
let s:cpo_save = &cpo let s:cpo_save = &cpo
set cpo&vim set cpo&vim
CompilerSet makeprg=basedpyright CompilerSet makeprg=basedpyright\ &&\ python3\ %
CompilerSet errorformat= CompilerSet errorformat=
\%E%f:%l:%c\ -\ error:\ %m, \%E%f:%l:%c\ -\ error:\ %m,
\%W%f:%l:%c\ -\ warning:\ %m, \%W%f:%l:%c\ -\ warning:\ %m,
+11
View File
@@ -0,0 +1,11 @@
let current_compiler = "odin"
let s:save_cpo = &cpo
set cpo&vim
CompilerSet makeprg=odin\ build\ .
CompilerSet errorformat=
\%f(%l:%c)\ Syntax\ %trror:\ %m
let &cpo = s:save_cpo
unlet s:save_cpo