瀏覽代碼

Change statusline location to LINE:COLUMN (#689)

Damjan 9000 2 年之前
父節點
當前提交
c3127f1226
共有 1 個文件被更改,包括 3 次插入 和 3 次删除
  1. 3 3
      init.lua

+ 3 - 3
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!