mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
add: master icon
This commit is contained in:
parent
e328116fbd
commit
3afde9ce70
7 changed files with 29 additions and 15 deletions
|
@ -5,6 +5,8 @@ if not vim.loop.fs_stat(lazypath) then
|
|||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable",
|
||||
lazypath })
|
||||
end
|
||||
|
||||
local icons = require("user.icons").ui
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
@ -24,10 +26,10 @@ require("lazy").setup({
|
|||
throttle = 40,
|
||||
custom_keys = { ["<localleader>l"] = false },
|
||||
icons = {
|
||||
ft = "",
|
||||
lazy = " ",
|
||||
loaded = "",
|
||||
not_loaded = "",
|
||||
ft = icons.ft,
|
||||
lazy = icons.Bell .. " ",
|
||||
loaded = icons.CheckCircle,
|
||||
not_loaded = icons.not_loaded,
|
||||
},
|
||||
},
|
||||
change_detection = { enabled = false, notify = false },
|
||||
|
|
|
@ -13,7 +13,7 @@ return {
|
|||
-- get folder name from current directory
|
||||
local _get_folder_name = function()
|
||||
local str = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
|
||||
return " " .. str:lower():gsub("^%l", string.upper) .. " "
|
||||
return " " .. icons.ui.ProjekFolder .. " " .. str:lower():gsub("^%l", string.upper) .. " "
|
||||
end
|
||||
|
||||
local function diagnostics_indicator(num, _, diagnostics, _)
|
||||
|
@ -53,7 +53,7 @@ return {
|
|||
middle_mouse_command = nil,
|
||||
|
||||
indicator_icon = nil,
|
||||
indicator = { style = "icon", icon = "▎" },
|
||||
indicator = { style = "icon", icon = icons.ui.BoldLineLeft },
|
||||
buffer_close_icon = icons.ui.Close,
|
||||
modified_icon = icons.ui.Circle,
|
||||
close_icon = icons.ui.BoldClose,
|
||||
|
|
|
@ -131,9 +131,9 @@ return {
|
|||
|
||||
local get_branch = function()
|
||||
if vim.b.gitsigns_head ~= nil then
|
||||
return " " .. vim.b.gitsigns_head
|
||||
return icons.git.Branch2 .. " " .. vim.b.gitsigns_head
|
||||
else
|
||||
return "" .. vim.fn.fnamemodify("", ":t")
|
||||
return icons.git.Branch2 .. vim.fn.fnamemodify("", ":t")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ local cmprg = false
|
|||
local cmpcalc = false
|
||||
local cmptag = false
|
||||
local lspghost_text = false
|
||||
local icons = require("user.icons").ui
|
||||
local data_exists, custom_cmp = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
cmprg = custom_cmp.cmprg
|
||||
|
@ -104,12 +105,12 @@ return {
|
|||
-- documentation = cmp.config.window.bordered(),
|
||||
-- remove border window from cmp
|
||||
completion = {
|
||||
border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
border = icons.Border,
|
||||
winhighlight = "Normal:bg,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
|
||||
scrollbar = true,
|
||||
},
|
||||
documentation = {
|
||||
border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
border = icons.Border,
|
||||
winhighlight = "Normal:bg,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
|
||||
scrollbar = true,
|
||||
},
|
||||
|
|
|
@ -49,7 +49,7 @@ bufferline.setup({
|
|||
middle_mouse_command = nil,
|
||||
|
||||
indicator_icon = nil,
|
||||
indicator = { style = "icon", icon = "▎" },
|
||||
indicator = { style = "icon", icon = icons.ui.BoldLineLeft },
|
||||
buffer_close_icon = icons.ui.Close,
|
||||
modified_icon = icons.ui.Circle,
|
||||
close_icon = icons.ui.BoldClose,
|
||||
|
|
|
@ -51,6 +51,7 @@ return {
|
|||
Repo = "",
|
||||
Octoface = "",
|
||||
Branch = "",
|
||||
Branch2 = "",
|
||||
},
|
||||
ui = {
|
||||
ArrowCircleDown = "",
|
||||
|
@ -133,6 +134,14 @@ return {
|
|||
TriangleShortArrowRight = "",
|
||||
TriangleShortArrowUp = "",
|
||||
Neovim = "",
|
||||
BlankCircle = " ",
|
||||
CheckCircle = " ",
|
||||
DotCircle = " ",
|
||||
Border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
ProjekFolder = "",
|
||||
Bell = "",
|
||||
ft = "",
|
||||
not_loaded = "",
|
||||
},
|
||||
diagnostics = {
|
||||
BoldError = "",
|
||||
|
|
|
@ -26,17 +26,19 @@ if data_ok then
|
|||
end
|
||||
end
|
||||
|
||||
local icons = require("user.icons").ui
|
||||
|
||||
local settings = {
|
||||
ui = {
|
||||
-- border = "none",
|
||||
border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
border = icons.Border,
|
||||
icons = {
|
||||
-- package_installed = "◍",
|
||||
-- package_pending = "◍",
|
||||
-- package_uninstalled = "◍",
|
||||
package_pending = " ",
|
||||
package_installed = " ",
|
||||
package_uninstalled = " ",
|
||||
package_pending = icons.DotCircle,
|
||||
package_installed = icons.CheckCircle,
|
||||
package_uninstalled = icons.BlankCircle,
|
||||
},
|
||||
keymaps = {
|
||||
-- Keymap to expand a server in the UI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue