feat(nvim): embed filetype icon into silicon output
This commit is contained in:
parent
7119075c60
commit
b3c6b51fd2
@ -753,16 +753,22 @@ lazy.setup({
|
|||||||
{
|
{
|
||||||
"krivahtoo/silicon.nvim",
|
"krivahtoo/silicon.nvim",
|
||||||
build = "./install.sh build",
|
build = "./install.sh build",
|
||||||
|
event = "VeryLazy",
|
||||||
|
dependencies = {
|
||||||
|
"kyazdani42/nvim-web-devicons"
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("silicon").setup({
|
require("silicon").setup({
|
||||||
font = "Hack=20",
|
font = "FiraCode Nerd Font=20",
|
||||||
theme = "Monokai Extended",
|
theme = "Monokai Extended",
|
||||||
background = "#87F",
|
background = "#87F",
|
||||||
pad_vert = 60,
|
pad_vert = 60,
|
||||||
pad_horiz = 40,
|
pad_horiz = 40,
|
||||||
line_number = true,
|
line_number = true,
|
||||||
window_title = function()
|
window_title = function()
|
||||||
return vim.fn.fnamemodify(vim.fn.bufname(vim.fn.bufnr()), ":~:.")
|
local devicons = require("nvim-web-devicons")
|
||||||
|
local icon = devicons.get_icon_by_filetype('lua')
|
||||||
|
return icon .. ' ' .. vim.fn.fnamemodify(vim.fn.bufname(vim.fn.bufnr()), ":~:.")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user