nvim: plugins: Drop nvim-web-devicons

This commit is contained in:
Sanchayan Maity 2021-12-13 13:14:06 +05:30
parent 47e8843882
commit 7a9333a9e1
2 changed files with 1 additions and 43 deletions

View file

@ -51,7 +51,6 @@ end
local config = {
options = {
icons_enabled = true,
component_separators = '',
section_separators = '',
theme = {
@ -61,7 +60,7 @@ local config = {
},
sections = {
-- these are to remove the defaults
lualine_a = {},
lualine_a = { window },
lualine_b = {},
lualine_y = {},
lualine_z = {},
@ -89,45 +88,6 @@ local function ins_right(component)
table.insert(config.sections.lualine_x, component)
end
ins_left {
function()
return ' '
end,
color = { fg = colors.blue },
padding = { left = 0, right = 1 },
}
ins_left {
function()
local mode_color = {
n = colors.red,
i = colors.green,
v = colors.blue,
[''] = colors.blue,
V = colors.blue,
c = colors.magenta,
no = colors.red,
s = colors.orange,
S = colors.orange,
[''] = colors.orange,
ic = colors.yellow,
R = colors.purple,
Rv = colors.purple,
cv = colors.red,
ce = colors.red,
r = colors.cyan,
rm = colors.cyan,
['r?'] = colors.cyan,
['!'] = colors.red,
t = colors.red,
}
vim.api.nvim_command('hi! LualineMode guifg=' .. mode_color[vim.fn.mode()] .. ' guibg=' .. colors.bg)
return ''
end,
color = 'LualineMode',
padding = { right = 1 },
}
ins_left {
'filename',
cond = conditions.buffer_not_empty,
@ -137,7 +97,6 @@ ins_left {
ins_left {
'FugitiveHead',
cond = conditions.check_git_workspace,
icon = '',
color = { fg = colors.orange, gui = 'bold' },
}

View file

@ -125,7 +125,6 @@ local init = function ()
use {
'nvim-lualine/lualine.nvim',
requires = {
'kyazdani42/nvim-web-devicons',
'arkav/lualine-lsp-progress'
}
}