Compare commits
18
Commits
89d36975ad
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b2f5f9429 | ||
|
|
08d0d18b89 | ||
|
|
26d35c355b | ||
|
|
28cd17645b | ||
|
|
887ae4d316 | ||
|
|
dfc4647fe0 | ||
|
|
1f0e1c47af | ||
|
|
aa35fb57b2 | ||
|
|
be650592a3 | ||
|
|
769dc51be2 | ||
|
|
b875e5743a | ||
|
|
3922b8d572 | ||
|
|
940b7178e1 | ||
|
|
a22f1de097 | ||
|
|
ef39bf3b00 | ||
|
|
6082093b82 | ||
|
|
21e7aa8c87 | ||
|
|
62803618ba |
@@ -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}
|
||||
@@ -34,7 +34,7 @@ bindsym $mod+Shift+r reload
|
||||
# Exit i3
|
||||
bindsym $mod+Shift+e exit
|
||||
|
||||
focus_follows_mouse no
|
||||
focus_follows_mouse yes
|
||||
focus_on_window_activation none
|
||||
|
||||
# Move focus
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
;; vim:foldmethod=marker
|
||||
|
||||
(defcfg ;;{{{1
|
||||
(defcfg
|
||||
process-unmapped-keys yes
|
||||
)
|
||||
|
||||
(defsrc ;;{{{1
|
||||
(defsrc
|
||||
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@@ -13,7 +12,7 @@
|
||||
lctl lmet lalt spc ralt rmet rctl
|
||||
)
|
||||
|
||||
(deflayer default ;;{{{1
|
||||
(deflayer default
|
||||
brdn brup bldn blup f5 f6 prev pp next mute vold volu
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@@ -22,7 +21,7 @@
|
||||
@mus lmet lalt @shsp @gmng rmet rctl
|
||||
)
|
||||
|
||||
(deflayer gaming ;;{{{1
|
||||
(deflayer gaming
|
||||
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
|
||||
esc 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@@ -31,7 +30,7 @@
|
||||
lctl lmet lalt spc @dflt rmet rctl
|
||||
)
|
||||
|
||||
(defalias ;;{{{1
|
||||
(defalias
|
||||
cap (tap-hold-press 0 200 esc lctl)
|
||||
shsp (tap-hold-press 0 200 spc lsft)
|
||||
gmng (layer-switch gaming)
|
||||
@@ -39,7 +38,7 @@
|
||||
mus (layer-while-held mouse)
|
||||
)
|
||||
|
||||
(deflayermap (mouse) ;;{{{1
|
||||
(deflayermap (mouse)
|
||||
h (movemouse-left 10 5)
|
||||
j (movemouse-down 10 5)
|
||||
k (movemouse-up 10 5)
|
||||
|
||||
@@ -7,12 +7,7 @@ let current_compiler = "zig"
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" a subcommand must be provided for the this compiler (test, build-exe, etc)
|
||||
if has('patch-7.4.191')
|
||||
CompilerSet makeprg=zig\ \$*\ \%:S
|
||||
else
|
||||
CompilerSet makeprg=zig\ \$*\ \"%\"
|
||||
endif
|
||||
CompilerSet makeprg=zig\ build\ test\ &&\ zig\ build\ run
|
||||
|
||||
" TODO: improve errorformat as needed.
|
||||
|
||||
|
||||
@@ -595,3 +595,4 @@ require'lazy'.setup{ --{{{1
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"git-blame.nvim": { "branch": "main", "commit": "5c536e2d4134d064aa3f41575280bc8a2a0e03d7" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
"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" },
|
||||
"mini.align": { "branch": "main", "commit": "77d7446b9f2452193f13ced9fb73a8b3aa4a4f4d" },
|
||||
"moonfly": { "branch": "master", "commit": "2c883835f5b7b380a0a9e80695c420f7efebdfe4" },
|
||||
@@ -10,13 +10,13 @@
|
||||
"nvim-dap-cs": { "branch": "main", "commit": "16e5debe8cb7fb73c8799d20969ee00883586602" },
|
||||
"nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" },
|
||||
"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" },
|
||||
"oil.nvim": { "branch": "master", "commit": "b73018b75affd13fa38e2fc94ef753b465f770d7" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||
"roslyn.nvim": { "branch": "main", "commit": "bf1bd4e70bc7068d1b4aebf4ce03cc19a86615be" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"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" }
|
||||
}
|
||||
|
||||
@@ -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, {
|
||||
""
|
||||
})
|
||||
end
|
||||
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
',q',
|
||||
save_clipboard_image,
|
||||
{}
|
||||
)
|
||||
+1
-8
@@ -55,7 +55,6 @@ type Config map[string][]Window
|
||||
|
||||
const (
|
||||
tmux = "tmux"
|
||||
mkdir = "mkdir"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -64,11 +63,6 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = exec.LookPath(mkdir)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
homeDir, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@@ -161,8 +155,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
for _, window := range sesh {
|
||||
// TODO: use go stdandard library instead
|
||||
exec.Command(mkdir, "-p", window.ExpandedPath()).Run()
|
||||
_ = os.MkdirAll(window.ExpandedPath(), 0775);
|
||||
}
|
||||
for _, window := range sesh {
|
||||
NewWindowInSession(seshName, window)
|
||||
|
||||
@@ -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 pane-border-style "fg=${gray_dark}"
|
||||
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"
|
||||
|
||||
@@ -2,7 +2,7 @@ let current_compiler = "basedpyright"
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
CompilerSet makeprg=basedpyright
|
||||
CompilerSet makeprg=basedpyright\ &&\ python3\ %
|
||||
CompilerSet errorformat=
|
||||
\%E%f:%l:%c\ -\ error:\ %m,
|
||||
\%W%f:%l:%c\ -\ warning:\ %m,
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user