Add nvim config
This commit is contained in:
parent
b227b7cb19
commit
25a48b5694
48 changed files with 1550 additions and 2 deletions
38
home/.config/nvim/lua/plugins/lualine.lua
Normal file
38
home/.config/nvim/lua/plugins/lualine.lua
Normal file
|
@ -0,0 +1,38 @@
|
|||
local noice_mode = require("noice").api.statusline.mode
|
||||
-- Statusline
|
||||
--- @type LazyPluginSpec
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||
opts = {
|
||||
sections = {
|
||||
lualine_x = {
|
||||
"encoding",
|
||||
"fileformat",
|
||||
"filetype",
|
||||
{
|
||||
noice_mode.get,
|
||||
cond = noice_mode.has,
|
||||
color = { fg = "#ff9e64" },
|
||||
},
|
||||
},
|
||||
lualine_z = {
|
||||
{
|
||||
"selectioncount",
|
||||
cond = function()
|
||||
local mode = vim.fn.mode()
|
||||
return mode == "v" or mode == "V" or mode == "\22"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"location",
|
||||
cond = function()
|
||||
local mode = vim.fn.mode()
|
||||
return mode ~= "v" and mode ~= "V" and mode ~= "\22"
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue