change: vim.g.pcode_icon to pcode.icons

This commit is contained in:
Pojok Code 2024-07-09 17:09:04 +07:00
parent 624d3aceb6
commit 1aa86bfa2d
17 changed files with 30 additions and 268 deletions

View file

@ -14,5 +14,5 @@ end
-- if onsave then
-- require("user.format_onsave")
-- end
vim.g.pcode_icons = require("user.icons")
pcode.icons = require("user.icons")
return {}

View file

@ -26,7 +26,7 @@ return {
"MasonLog",
},
opts = function()
local icons = vim.g.pcode_icons.ui
local icons = pcode.icons.ui
return {
ui = {
-- border = "none",

View file

@ -8,7 +8,7 @@ return {
return
end
local icons = vim.g.pcode_icons
local icons = pcode.icons
local use_icons = true
-- get folder name from current directory

View file

@ -1,4 +1,4 @@
local icons = vim.g.pcode_icons
local icons = pcode.icons
return {
"lewis6991/gitsigns.nvim",
lazy = true,

View file

@ -1,4 +1,4 @@
local icons = vim.g.pcode_icons
local icons = pcode.icons
if pcode.indentscope and true or false then
return {
"echasnovski/mini.indentscope",

View file

@ -1,4 +1,4 @@
local icons = vim.g.pcode_icons
local icons = pcode.icons
local set_view = {}
if pcode.nvimtree_isfloat == 1 then
set_view = require("user.utils.nvimtree").float

View file

@ -8,7 +8,7 @@ function TABLE_CONTAINS(tbl, x)
return found
end
local icons = vim.g.pcode_icons.folding
local icons = pcode.icons.folding
local M = {}

View file

@ -6,7 +6,7 @@ if pcode.columnline then
event = "BufRead",
opts = {},
config = function()
local icons = vim.g.pcode_icons
local icons = pcode.icons
require("virt-column").overwrite({
exclude = {
filetypes = { "help", "text", "markdown" },

View file

@ -4,7 +4,7 @@ return {
keys = { "<leader>", '"', "'", "`", "c", "v" },
event = "VeryLazy",
opts = function()
local icons = vim.g.pcode_icons
local icons = pcode.icons
return {
plugins = {
marks = false, -- shows a list of your marks on ' and `