Moved fully away from helix to minimal nvim
This commit is contained in:
@@ -3,18 +3,11 @@ import = [ "~/.config/alacritty/dank-theme.toml" ]
|
|||||||
|
|
||||||
[font]
|
[font]
|
||||||
size = 13
|
size = 13
|
||||||
offset = { x = 0, y = 5 }
|
offset = { x = 0, y = 3 }
|
||||||
|
normal = { family = "JetBrainsMono Nerd Font", style = "Regular" }
|
||||||
[font.normal]
|
|
||||||
family = "Hack Nerd Font"
|
|
||||||
|
|
||||||
[font.bold]
|
|
||||||
family = "Hack Nerd Font"
|
|
||||||
|
|
||||||
[font.italic]
|
|
||||||
family = "Hack Nerd Font"
|
|
||||||
|
|
||||||
[window]
|
[window]
|
||||||
|
opacity = 0.99
|
||||||
padding.x = 10
|
padding.x = 10
|
||||||
padding.y = 10
|
padding.y = 10
|
||||||
decorations = "None"
|
decorations = "None"
|
||||||
@@ -22,3 +15,37 @@ decorations = "None"
|
|||||||
[cursor]
|
[cursor]
|
||||||
style.shape = "Beam"
|
style.shape = "Beam"
|
||||||
style.blinking = "Always"
|
style.blinking = "Always"
|
||||||
|
|
||||||
|
# Kanagawa Wave Alacritty Colors
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = '#090618'
|
||||||
|
red = '#c34043'
|
||||||
|
green = '#76946a'
|
||||||
|
yellow = '#c0a36e'
|
||||||
|
blue = '#7e9cd8'
|
||||||
|
magenta = '#957fb8'
|
||||||
|
cyan = '#6a9589'
|
||||||
|
white = '#c8c093'
|
||||||
|
|
||||||
|
[colors.bright]
|
||||||
|
black = '#727169'
|
||||||
|
red = '#e82424'
|
||||||
|
green = '#98bb6c'
|
||||||
|
yellow = '#e6c384'
|
||||||
|
blue = '#7fb4ca'
|
||||||
|
magenta = '#938aa9'
|
||||||
|
cyan = '#7aa89f'
|
||||||
|
white = '#dcd7ba'
|
||||||
|
|
||||||
|
[colors.selection]
|
||||||
|
background = '#2d4f67'
|
||||||
|
foreground = '#c8c093'
|
||||||
|
|
||||||
|
[[colors.indexed_colors]]
|
||||||
|
index = 16
|
||||||
|
color = '#ffa066'
|
||||||
|
|
||||||
|
[[colors.indexed_colors]]
|
||||||
|
index = 17
|
||||||
|
color = '#ff5d62'
|
||||||
|
|||||||
+25
-25
@@ -126,9 +126,9 @@ function pp
|
|||||||
set -l selection (cat "$project_file" | awk -F'/' '{print $NF "\t" $0}' | fzf --height 40% --reverse --header="Select Project" --with-nth=1 --delimiter=(printf '\t') | cut -f2)
|
set -l selection (cat "$project_file" | awk -F'/' '{print $NF "\t" $0}' | fzf --height 40% --reverse --header="Select Project" --with-nth=1 --delimiter=(printf '\t') | cut -f2)
|
||||||
|
|
||||||
if test -n "$selection"
|
if test -n "$selection"
|
||||||
|
clear
|
||||||
cd "$selection"
|
cd "$selection"
|
||||||
commandline -f repaint # Ensures the prompt updates after cd
|
commandline -f repaint # Ensures the prompt updates after cd
|
||||||
hx
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -196,29 +196,29 @@ set -g __fish_git_prompt_char_stagedstate '●'
|
|||||||
set -g __fish_git_prompt_char_untrackedfiles ''
|
set -g __fish_git_prompt_char_untrackedfiles ''
|
||||||
|
|
||||||
# Auto-attach to tmux on interactive shell start
|
# Auto-attach to tmux on interactive shell start
|
||||||
# if status is-interactive && not set -q TMUX
|
if status is-interactive && not set -q TMUX
|
||||||
# # Get all session names matching shell, shell-2, shell-3 etc
|
# Get all session names matching shell, shell-2, shell-3 etc
|
||||||
# set sessions (tmux list-sessions -F '#S' 2>/dev/null)
|
set sessions (tmux list-sessions -F '#S' 2>/dev/null)
|
||||||
|
|
||||||
# if test (count $sessions) -eq 0
|
if test (count $sessions) -eq 0
|
||||||
# tmux new-session -s shell
|
tmux new-session -s shell
|
||||||
# else
|
else
|
||||||
# # Check if any shell session is unattached and attach it
|
# Check if any shell session is unattached and attach it
|
||||||
# set target (tmux list-sessions -F '#{session_name} #{session_attached}' 2>/dev/null \
|
set target (tmux list-sessions -F '#{session_name} #{session_attached}' 2>/dev/null \
|
||||||
# | grep '^shell' | grep ' 0$' | head -1 | awk '{print $1}')
|
| grep '^shell' | grep ' 0$' | head -1 | awk '{print $1}')
|
||||||
|
|
||||||
# if test -n "$target"
|
if test -n "$target"
|
||||||
# tmux attach -t $target
|
tmux attach -t $target
|
||||||
# else
|
else
|
||||||
# # All shell sessions attached — find next number
|
# All shell sessions attached — find next number
|
||||||
# set nums 1
|
set nums 1
|
||||||
# for s in $sessions
|
for s in $sessions
|
||||||
# if string match -rq '^shell-(\d+)$' $s
|
if string match -rq '^shell-(\d+)$' $s
|
||||||
# set nums $nums (string replace 'shell-' '' $s)
|
set nums $nums (string replace 'shell-' '' $s)
|
||||||
# end
|
end
|
||||||
# end
|
end
|
||||||
# set next (math (string join \n $nums | sort -n | tail -1) + 1)
|
set next (math (string join \n $nums | sort -n | tail -1) + 1)
|
||||||
# tmux new-session -s shell-$next
|
tmux new-session -s shell-$next
|
||||||
# end
|
end
|
||||||
# end
|
end
|
||||||
# end
|
end
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ vim.o.relativenumber = true -- Show relative line numbers
|
|||||||
vim.o.cursorline = true -- Highlight the line where the cursor is
|
vim.o.cursorline = true -- Highlight the line where the cursor is
|
||||||
vim.o.wrap = false -- Don't wrap long lines to the next line
|
vim.o.wrap = false -- Don't wrap long lines to the next line
|
||||||
vim.o.list = true -- Show invisible characters (tabs, trailing spaces)
|
vim.o.list = true -- Show invisible characters (tabs, trailing spaces)
|
||||||
vim.o.scrolloff = 20 -- Keep 20 lines above/below cursor when scrolling
|
vim.o.scrolloff = 15 -- Keep 15 lines above/below cursor when scrolling
|
||||||
vim.o.winborder = 'rounded' -- Use rounded borders for floating windows
|
vim.o.winborder = 'rounded' -- Use rounded borders for floating windows
|
||||||
vim.o.ignorecase = true -- Ignore case in search patterns
|
vim.o.ignorecase = true -- Ignore case in search patterns
|
||||||
vim.o.smartcase = true -- ...unless search contains an uppercase letter
|
vim.o.smartcase = true -- ...unless search contains an uppercase letter
|
||||||
|
|||||||
@@ -63,6 +63,28 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Define highlight groups
|
||||||
|
vim.api.nvim_set_hl(0, "TodoFix", { fg = "#FF5555", bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "TodoTodo", { fg = "#FFB86C", bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "TodoNote", { fg = "#A8D8FF", bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "TodoInfo", { fg = "#98DB6F", bold = true })
|
||||||
|
|
||||||
|
-- Match and highlight keywords in comments
|
||||||
|
local keywords = {
|
||||||
|
{ pattern = "FIX:.*", group = "TodoFix" },
|
||||||
|
{ pattern = "TODO:.*", group = "TodoTodo" },
|
||||||
|
{ pattern = "NOTE:.*", group = "TodoNote" },
|
||||||
|
{ pattern = "INFO:.*", group = "TodoInfo" },
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, {
|
||||||
|
callback = function()
|
||||||
|
for _, kw in ipairs(keywords) do
|
||||||
|
vim.fn.matchadd(kw.group, kw.pattern)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Format: whole file or visual selection via :Fc
|
-- Format: whole file or visual selection via :Fc
|
||||||
local function smart_format()
|
local function smart_format()
|
||||||
local mode = vim.fn.mode()
|
local mode = vim.fn.mode()
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ vim.pack.add({
|
|||||||
{ src = "https://github.com/ibhagwan/fzf-lua" },
|
{ src = "https://github.com/ibhagwan/fzf-lua" },
|
||||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||||
{ src = "https://github.com/romus204/tree-sitter-manager.nvim" },
|
{ src = "https://github.com/romus204/tree-sitter-manager.nvim" },
|
||||||
{ src = "https://github.com/catppuccin/nvim", name = "catppuccin" },
|
{ src = "https://github.com/rebelot/kanagawa.nvim" },
|
||||||
{ src = "https://github.com/tribela/transparent.nvim" }
|
{ src = "https://github.com/tribela/transparent.nvim" },
|
||||||
})
|
})
|
||||||
vim.cmd(":colorscheme catppuccin-nvim")
|
vim.cmd(":colorscheme kanagawa")
|
||||||
|
|
||||||
require("tree-sitter-manager").setup({})
|
require("tree-sitter-manager").setup({})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user