aboutsummaryrefslogtreecommitdiff
path: root/lua/kickstart/plugins/mini.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-03-01 11:09:32 +0100
committerDamjan 9000 <damjan.9000@gmail.com>2024-03-01 11:09:32 +0100
commitb650582c60755e3ade2866665f710f07e91022de (patch)
tree8a2a6950a3be0b67e8f4bb8fba6347382b6f1774 /lua/kickstart/plugins/mini.lua
parentd6d745da330e66c629f7874ba7e8fa37b1df9fbb (diff)
parent38828dcaf7c140902fedeaa75b017bf968400bb0 (diff)
Merge 'upstream/master' fixup style, lua lsp snippets
fixup: updated some style stuff feat: enable lua lsp snipppets
Diffstat (limited to 'lua/kickstart/plugins/mini.lua')
-rw-r--r--lua/kickstart/plugins/mini.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/lua/kickstart/plugins/mini.lua b/lua/kickstart/plugins/mini.lua
index 87a312a..2467207 100644
--- a/lua/kickstart/plugins/mini.lua
+++ b/lua/kickstart/plugins/mini.lua
@@ -20,9 +20,15 @@ return {
-- Simple and easy statusline.
-- You could remove this setup call if you don't like it,
-- and try some other statusline plugin
- require('mini.statusline').setup()
- MiniStatusline.section_location = function()
- return '%2l:%-2v'
+ local statusline = require 'mini.statusline'
+ statusline.setup()
+
+ -- You can confiure sections in the statusline by overriding their
+ -- default behavior. For example, here we disable the section for
+ -- cursor information because line numbers are already enabled
+ ---@diagnostic disable-next-line: duplicate-set-field
+ statusline.section_location = function()
+ return ''
end
-- ... and there is more!