feat: sync .config dotfiles, transition Node to mise, integrate 1Password CLI/SSH Agent, and add optional AI CLI tools
This commit is contained in:
@@ -26,6 +26,7 @@ opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
opt.hlsearch = true
|
||||
opt.incsearch = true
|
||||
opt.inccommand = 'split'
|
||||
|
||||
-- Aussehen
|
||||
opt.termguicolors = true
|
||||
@@ -59,3 +60,31 @@ opt.completeopt = 'menu,menuone,noselect'
|
||||
|
||||
-- Fold (erstmal aus)
|
||||
opt.foldenable = false
|
||||
|
||||
-- ============================================================================
|
||||
-- NEU: Automatischer Wechsel für QA vs. Speed (Hybrid Line Numbers)
|
||||
-- ============================================================================
|
||||
-- Normal Mode = Relative Nummern (zum schnellen Springen)
|
||||
-- Insert Mode = Absolute Nummern (zum Ablesen für Tickets/Kollegen)
|
||||
local augroup = vim.api.nvim_create_augroup("numbertoggle", {})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "FocusGained", "InsertLeave", "CmdlineLeave" }, {
|
||||
group = augroup,
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
if vim.o.nu and vim.api.nvim_get_mode().mode ~= "i" then
|
||||
vim.opt.relativenumber = true
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufLeave", "FocusLost", "InsertEnter", "CmdlineEnter" }, {
|
||||
group = augroup,
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
if vim.o.nu then
|
||||
vim.opt.relativenumber = false
|
||||
vim.cmd "redraw"
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user