aboutsummaryrefslogtreecommitdiffstats
path: root/lua/simenandre/plugins/mini.lua
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2024-12-27 15:33:47 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2024-12-27 15:33:47 +0100
commit62df997a42e292c22ee4ce6a5414735cd2e37699 (patch)
treef677b40b7d9b070f5df1f10701f9f8c0af06085d /lua/simenandre/plugins/mini.lua
parent9155cf33ed7533122666e193dad3f76e8a2b890f (diff)
downloadconfig.nvim-62df997a42e292c22ee4ce6a5414735cd2e37699.tar.gz
config.nvim-62df997a42e292c22ee4ce6a5414735cd2e37699.zip
split plugins into each file
Diffstat (limited to 'lua/simenandre/plugins/mini.lua')
-rw-r--r--lua/simenandre/plugins/mini.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/lua/simenandre/plugins/mini.lua b/lua/simenandre/plugins/mini.lua
new file mode 100644
index 0000000..de7156b
--- /dev/null
+++ b/lua/simenandre/plugins/mini.lua
@@ -0,0 +1,39 @@
+return {
+ { -- Collection of various small independent plugins/modules
+ "echasnovski/mini.nvim",
+ config = function()
+ -- Better Around/Inside textobjects
+ --
+ -- Examples:
+ -- - va) - [V]isually select [A]round [)]paren
+ -- - yinq - [Y]ank [I]nside [N]ext [Q]uote
+ -- - ci' - [C]hange [I]nside [']quote
+ require("mini.ai").setup({ n_lines = 500 })
+
+ -- Add/delete/replace surroundings (brackets, quotes, etc.)
+ --
+ -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
+ -- - sd' - [S]urround [D]elete [']quotes
+ -- - sr)' - [S]urround [R]eplace [)] [']
+ require("mini.surround").setup()
+
+ -- Simple and easy statusline.
+ -- You could remove this setup call if you don't like it,
+ -- and try some other statusline plugin
+ local statusline = require("mini.statusline")
+ -- set use_icons to true if you have a Nerd Font
+ statusline.setup({ use_icons = vim.g.have_nerd_font })
+
+ -- You can configure sections in the statusline by overriding their
+ -- default behavior. For example, here we set the section for
+ -- cursor location to LINE:COLUMN
+ ---@diagnostic disable-next-line: duplicate-set-field
+ statusline.section_location = function()
+ return "%2l:%-2v"
+ end
+
+ -- ... and there is more!
+ -- Check out: https://github.com/echasnovski/mini.nvim
+ end,
+ },
+}