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