[nvim] add some icons for tabline

This commit is contained in:
Marco Thomas
2022-10-22 17:36:47 +02:00
parent 9f9f2c5ca2
commit 62c1e8192b
2 changed files with 23 additions and 23 deletions

View File

@@ -3,7 +3,8 @@
-- LSP with `:LSPInstall`, log with `:LSPInfo`
--
-- 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
-- This must be loaded first

View File

@@ -4,33 +4,33 @@ require 'nvim-navic'.setup({})
-- used as mode-module
-- https://github.com/nvim-lualine/lualine.nvim/issues/614
local mode_map = {
['n'] = 'N',
['n'] = '',
['no'] = 'O-P',
['nov'] = 'O-P',
['noV'] = 'O-P',
['no'] = 'O-P',
['niI'] = 'N',
['niR'] = 'N',
['niV'] = 'N',
['nt'] = 'N',
['v'] = 'V',
['vs'] = 'V',
['V'] = 'VL',
['Vs'] = 'VL',
[''] = 'VB',
['s'] = 'VB',
['niI'] = '',
['niR'] = '',
['niV'] = '',
['nt'] = '',
['v'] = '',
['vs'] = '',
['V'] = ' ',
['Vs'] = ' ',
[''] = ' ',
['s'] = ' ',
['s'] = 'S',
['S'] = 'SL',
['i'] = 'I',
['ic'] = 'I',
['ix'] = 'I',
['R'] = 'R',
['Rc'] = 'R',
['Rx'] = 'R',
['i'] = '',
['ic'] = '',
['ix'] = '',
['R'] = '',
['Rc'] = '',
['Rx'] = '',
['Rv'] = 'VR',
['Rvc'] = 'VR',
['Rvx'] = 'VR',
['c'] = 'C',
['c'] = '',
['cv'] = 'EX',
['ce'] = 'EX',
['r'] = 'R',
@@ -48,10 +48,9 @@ require('lualine').setup({
},
tabline = {
lualine_a = {
{
'tabs',
mode = 2
},
function()
return mode_map[vim.api.nvim_get_mode().mode] or "__"
end
},
lualine_b = {
require('nvim-navic').get_location