feat: sync .config dotfiles, transition Node to mise, integrate 1Password CLI/SSH Agent, and add optional AI CLI tools

This commit is contained in:
2026-06-22 17:13:42 +02:00
parent 0379a21780
commit 6b09ba52b6
33 changed files with 837 additions and 1425 deletions
+29 -39
View File
@@ -1,67 +1,57 @@
-- ============================================================================
-- Editor - Quality of Life Plugins
-- Editor Enhancements - Comment, Surround, etc.
-- ============================================================================
return {
-- Auto pairs
{
'windwp/nvim-autopairs',
event = 'InsertEnter',
config = true,
},
-- Comment.nvim
-- Comment.nvim - gc zum Kommentieren
{
'numToStr/Comment.nvim',
event = { 'BufReadPost', 'BufNewFile' },
dependencies = {
'JoosepAlviste/nvim-ts-context-commentstring',
},
event = 'VeryLazy',
config = function()
require('Comment').setup({
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(),
-- LHS of toggle mappings in NORMAL mode
toggler = {
line = 'gcc', -- Line-comment toggle
block = 'gbc', -- Block-comment toggle
},
-- LHS of operator-pending mappings in NORMAL and VISUAL mode
opleader = {
line = 'gc', -- Line-comment operator
block = 'gb', -- Block-comment operator
},
})
end,
},
-- Surround
-- Surround - ys/cs/ds für quotes, brackets, etc.
{
'kylechui/nvim-surround',
version = '*',
event = 'VeryLazy',
config = true,
config = function()
require('nvim-surround').setup()
end,
},
-- Better escape
-- Auto-pairs
{
'max397574/better-escape.nvim',
'windwp/nvim-autopairs',
event = 'InsertEnter',
config = function()
require('better_escape').setup({
mapping = { 'jk', 'jj' },
timeout = 200,
})
require('nvim-autopairs').setup()
end,
},
-- Which-key (zeigt Keybindings)
-- Undo-tree - Visueller Undo-Verlauf
{
'folke/which-key.nvim',
event = 'VeryLazy',
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = {
-- Deine Leader-Gruppen
spec = {
{ '<leader>f', group = 'Find' },
{ '<leader>g', group = 'Git' },
{ '<leader>h', group = 'Hunk' },
{ '<leader>t', group = 'Toggle' },
{ '<leader>c', group = 'Code' },
{ '<leader>w', group = 'Workspace' },
},
'mbbill/undotree',
cmd = 'UndotreeToggle',
keys = {
{ '<leader>u', '<cmd>UndotreeToggle<CR>', desc = 'Toggle Undotree' },
},
config = function()
vim.g.undotree_WindowLayout = 3
vim.g.undotree_SetFocusWhenToggle = 1
end,
},
}