From 0ca4a99af1ec70e25556a5dafa4ab543144e6fbf Mon Sep 17 00:00:00 2001 From: Michael Chalupiak Date: Fri, 4 Apr 2025 11:42:16 -0400 Subject: [PATCH] back to kakoune, with new and improved colors --- config/.bashrc | 20 ++++++++--------- config/.config/nvim/lua/config/packer.lua | 26 ----------------------- config/.doom.d/init.el | 2 +- config/.gitconfig | 2 +- config/.tmux.conf | 4 ++-- 5 files changed, 14 insertions(+), 40 deletions(-) diff --git a/config/.bashrc b/config/.bashrc index b4e644f..4f0890b 100644 --- a/config/.bashrc +++ b/config/.bashrc @@ -132,7 +132,7 @@ alias zf='z $(flirt)' # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. # if [ -z "$EDITOR" ]; then -export EDITOR='nvim' +export EDITOR='kak' # fi if [ -f ~/.bash_aliases ]; then @@ -173,24 +173,24 @@ tinty_source_shell_theme() { # fi run_kak() { - kak -c $SESH 2>/dev/null "$@" || kak -s $SESH "$@" + /usr/bin/kak -c $SESH 2>/dev/null "$@" || /usr/bin/kak -s $SESH "$@" } if [ -n "$(command -v tmux)" ] && [ -n "$(command -v kak)" ] && [ -z "$TMUX" ]; then SESH="$( (tmux list-sessions 2>/dev/null || echo '-1') | cut -d' ' -f1 | tr -d ':-' | sort -r | head -n1 | xargs -I{} echo '{} + 1' | bc)" - # alias kak='tmux new-session -e "EDITOR=\"kak -c $SESH\"" -s $SESH kak -s $SESH > /dev/null' + alias kak='tmux new-session -e "EDITOR=\"/usr/bin/kak -c $SESH\"" -s $SESH /usr/bin/kak -s $SESH > /dev/null' elif [ -n "$(command -v tmux)" ] && [ -n "$(command -v kak)" ]; then SESH="$(tmux display-message -p '#S')" # alias kak='kak -c $SESH 2>/dev/null || kak -s $SESH' - # alias kak=run_kak - # alias vidir='EDITOR="kak -c $SESH 2/dev/null || kak -s $SESH" vidir' - # alias vipe='EDITOR="kak -c $SESH 2>/dev/null|| kak -s $SESH" vipe' + alias kak=run_kak + alias vidir='EDITOR="/usr/bin/kak -c $SESH 2/dev/null || /usr/bin/kak -s $SESH" vidir' + alias vipe='EDITOR="/usr/bin/kak -c $SESH 2>/dev/null|| /usr/bin/kak -s $SESH" vipe' fi -if [ -n "$(command -v tmux)" ] && [ -z "$TMUX" ]; then - SESH="$( (tmux list-sessions 2>/dev/null || echo '-1') | cut -d' ' -f1 | tr -d ':-' | sort -r | head -n1 | xargs -I{} echo '{} + 1' | bc)" - alias tmux="tmux new-session -s $SESH" -fi +# if [ -n "$(command -v tmux)" ] && [ -z "$TMUX" ]; then +# SESH="$( (tmux list-sessions 2>/dev/null || echo '-1') | cut -d' ' -f1 | tr -d ':-' | sort -r | head -n1 | xargs -I{} echo '{} + 1' | bc)" +# alias tmux="tmux new-session -s $SESH" +# fi alias enter-dev='. enter-dev.sh' alias ssh='TERM="xterm-256color" ssh' diff --git a/config/.config/nvim/lua/config/packer.lua b/config/.config/nvim/lua/config/packer.lua index b27e0b5..a41a7c6 100755 --- a/config/.config/nvim/lua/config/packer.lua +++ b/config/.config/nvim/lua/config/packer.lua @@ -7,32 +7,6 @@ return require('packer').startup(function(use) -- Packer can manage itself use 'wbthomason/packer.nvim' - use { - 'jake-stewart/multicursor.nvim', - config = function() - local mc = require'multicursor-nvim' - mc.setup{} - local set = vim.keymap.set - set("n", "s", mc.searchAllAddCursors) - mc.addKeymapLayer(function(layerSet) - -- Select a different cursor as the main one. - layerSet({"n", "x"}, "", mc.prevCursor) - layerSet({"n", "x"}, "", mc.nextCursor) - - -- Delete the main cursor. - layerSet({"n", "x"}, "x", mc.deleteCursor) - - -- Enable and clear cursors using escape. - layerSet("n", "", function() - if not mc.cursorsEnabled() then - mc.enableCursors() - else - mc.clearCursors() - end - end) - end) - end - } use { 'nvim-telescope/telescope.nvim', branch = '0.1.x', diff --git a/config/.doom.d/init.el b/config/.doom.d/init.el index 17ba487..d3a6f65 100644 --- a/config/.doom.d/init.el +++ b/config/.doom.d/init.el @@ -53,7 +53,7 @@ zen ; distraction-free coding or writing :editor - (evil +everywhere); come to the dark side, we have cookies + ;; (evil +everywhere); come to the dark side, we have cookies file-templates ; auto-snippets for empty files fold ; (nigh) universal code folding (format +onsave) ; automated prettiness diff --git a/config/.gitconfig b/config/.gitconfig index f7c81e2..013d369 100644 --- a/config/.gitconfig +++ b/config/.gitconfig @@ -7,7 +7,7 @@ process = git-lfs filter-process required = true [core] - editor = nvim + editor = kak [init] defaultBranch = master [sendemail] diff --git a/config/.tmux.conf b/config/.tmux.conf index c8421d6..533af0c 100644 --- a/config/.tmux.conf +++ b/config/.tmux.conf @@ -4,8 +4,8 @@ set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn' #set -g @plugin 'arcticicestudio/nord-tmux' set -g @plugin 'rose-pine/tmux' set -g @plugin 'tmux-plugins/tpm' -set -g default-terminal "xterm-256color" -set -ga terminal-overrides ",xterm*:Tc" +set -g default-terminal "tmux-256color" +set -ga terminal-overrides ",alacritty:Tc" set -g mouse on # Changes prefix key to control a instead of control b unbind C-b