From a6d2749e1922f6ab66ae32f99818ec1f800a0918 Mon Sep 17 00:00:00 2001 From: Michael Beasley Date: Tue, 29 Oct 2024 16:07:16 -0500 Subject: [PATCH] swap statuslines --- init.lua | 22 +++++++++++----------- lua/custom/plugins/lualine.lua | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 lua/custom/plugins/lualine.lua diff --git a/init.lua b/init.lua index 5f4454c8..4f22269c 100644 --- a/init.lua +++ b/init.lua @@ -920,17 +920,17 @@ require('lazy').setup({ -- Simple and easy statusline. -- You could remove this setup call if you don't like it, -- and try some other statusline plugin - local statusline = require 'mini.statusline' - -- set use_icons to true if you have a Nerd Font - statusline.setup { use_icons = vim.g.have_nerd_font } - - -- You can configure sections in the statusline by overriding their - -- 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 '%2l:%-2v' - end + -- local statusline = require 'mini.statusline' + -- -- set use_icons to true if you have a Nerd Font + -- statusline.setup { use_icons = vim.g.have_nerd_font } + -- + -- -- You can configure sections in the statusline by overriding their + -- -- 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 '%2l:%-2v' + -- end -- ... and there is more! -- Check out: https://github.com/echasnovski/mini.nvim diff --git a/lua/custom/plugins/lualine.lua b/lua/custom/plugins/lualine.lua new file mode 100644 index 00000000..bb8f80ad --- /dev/null +++ b/lua/custom/plugins/lualine.lua @@ -0,0 +1,15 @@ +return { + -- Use lualine instead of mini.statusline + { + 'nvim-lualine/lualine.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + require('lualine').setup { + options = { + icons_enabled = true, + globalstatus = true, + }, + } + end, + }, +}