Neovim: Fix showing filetype etc in lualine_x, don't show mode there
This commit is contained in:
parent
12a2e960af
commit
bdeffb8b7f
2 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
local noice_statusline = require("noice").api.statusline.mode
|
||||
local noice_mode = require("noice").api.statusline.mode
|
||||
-- Statusline
|
||||
--- @type LazyPluginSpec
|
||||
return {
|
||||
|
@ -7,9 +7,12 @@ return {
|
|||
opts = {
|
||||
sections = {
|
||||
lualine_x = {
|
||||
"encoding",
|
||||
"fileformat",
|
||||
"filetype",
|
||||
{
|
||||
noice_statusline.get,
|
||||
cond = noice_statusline.has,
|
||||
noice_mode.get,
|
||||
cond = noice_mode.has,
|
||||
color = { fg = "#ff9e64" },
|
||||
},
|
||||
},
|
||||
|
|
|
@ -49,3 +49,5 @@ o.softtabstop = -1
|
|||
o.expandtab = true
|
||||
o.shiftwidth = 4
|
||||
o.smartindent = true
|
||||
|
||||
o.showmode = false
|
||||
|
|
Loading…
Reference in a new issue