-- ============================================================================ -- Editor - Quality of Life Plugins -- ============================================================================ return { -- Auto pairs { 'windwp/nvim-autopairs', event = 'InsertEnter', config = true, }, -- Comment.nvim { 'numToStr/Comment.nvim', event = { 'BufReadPost', 'BufNewFile' }, dependencies = { 'JoosepAlviste/nvim-ts-context-commentstring', }, config = function() require('Comment').setup({ pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(), }) end, }, -- Surround { 'kylechui/nvim-surround', version = '*', event = 'VeryLazy', config = true, }, -- Better escape { 'max397574/better-escape.nvim', event = 'InsertEnter', config = function() require('better_escape').setup({ mapping = { 'jk', 'jj' }, timeout = 200, }) end, }, -- Which-key (zeigt Keybindings) { 'folke/which-key.nvim', event = 'VeryLazy', init = function() vim.o.timeout = true vim.o.timeoutlen = 300 end, opts = { -- Deine Leader-Gruppen spec = { { 'f', group = 'Find' }, { 'g', group = 'Git' }, { 'h', group = 'Hunk' }, { 't', group = 'Toggle' }, { 'c', group = 'Code' }, { 'w', group = 'Workspace' }, }, }, }, }