nvim: switch to nvim-web-devicons
it has colour symbols! 😻
This commit is contained in:
parent
7079e7e6b1
commit
5e621db427
@ -67,6 +67,8 @@ require('packer').startup(function(use)
|
||||
use { 'https://github.com/p00f/clangd_extensions.nvim' }
|
||||
|
||||
-- tools
|
||||
local nerdfont_installed = require('my.functions').nerdfont_installed()
|
||||
|
||||
use {
|
||||
'https://github.com/folke/which-key.nvim',
|
||||
config = function()
|
||||
@ -80,8 +82,8 @@ require('packer').startup(function(use)
|
||||
'https://github.com/nvim-lua/plenary.nvim',
|
||||
'https://github.com/nvim-treesitter/nvim-treesitter',
|
||||
{
|
||||
'https://github.com/ryanoasis/vim-devicons',
|
||||
opt = true
|
||||
'https://github.com/kyazdani42/nvim-web-devicons',
|
||||
cond = nerdfont_installed
|
||||
}
|
||||
},
|
||||
}
|
||||
@ -89,15 +91,15 @@ require('packer').startup(function(use)
|
||||
'https://github.com/kyazdani42/nvim-tree.lua',
|
||||
tag = '*',
|
||||
requires = {
|
||||
'https://github.com/ryanoasis/vim-devicons',
|
||||
opt = true
|
||||
'https://github.com/kyazdani42/nvim-web-devicons',
|
||||
cond = nerdfont_installed
|
||||
}
|
||||
}
|
||||
use {
|
||||
'https://github.com/nvim-lualine/lualine.nvim',
|
||||
requires = {
|
||||
'https://github.com/ryanoasis/vim-devicons',
|
||||
opt = true
|
||||
'https://github.com/kyazdani42/nvim-web-devicons',
|
||||
cond = nerdfont_installed
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,17 +64,16 @@ map('i', '<F9>', require("nvim-tree.api").tree.toggle, 'Open nvim-tree')
|
||||
vim.o.showmode = false
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
icons_enabled = nerdfont_installed,
|
||||
component_separators = {},
|
||||
section_separators = {},
|
||||
extensions = {}
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch',
|
||||
{ 'diagnostics', icons_enabled = nerdfont_installed } },
|
||||
lualine_b = { { 'branch', icons_enabled = true }, 'diagnostics' },
|
||||
lualine_c = { { 'filename', path = 1 } },
|
||||
lualine_x = { { 'filetype', icons_enabled = nerdfont_installed } },
|
||||
lualine_x = { 'filetype' },
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' }
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user