Skip to content

Commit dbd48e2

Browse files
authored
Change statusline location to LINE:COLUMN (nvim-lua#689)
1 parent bce0a02 commit dbd48e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,11 +761,11 @@ require('lazy').setup {
761761
statusline.setup()
762762

763763
-- You can configure sections in the statusline by overriding their
764-
-- default behavior. For example, here we disable the section for
765-
-- cursor information because line numbers are already enabled
764+
-- default behavior. For example, here we set the section for
765+
-- cursor location to LINE:COLUMN
766766
---@diagnostic disable-next-line: duplicate-set-field
767767
statusline.section_location = function()
768-
return ''
768+
return '%2l:%-2v'
769769
end
770770

771771
-- ... and there is more!

0 commit comments

Comments
 (0)