From 6713a0d01f5ea51da128a0891a1dc40b690d05b3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 29 Jun 2024 15:10:12 +0100 Subject: [PATCH] Re-enable global statusline with mini.statusline From the README file: ```lua -- Whether to set Vim's settings for statusline (make it always shown -- with 'laststatus' set to 2). -- To use global statusline, set this to `false` and 'laststatus' to 3. set_vim_settings = true, ``` --- lua/opdavies/options.lua | 2 +- plugin/mini.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/opdavies/options.lua b/lua/opdavies/options.lua index 8a24cb7..e36e0e8 100644 --- a/lua/opdavies/options.lua +++ b/lua/opdavies/options.lua @@ -13,6 +13,7 @@ local settings = { hidden = false, hlsearch = false, inccommand = "split", + laststatus = 3, linebreak = true, list = true, mouse = "", @@ -45,7 +46,6 @@ end vim.opt.backupdir:remove "." -- keep backups out of the current directory vim.opt.clipboard:append "unnamedplus" vim.opt.completeopt = { "menu", "menuone", "noinsert", "noselect" } -vim.opt.laststatus = 3 vim.opt.listchars:append { trail = "ยท", } diff --git a/plugin/mini.lua b/plugin/mini.lua index 99d3b7e..6c21746 100644 --- a/plugin/mini.lua +++ b/plugin/mini.lua @@ -16,6 +16,7 @@ require("mini.move").setup {} require("mini.operators").setup {} require("mini.statusline").setup { + set_vim_settings = false, use_icons = false, }