swap statuslines
This commit is contained in:
parent
0532b540ca
commit
a6d2749e19
22
init.lua
22
init.lua
|
@ -920,17 +920,17 @@ require('lazy').setup({
|
||||||
-- Simple and easy statusline.
|
-- Simple and easy statusline.
|
||||||
-- You could remove this setup call if you don't like it,
|
-- You could remove this setup call if you don't like it,
|
||||||
-- and try some other statusline plugin
|
-- and try some other statusline plugin
|
||||||
local statusline = require 'mini.statusline'
|
-- local statusline = require 'mini.statusline'
|
||||||
-- set use_icons to true if you have a Nerd Font
|
-- -- set use_icons to true if you have a Nerd Font
|
||||||
statusline.setup { use_icons = vim.g.have_nerd_font }
|
-- statusline.setup { use_icons = vim.g.have_nerd_font }
|
||||||
|
--
|
||||||
-- You can configure sections in the statusline by overriding their
|
-- -- You can configure sections in the statusline by overriding their
|
||||||
-- default behavior. For example, here we set the section for
|
-- -- default behavior. For example, here we set the section for
|
||||||
-- cursor location to LINE:COLUMN
|
-- -- cursor location to LINE:COLUMN
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
-- ---@diagnostic disable-next-line: duplicate-set-field
|
||||||
statusline.section_location = function()
|
-- statusline.section_location = function()
|
||||||
return '%2l:%-2v'
|
-- return '%2l:%-2v'
|
||||||
end
|
-- end
|
||||||
|
|
||||||
-- ... and there is more!
|
-- ... and there is more!
|
||||||
-- Check out: https://github.com/echasnovski/mini.nvim
|
-- Check out: https://github.com/echasnovski/mini.nvim
|
||||||
|
|
|
@ -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,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue