Compare commits
8
Commits
fa960f6886
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9702d7b598 | ||
|
|
20a0d5785d | ||
|
|
727bd2dbae | ||
|
|
4a016cca6a | ||
|
|
5dc7130694 | ||
|
|
8b02424a6d | ||
|
|
069bcde580 | ||
|
|
539ef3b299 |
+3
-1
@@ -67,7 +67,8 @@ n ()
|
|||||||
|
|
||||||
# The command builtin allows one to alias nnn to n, if desired, without
|
# The command builtin allows one to alias nnn to n, if desired, without
|
||||||
# making an infinitely recursive alias
|
# making an infinitely recursive alias
|
||||||
command nnn -C -a "$@"
|
# command nnn -C -a "$@"
|
||||||
|
NNN_COLORS=44444444 command nnn -D -a "$@"
|
||||||
|
|
||||||
[ ! -f "$NNN_TMPFILE" ] || {
|
[ ! -f "$NNN_TMPFILE" ] || {
|
||||||
. "$NNN_TMPFILE"
|
. "$NNN_TMPFILE"
|
||||||
@@ -201,3 +202,4 @@ export MANPAGER='nvim +Man!'
|
|||||||
|
|
||||||
# Created by `pipx` on 2026-04-22 15:46:28
|
# Created by `pipx` on 2026-04-22 15:46:28
|
||||||
export PATH="$PATH:/Users/matt/.local/bin"
|
export PATH="$PATH:/Users/matt/.local/bin"
|
||||||
|
export PATH="/usr/local/go/bin:$PATH"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
keybind = global:ctrl+a=toggle_quick_terminal
|
keybind = global:ctrl+a=toggle_quick_terminal
|
||||||
quick-terminal-size = 100%
|
quick-terminal-size = 100%
|
||||||
|
macos-secure-input-indication = false
|
||||||
|
|
||||||
theme = dark:default-dark,light:default-light
|
theme = dark:default-dark,light:default-light
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ k9s:
|
|||||||
reactive: false
|
reactive: false
|
||||||
noIcons: false
|
noIcons: false
|
||||||
defaultsToFullScreen: false
|
defaultsToFullScreen: false
|
||||||
skin: monodark
|
skin: default-dark
|
||||||
skipLatestRevCheck: false
|
skipLatestRevCheck: false
|
||||||
disablePodCounting: false
|
disablePodCounting: false
|
||||||
shellPod:
|
shellPod:
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
appearance=$(defaults read -g AppleInterfaceStyle 2>/dev/null)
|
appearance=$(defaults read -g AppleInterfaceStyle 2>/dev/null)
|
||||||
|
|
||||||
if [[ "$appearance" = "Dark" ]]; then
|
if [[ "$appearance" = "Dark" ]]; then
|
||||||
skin="monodark"
|
skin="default-dark"
|
||||||
else
|
else
|
||||||
skin="monolight"
|
skin="default-light"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
config_file="$HOME/doc/dev/dotfiles/k9s/.config/k9s/config.yaml"
|
config_file="$HOME/doc/dev/dotfiles/k9s/.config/k9s/config.yaml"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
# regardless of terminal theme handling.
|
# regardless of terminal theme handling.
|
||||||
|
|
||||||
foreground: &foreground "#d8d8d8"
|
foreground: &foreground "#d8d8d8"
|
||||||
background: &background "#111111"
|
background: &background "#000000"
|
||||||
black: &black "#111111"
|
black: &black "#000000"
|
||||||
blue: &blue "#7cafc2"
|
blue: &blue "#7cafc2"
|
||||||
green: &green "#a1b56c"
|
green: &green "#a1b56c"
|
||||||
grey: &grey "#585858"
|
grey: &grey "#585858"
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ map cmd+ctrl+l no_op
|
|||||||
|
|
||||||
# macOS icon: kitty.app.icns links to the system Terminal icon.
|
# macOS icon: kitty.app.icns links to the system Terminal icon.
|
||||||
# Kitty applies this automatically at startup.
|
# Kitty applies this automatically at startup.
|
||||||
|
allow_remote_control socket-only
|
||||||
|
listen_on unix:${TMPDIR}/kitty
|
||||||
|
|||||||
@@ -3,12 +3,15 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||||||
callback = function(ev)
|
callback = function(ev)
|
||||||
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
|
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
|
||||||
if client:supports_method('textDocument/completion') then
|
if client:supports_method('textDocument/completion') then
|
||||||
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
|
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = false })
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.filetype.add({
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
jenkinsfile = "groovy",
|
||||||
|
},
|
||||||
pattern = {
|
pattern = {
|
||||||
["compose.*%.ya?ml"] = "yaml.docker-compose",
|
["compose.*%.ya?ml"] = "yaml.docker-compose",
|
||||||
["docker%-compose.*%.ya?ml"] = "yaml.docker-compose",
|
["docker%-compose.*%.ya?ml"] = "yaml.docker-compose",
|
||||||
@@ -120,6 +123,15 @@ vim.lsp.config('yamlls', {
|
|||||||
})
|
})
|
||||||
vim.lsp.enable('yamlls')
|
vim.lsp.enable('yamlls')
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
|
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||||
|
callback = function(ev)
|
||||||
|
vim.keymap.set('n', '<space>f', function()
|
||||||
|
vim.lsp.buf.format { async = true }
|
||||||
|
end, opts)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- DAP Setup
|
-- DAP Setup
|
||||||
-- require('dap-python').setup('~/venv/bin/python')
|
-- require('dap-python').setup('~/venv/bin/python')
|
||||||
-- require('dap-go').setup()
|
-- require('dap-go').setup()
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ vim.api.nvim_set_keymap('n', '<C-f>', ':NnnPicker %:p:h<CR>', { noremap = true }
|
|||||||
vim.api.nvim_set_keymap('t', '<C-f>', '<cmd>NnnPicker %:p:h<CR>', { noremap = true })
|
vim.api.nvim_set_keymap('t', '<C-f>', '<cmd>NnnPicker %:p:h<CR>', { noremap = true })
|
||||||
|
|
||||||
-- nvim-tree
|
-- nvim-tree
|
||||||
vim.api.nvim_set_keymap('n', '<C-b>', '<cmd>NvimTreeToggle <CR>', { noremap = true })
|
-- vim.api.nvim_set_keymap('n', '<C-b>', '<cmd>NvimTreeToggle <CR>', { noremap = true })
|
||||||
vim.api.nvim_set_keymap('n', '<leader>b', ':NvimTreeResize ', { noremap = true })
|
-- vim.api.nvim_set_keymap('n', '<leader>b', ':NvimTreeResize ', { noremap = true })
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
vim.keymap.set('n', '<C-l>', builtin.find_files, {})
|
vim.keymap.set('n', '<C-l>', builtin.find_files, {})
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ require('nnn').setup({
|
|||||||
picker = {
|
picker = {
|
||||||
cmd = "nnn -C",
|
cmd = "nnn -C",
|
||||||
-- Fill the editor even when opening from an existing file or split.
|
-- Fill the editor even when opening from an existing file or split.
|
||||||
style = { width = 1, height = 1, xoffset = 0, yoffset = 0, border = "none" },
|
style = { width = 1, height = 1, xoffset = 0, yoffset = 0, border = "single" },
|
||||||
fullscreen = true,
|
fullscreen = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -186,7 +186,8 @@ require('telescope').setup({
|
|||||||
width = function(_, columns) return columns end,
|
width = function(_, columns) return columns end,
|
||||||
height = function(_, _, lines) return lines end,
|
height = function(_, _, lines) return lines end,
|
||||||
},
|
},
|
||||||
border = false,
|
border = true,
|
||||||
|
borderchars = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
"%.git/",
|
"%.git/",
|
||||||
"node_modules/",
|
"node_modules/",
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ vim.o.splitright = true
|
|||||||
vim.o.maxmempattern = 100000
|
vim.o.maxmempattern = 100000
|
||||||
vim.g.clipboard = "osc52"
|
vim.g.clipboard = "osc52"
|
||||||
|
|
||||||
|
-- Leave room beside the completion menu for documentation.
|
||||||
|
vim.o.pummaxwidth = 50
|
||||||
|
|
||||||
function _G.org_foldexpr()
|
function _G.org_foldexpr()
|
||||||
local stars = vim.fn.getline(vim.v.lnum):match("^(%*+)%s")
|
local stars = vim.fn.getline(vim.v.lnum):match("^(%*+)%s")
|
||||||
return stars and (">" .. #stars) or "="
|
return stars and (">" .. #stars) or "="
|
||||||
@@ -61,8 +64,8 @@ vim.cmd([[
|
|||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
set notermguicolors
|
set notermguicolors
|
||||||
set pumborder=rounded
|
set pumborder=single
|
||||||
set winborder=none
|
set winborder=single
|
||||||
colorscheme default
|
colorscheme default
|
||||||
]])
|
]])
|
||||||
|
|
||||||
@@ -82,3 +85,21 @@ vim.cmd([[
|
|||||||
-- colorscheme default
|
-- colorscheme default
|
||||||
-- ]])
|
-- ]])
|
||||||
-- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18
|
-- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18
|
||||||
|
|
||||||
|
-- The native completion documentation popup does not inherit 'winborder'.
|
||||||
|
vim.api.nvim_create_autocmd("CompleteChanged", {
|
||||||
|
group = vim.api.nvim_create_augroup("CompletionDocBorder", { clear = true }),
|
||||||
|
callback = function()
|
||||||
|
local function set_border()
|
||||||
|
-- Neovim returns preview_winid together with the selected item.
|
||||||
|
local win = vim.fn.complete_info({ "selected" }).preview_winid
|
||||||
|
if win and win > 0 and vim.api.nvim_win_is_valid(win) then
|
||||||
|
vim.api.nvim_win_set_config(win, { border = "single" })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.schedule(set_border)
|
||||||
|
-- LSP documentation can arrive after the selection changes.
|
||||||
|
vim.defer_fn(set_border, 300)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://opencode.ai/v2/cli.json",
|
"$schema": "https://opencode.ai/v2/cli.json",
|
||||||
"theme": {
|
"theme": {
|
||||||
"name": "system"
|
"name": "system",
|
||||||
|
"mode": "system"
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"sidebar": "hide"
|
"sidebar": "hide"
|
||||||
|
|||||||
@@ -8,4 +8,14 @@
|
|||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"permission": {
|
||||||
|
"bash": {
|
||||||
|
"*": "ask",
|
||||||
|
"kubectl *": "ask",
|
||||||
|
"kubectl get *": "allow",
|
||||||
|
"kubectl describe *": "allow",
|
||||||
|
"kubectl logs *": "allow",
|
||||||
|
"kubectl top *": "allow"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-4
@@ -1,6 +1,5 @@
|
|||||||
# set-option -g default-command "exec /usr/local/bin/bash --login"
|
# set-option -g default-command "exec /usr/local/bin/bash --login"
|
||||||
set-option -g status-style bg=default
|
set-option -g status-style bg=default
|
||||||
bind s choose-tree -Zs -O name
|
|
||||||
set-option -g status-position top
|
set-option -g status-position top
|
||||||
|
|
||||||
# Number windows from 1 and close gaps when windows are removed
|
# Number windows from 1 and close gaps when windows are removed
|
||||||
@@ -14,8 +13,8 @@ set -g prefix C-space
|
|||||||
unbind-key C-b
|
unbind-key C-b
|
||||||
bind-key C-space send-prefix
|
bind-key C-space send-prefix
|
||||||
|
|
||||||
# Sort the session picker by name
|
# Sort the session picker by name; shortcuts start at 1, then Alt-a after 9
|
||||||
bind s choose-tree -Zs -O name
|
bind s choose-tree -Zs -O name -K '#{?#{e|<:#{line},9},#{e|+:#{line},1},#{?#{e|<:#{line},35},M-#{a:#{e|+:97,#{e|-:#{line},9}}},}}'
|
||||||
|
|
||||||
# Set new panes to open in current directory
|
# Set new panes to open in current directory
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
@@ -86,4 +85,4 @@ bind -T off-prefix Any \
|
|||||||
send-keys C-Space \;\
|
send-keys C-Space \;\
|
||||||
send-keys
|
send-keys
|
||||||
|
|
||||||
bind z run-shell "~/.config/tmux/scripts/tmux-zen.sh 120"
|
# bind z run-shell "~/.config/tmux/scripts/tmux-zen.sh 120"
|
||||||
|
|||||||
Reference in New Issue
Block a user