summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-03-04 14:16:50 +0100
committerGitHub <noreply@github.com>2024-03-04 08:16:50 -0500
commitc3127f1226df227e436a62105a1e33ea052f5e56 (patch)
treee106f2eb0dc3dc7fc05d6ee5783908809e13091f /init.lua
parentc9122e89e3c2e19cd784642a1d0cddae258d0672 (diff)
Change statusline location to LINE:COLUMN (#689)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 292ec07..16d3c26 100644
--- a/init.lua
+++ b/init.lua
@@ -761,11 +761,11 @@ require('lazy').setup {
statusline.setup()
-- You can configure 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
+ -- 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 ''
+ return '%2l:%-2v'
end
-- ... and there is more!