[nvim] add some icons for tabline
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
-- LSP with `:LSPInstall`, log with `:LSPInfo`
|
-- LSP with `:LSPInstall`, log with `:LSPInfo`
|
||||||
--
|
--
|
||||||
-- Rollback possible with packer.nvim
|
-- Rollback possible with packer.nvim
|
||||||
-- `:PackerSnapshot <DATE><MONTH DIGIT><YEAR>`
|
-- Always create a snapshot BEFORE upgrading, so we can rollback if we find sth
|
||||||
|
-- `:PackerSnapshot <DATE>-<MONTH DIGIT>-<YEAR>`
|
||||||
-- Location: ~/.cache/nvim/packer.nvim
|
-- Location: ~/.cache/nvim/packer.nvim
|
||||||
|
|
||||||
-- This must be loaded first
|
-- This must be loaded first
|
||||||
|
|||||||
@@ -4,33 +4,33 @@ require 'nvim-navic'.setup({})
|
|||||||
-- used as mode-module
|
-- used as mode-module
|
||||||
-- https://github.com/nvim-lualine/lualine.nvim/issues/614
|
-- https://github.com/nvim-lualine/lualine.nvim/issues/614
|
||||||
local mode_map = {
|
local mode_map = {
|
||||||
['n'] = 'N',
|
['n'] = '',
|
||||||
['no'] = 'O-P',
|
['no'] = 'O-P',
|
||||||
['nov'] = 'O-P',
|
['nov'] = 'O-P',
|
||||||
['noV'] = 'O-P',
|
['noV'] = 'O-P',
|
||||||
['no'] = 'O-P',
|
['no'] = 'O-P',
|
||||||
['niI'] = 'N',
|
['niI'] = '',
|
||||||
['niR'] = 'N',
|
['niR'] = '',
|
||||||
['niV'] = 'N',
|
['niV'] = '',
|
||||||
['nt'] = 'N',
|
['nt'] = '',
|
||||||
['v'] = 'V',
|
['v'] = '',
|
||||||
['vs'] = 'V',
|
['vs'] = '',
|
||||||
['V'] = 'VL',
|
['V'] = ' ',
|
||||||
['Vs'] = 'VL',
|
['Vs'] = ' ',
|
||||||
[''] = 'VB',
|
[''] = ' ',
|
||||||
['s'] = 'VB',
|
['s'] = ' ',
|
||||||
['s'] = 'S',
|
['s'] = 'S',
|
||||||
['S'] = 'SL',
|
['S'] = 'SL',
|
||||||
['i'] = 'I',
|
['i'] = '',
|
||||||
['ic'] = 'I',
|
['ic'] = '',
|
||||||
['ix'] = 'I',
|
['ix'] = '',
|
||||||
['R'] = 'R',
|
['R'] = '菱',
|
||||||
['Rc'] = 'R',
|
['Rc'] = '菱',
|
||||||
['Rx'] = 'R',
|
['Rx'] = '菱',
|
||||||
['Rv'] = 'VR',
|
['Rv'] = 'VR',
|
||||||
['Rvc'] = 'VR',
|
['Rvc'] = 'VR',
|
||||||
['Rvx'] = 'VR',
|
['Rvx'] = 'VR',
|
||||||
['c'] = 'C',
|
['c'] = '',
|
||||||
['cv'] = 'EX',
|
['cv'] = 'EX',
|
||||||
['ce'] = 'EX',
|
['ce'] = 'EX',
|
||||||
['r'] = 'R',
|
['r'] = 'R',
|
||||||
@@ -48,10 +48,9 @@ require('lualine').setup({
|
|||||||
},
|
},
|
||||||
tabline = {
|
tabline = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
function()
|
||||||
'tabs',
|
return mode_map[vim.api.nvim_get_mode().mode] or "__"
|
||||||
mode = 2
|
end
|
||||||
},
|
|
||||||
},
|
},
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
require('nvim-navic').get_location
|
require('nvim-navic').get_location
|
||||||
|
|||||||
Reference in New Issue
Block a user