From: Stefan Huber Date: Sun, 9 Mar 2025 19:51:45 +0000 (+0100) Subject: plugins: Some mini.nvim config updates X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=55a68c1956dd8624b2bfb3275259056adc8513d2;p=vimconf.git plugins: Some mini.nvim config updates --- diff --git a/plugins-midi.vim.example b/plugins-midi.vim.example index 3f55552..68ea44d 100644 --- a/plugins-midi.vim.example +++ b/plugins-midi.vim.example @@ -66,21 +66,6 @@ function PluginsConfigMidi() if has('nvim') lua < mapping groups - miniclue.gen_clues.builtin_completion(), - miniclue.gen_clues.g(), - miniclue.gen_clues.marks(), - miniclue.gen_clues.registers(), - miniclue.gen_clues.windows(), - miniclue.gen_clues.z(), - }, - }) + local miniclue = require('mini.clue') + miniclue.setup({ + triggers = { + -- Leader triggers + { mode = 'n', keys = '' }, + { mode = 'x', keys = '' }, + + -- Built-in completion + { mode = 'i', keys = '' }, + + -- `g` key + { mode = 'n', keys = 'g' }, + { mode = 'x', keys = 'g' }, + + -- Marks + { mode = 'n', keys = "'" }, + { mode = 'n', keys = '`' }, + { mode = 'x', keys = "'" }, + { mode = 'x', keys = '`' }, + + -- Registers + { mode = 'n', keys = '"' }, + { mode = 'x', keys = '"' }, + { mode = 'i', keys = '' }, + { mode = 'c', keys = '' }, + + -- Window commands + { mode = 'n', keys = '' }, + + -- `z` key + { mode = 'n', keys = 'z' }, + { mode = 'x', keys = 'z' }, + }, + + clues = { + -- Enhance this by adding descriptions for mapping groups + miniclue.gen_clues.builtin_completion(), + miniclue.gen_clues.g(), + miniclue.gen_clues.marks(), + miniclue.gen_clues.registers(), + miniclue.gen_clues.windows(), + miniclue.gen_clues.z(), + }, + }) EOF endif diff --git a/snippets/latex.json b/snippets/latex.json index 3d41618..922fb93 100644 --- a/snippets/latex.json +++ b/snippets/latex.json @@ -16,7 +16,7 @@ }, "inputtikz": { "prefix": "ITIKZ", - "body": "\\begin{figure}[${1:htbp}]\n\t\\centering\n\t\\inputtikz{${0:${TM_SELECTED_TEXT}}}\n\t\\caption{${2:}}\\label{${3: