aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2025-05-20 15:17:01 -0400
committerstefan <stefan@s00.xyz>2025-05-20 15:17:01 -0400
commit92fe04a180e3cfca16c3ef4150a5a1eec879b665 (patch)
treebe66d0ea3bafed01bec10bb286f6964703bcfb72
parent2d701706abcc131aea8b2758cfff0acdc18a4b74 (diff)
downloadhome-92fe04a180e3cfca16c3ef4150a5a1eec879b665.tar.gz
(form) sync
-rw-r--r--assets/BerkeleyMonoPatchedNerdFont-Regular.ttfbin341868 -> 0 bytes
-rw-r--r--assets/BerkeleyMonoPatchedNerdFontPropo-Regular.ttfbin2207576 -> 0 bytes
-rw-r--r--form/configuration.nix11
-rw-r--r--form/home.nix5
-rw-r--r--modules/foot.nix1
-rw-r--r--modules/neovim/default.nix4
-rw-r--r--modules/neovim/nvim/lua/config/keybinds.lua8
-rw-r--r--modules/neovim/nvim/lua/config/noice.lua14
-rw-r--r--modules/neovim/nvim/lua/config/settings.lua5
-rw-r--r--modules/neovim/nvim/lua/config/tmux.lua5
-rw-r--r--modules/tmux/default.nix17
-rw-r--r--modules/zsh/themes/stefan.zsh-theme37
12 files changed, 82 insertions, 25 deletions
diff --git a/assets/BerkeleyMonoPatchedNerdFont-Regular.ttf b/assets/BerkeleyMonoPatchedNerdFont-Regular.ttf
deleted file mode 100644
index 32a0fd9..0000000
--- a/assets/BerkeleyMonoPatchedNerdFont-Regular.ttf
+++ /dev/null
Binary files differ
diff --git a/assets/BerkeleyMonoPatchedNerdFontPropo-Regular.ttf b/assets/BerkeleyMonoPatchedNerdFontPropo-Regular.ttf
deleted file mode 100644
index 50b78ed..0000000
--- a/assets/BerkeleyMonoPatchedNerdFontPropo-Regular.ttf
+++ /dev/null
Binary files differ
diff --git a/form/configuration.nix b/form/configuration.nix
index 79e0f18..5a6a789 100644
--- a/form/configuration.nix
+++ b/form/configuration.nix
@@ -37,11 +37,11 @@
programs.zsh = {
enable = true;
- ohMyZsh = {
- enable = true;
- };
+ ohMyZsh.enable = true;
};
+ documentation.dev.enable = true;
+
users.users.stefan = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "gamemode" ]; # Enable ‘sudo’ for the user.
@@ -92,6 +92,11 @@
gnupg
pinentry-qt
btop
+ man-pages
+ man-pages-posix
+ wineWowPackages.staging
+ winetricks
+ wineWowPackages.waylandFull
];
environment.pathsToLink = [ "/share/zsh" ];
diff --git a/form/home.nix b/form/home.nix
index 50c7668..c9f7a2f 100644
--- a/form/home.nix
+++ b/form/home.nix
@@ -17,10 +17,9 @@
];
};
- # colors.mountain.enable = true;
- colors.tomorrow.enable = true;
+ colors.mountain.enable = true;
+ # colors.tomorrow.enable = true;
gpg.enable = true;
- zsh.theme = "simple";
pass = {
enable = true;
diff --git a/modules/foot.nix b/modules/foot.nix
index b909ee2..9927e7d 100644
--- a/modules/foot.nix
+++ b/modules/foot.nix
@@ -36,6 +36,7 @@ in
};
colors = {
+ alpha=0.8;
# foreground="cacaca";
# background="0f0f0f";
# regular0="0f0f0f";
diff --git a/modules/neovim/default.nix b/modules/neovim/default.nix
index 03b8831..807ab74 100644
--- a/modules/neovim/default.nix
+++ b/modules/neovim/default.nix
@@ -47,6 +47,7 @@ in
(nvim-treesitter.withPlugins (p: with p; [
tree-sitter-nix
tree-sitter-make
+ tree-sitter-cmake
tree-sitter-verilog
tree-sitter-scheme
tree-sitter-llvm
@@ -75,7 +76,10 @@ in
plenary-nvim
mini-icons
oil-nvim
+ tmux-nvim
+ # noice-nvim
nvim-lspconfig
+ # blink-cmp
# tinted-vim
base16-nvim
telescope-nvim
diff --git a/modules/neovim/nvim/lua/config/keybinds.lua b/modules/neovim/nvim/lua/config/keybinds.lua
index 5481d37..551fc14 100644
--- a/modules/neovim/nvim/lua/config/keybinds.lua
+++ b/modules/neovim/nvim/lua/config/keybinds.lua
@@ -37,6 +37,14 @@ nmap('<leader>wm', '<C-w><C-h>', { desc = "Focus window left of the current one"
nmap('<leader>wn', '<C-w><C-j>', { desc = "Focus window below the current one" })
nmap('<leader>we', '<C-w><C-k>', { desc = "Focus window above the current one" })
nmap('<leader>wi', '<C-w><C-l>', { desc = "Focus window right of the current one" })
+-- nmap('<C-m>', '<C-w><C-h>', { desc = "Focus window left of the current one" })
+-- nmap('<C-n>', '<C-w><C-j>', { desc = "Focus window below the current one" })
+-- nmap('<C-e>', '<C-w><C-k>', { desc = "Focus window above the current one" })
+-- nmap('<C-i>', '<C-w><C-l>', { desc = "Focus window right of the current one" })
+nmap('<M-m>', function() require("tmux").move_left() end, { desc = "Focus window left of the current one" })
+nmap('<M-n>', function() require("tmux").move_bottom() end, { desc = "Focus window below the current one" })
+nmap('<M-e>', function() require("tmux").move_top() end, { desc = "Focus window above the current one" })
+nmap('<M-i>', function() require("tmux").move_right() end, { desc = "Focus window right of the current one" })
-- nmap('<leader>fo', '<cmd>Telescope find_files<CR>', { silent = true })
nmap('<leader>fo', '<cmd>FzfLua files<CR>', { silent = true })
diff --git a/modules/neovim/nvim/lua/config/noice.lua b/modules/neovim/nvim/lua/config/noice.lua
new file mode 100644
index 0000000..29f7a1d
--- /dev/null
+++ b/modules/neovim/nvim/lua/config/noice.lua
@@ -0,0 +1,14 @@
+require("noice").setup({
+ lsp = {
+ override = {
+ ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
+ [ "vim.lsp.util.sylize_markdown" ] = true,
+ },
+
+ presets = {
+ command_palette = true,
+ log_message_to_split = true,
+ lsp_doc_border = true,
+ },
+ },
+})
diff --git a/modules/neovim/nvim/lua/config/settings.lua b/modules/neovim/nvim/lua/config/settings.lua
index 2ff8821..7baeefa 100644
--- a/modules/neovim/nvim/lua/config/settings.lua
+++ b/modules/neovim/nvim/lua/config/settings.lua
@@ -11,7 +11,7 @@ vim.o.scrolloff = 15
vim.o.sidescrolloff = 12
vim.o.wrap = false
vim.o.lbr = true
-vim.o.shortmess = vim.o.shortmess .. "I"
+vim.o.shortmess = "tToOCFIsWcCi"
vim.o.termguicolors = true
vim.opt.fillchars = {eob = " "}
vim.o.smd = false
@@ -49,5 +49,6 @@ vim.opt.foldenable=true
vim.cmd[[set wildchar=<C-n>]]
+vim.g.loaded_matchparen = 1
vim.cmd[[cnoreabbrev ts lua vim.treesitter.start()]]
-
+require('vim._extui').enable({})
diff --git a/modules/neovim/nvim/lua/config/tmux.lua b/modules/neovim/nvim/lua/config/tmux.lua
new file mode 100644
index 0000000..8dbcff4
--- /dev/null
+++ b/modules/neovim/nvim/lua/config/tmux.lua
@@ -0,0 +1,5 @@
+require("tmux").setup({
+ navigation = {
+ enable_default_keybindings = false,
+ },
+})
diff --git a/modules/tmux/default.nix b/modules/tmux/default.nix
index b14563b..318e1db 100644
--- a/modules/tmux/default.nix
+++ b/modules/tmux/default.nix
@@ -38,6 +38,13 @@ in
set -g @continuum-restore 'on'
'';
}
+ # {
+ # plugin = vim.tmux-navigatior;
+ # extraConfig = ''
+ # set -g
+ # '';
+ # }
+
];
extraConfig = ''
set -g default-terminal "screen-256color"
@@ -78,10 +85,18 @@ in
bind e select-pane -U
bind i select-pane -R
+ is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
+ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?\.?(view|l?n?vim?x?|fzf)(diff)?(-wrapped)?$'"
+
+ bind-key -n 'M-m' if-shell "$is_vim" 'send-keys M-m' 'select-pane -L'
+ bind-key -n 'M-n' if-shell "$is_vim" 'send-keys M-n' 'select-pane -D'
+ bind-key -n 'M-e' if-shell "$is_vim" 'send-keys M-e' 'select-pane -U'
+ bind-key -n 'M-i' if-shell "$is_vim" 'send-keys M-i' 'select-pane -R'
+
bind-key -T root m if -F "#{==:#{pane_mode},tree-mode}" "send h" "send m"
bind-key -T root n if -F "#{==:#{pane_mode},tree-mode}" "send j" "send n"
bind-key -T root e if -F "#{==:#{pane_mode},tree-mode}" "send k" "send e"
- bind-key -T root i if -F "#{==:#{pane_mode},tree-mode}" "send l" "send i;"
+ bind-key -T root i if -F "#{==:#{pane_mode},tree-mode}" "send l" "send i"
bind -T copy-mode-vi m send-keys -X cursor-left
bind -T copy-mode-vi n send-keys -X cursor-down
diff --git a/modules/zsh/themes/stefan.zsh-theme b/modules/zsh/themes/stefan.zsh-theme
index dc9a201..4f1c643 100644
--- a/modules/zsh/themes/stefan.zsh-theme
+++ b/modules/zsh/themes/stefan.zsh-theme
@@ -10,10 +10,14 @@ function gitstatus_prompt_update() {
[[ $VCS_STATUS_RESULT == 'ok-sync' ]] || return 0 # not in a repo
- local green='%{%F{green}%}'
- local red='%{%F{red}%}'
- local yellow='%{%F{yellow}%}'
- local blue='%{%F{blue}%}'
+ # local green='%{%F{green}%}'
+ # local red='%{%F{red}%}'
+ # local yellow='%{%F{yellow}%}'
+ # local blue='%{%F{blue}%}'
+ local green=''
+ local red=''
+ local yellow=''
+ local blue=''
local name
if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
@@ -59,21 +63,21 @@ INS_MODE='%{%F{reset}%}[%{%F{green}%}i%{%F{reset}%}]'
NORMAL_MODE='%{%F{reset}%}[%{%F{yellow}%}n%{%F{reset}%}]'
VI_MODE=$INS_MODE
-function zle-keymap-select() {
- VI_MODE="${${KEYMAP/vicmd/${NORMAL_MODE}}/(main|viins)/${INS_MODE}}"
- zle reset-prompt
-# zle -R
-}
-
-zle -N zle-keymap-select # hook readline so we can determine mode
+# function zle-keymap-select() {
+# VI_MODE="${${KEYMAP/vicmd/${NORMAL_MODE}}/(main|viins)/${INS_MODE}}"
+# zle reset-prompt
+# # zle -R
+# }
+#
+# zle -N zle-keymap-select # hook readline so we can determine mode
# normally, SIGINT (<C-c>) will put you in ins, but indictator wont update.
# fix: hook TRAPINT, update mode and repropagate the SIGINT
# im too lazy to figure out if its possible to keep normal mode and send a sigint
-TRAPINT() {
- export VI_MODE=$INS_MODE
- return $((128+$1))
-}
+# TRAPINT() {
+# export VI_MODE=$INS_MODE
+# return $((128+$1))
+# }
source "$(gitstatus-share)/gitstatus.plugin.zsh" || return
@@ -86,7 +90,8 @@ setopt prompt_subst prompt_percent no_prompt_bang
NEWLINE=$'\n'
GIT_PROMPT_INFO=${GITSTATUS_PROMPT:+ $GITSTATUS_PROMPT}
-PROMPT='%F{magenta}%~% %f% ${VI_MODE}${NEWLINE}%{%F{yellow}%}λ %b%f% '
+# PROMPT='%F{magenta}%~% %f% ${VI_MODE}${NEWLINE}%{%F{yellow}%}λ %b%f% '
+PROMPT='%~%${NEWLINE} λ %b% '
RPROMPT='$(virtualenv_info)% ${GITSTATUS_PROMPT:+ $GITSTATUS_PROMPT} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"