From ae2297dfbb2183524a8dc48636f14676ee11135c Mon Sep 17 00:00:00 2001 From: Marco Dalla Stella Date: Fri, 27 Feb 2026 10:28:59 +0100 Subject: [PATCH] Cleanup useless plugins --- plugin/30_mini.lua | 91 ---------------------------------------------- 1 file changed, 91 deletions(-) diff --git a/plugin/30_mini.lua b/plugin/30_mini.lua index c537188..51804db 100644 --- a/plugin/30_mini.lua +++ b/plugin/30_mini.lua @@ -88,28 +88,6 @@ end) -- - `:h MiniNotify.config` for some of common configuration examples. now(function() require('mini.notify').setup() end) --- Session management. A thin wrapper around `:h mksession` that consistently --- manages session files. Example usage: --- - `sn` - start new session --- - `sr` - read previously started session --- - `sd` - delete previously started session -now(function() require('mini.sessions').setup() end) - --- Start screen. This is what is shown when you open Neovim like `nvim`. --- Example usage: --- - Type prefix keys to limit available candidates --- - Navigate down/up with `` and `` --- - Press `` to select an entry --- --- See also: --- - `:h MiniStarter-example-config` - non-default config examples --- - `:h MiniStarter-lifecycle` - how to work with Starter buffer -now( - function() - require('mini.starter').setup({ header = "Remember why you're doing it" }) - end -) - -- Statusline. Sets `:h 'statusline'` to show more info in a line below window. -- See also: -- - `:h MiniStatusline-example-content` - example of default content. Use it to @@ -397,75 +375,6 @@ end) -- one of `f` mappings defined in 'plugin/20_keymaps.lua' later(function() require('mini.pick').setup() end) --- Manage and expand snippets (templates for a frequently used text). --- Typical workflow is to type snippet's (configurable) prefix and expand it --- into a snippet session. --- --- How to manage snippets: --- - 'mini.snippets' itself doesn't come with preconfigured snippets. Instead there --- is a flexible system of how snippets are prepared before expanding. --- They can come from pre-defined path on disk, 'snippets/' directories inside --- config or plugins, defined inside `setup()` call directly. --- - This config, however, does come with snippet configuration: --- - 'snippets/global.json' is a file with global snippets that will be --- available in any buffer --- - 'after/snippets/lua.json' defines personal snippets for Lua language --- - 'friendly-snippets' plugin configured in 'plugin/40_plugins.lua' provides --- a collection of language snippets --- --- How to expand a snippet in Insert mode: --- - If you know snippet's prefix, type it as a word and press ``. Snippet's --- body should be inserted instead of the prefix. --- - If you don't remember snippet's prefix, type only part of it (or none at all) --- and press ``. It should show picker with all snippets that have prefixes --- matching typed characters (or all snippets if none was typed). --- Choose one and its body should be inserted instead of previously typed text. --- --- How to navigate during snippet session: --- - Snippets can contain tabstops - places for user to interactively adjust text. --- Each tabstop is highlighted depending on session progression - whether tabstop --- is current, was or was not visited. If tabstop doesn't yet have text, it is --- visualized with special "ghost" inline text: • and ∎ by default. --- - Type necessary text at current tabstop and navigate to next/previous one --- by pressing `` / ``. --- - Repeat previous step until you reach special final tabstop, usually denoted --- by ∎ symbol. If you spotted a mistake in an earlier tabstop, navigate to it --- and return back to the final tabstop. --- - To end a snippet session when at final tabstop, keep typing or go into --- Normal mode. To force end snippet session, press ``. --- --- See also: --- - `:h MiniSnippets-overview` - overview of how module works --- - `:h MiniSnippets-examples` - examples of common setups --- - `:h MiniSnippets-session` - details about snippet session --- - `:h MiniSnippets.gen_loader` - list of available loaders --- later(function() --- -- Define language patterns to work better with 'friendly-snippets' --- local latex_patterns = { 'latex/**/*.json', '**/latex.json' } --- local lang_patterns = { --- tex = latex_patterns, --- plaintex = latex_patterns, --- -- Recognize special injected language of markdown tree-sitter parser --- markdown_inline = { 'markdown.json' }, --- } --- --- local snippets = require('mini.snippets') --- local config_path = vim.fn.stdpath('config') --- snippets.setup({ --- snippets = { --- -- Always load 'snippets/global.json' from config directory --- snippets.gen_loader.from_file(config_path .. '/snippets/global.json'), --- -- Load from 'snippets/' directory of plugins, like 'friendly-snippets' --- snippets.gen_loader.from_lang({ lang_patterns = lang_patterns }), --- }, --- }) --- --- -- By default snippets available at cursor are not shown as candidates in --- -- 'mini.completion' menu. This requires a dedicated in-process LSP server --- -- that will provide them. To have that, uncomment next line (use `gcc`). --- -- MiniSnippets.start_lsp_server() --- end) - -- Surround actions: add/delete/replace/find/highlight. Working with surroundings -- is surprisingly common: surround word with quotes, replace `)` with `]`, etc. -- This module comes with many built-in surroundings, each identified by a single