aboutsummaryrefslogtreecommitdiff
path: root/lua/kickstart/plugins/mini.lua
diff options
context:
space:
mode:
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!