move lua/colors to lua/ui

This commit is contained in:
krolyxon 2023-01-25 01:06:41 +05:30
parent 00fe3fcfe4
commit ad2c75248a
10 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
require ("core.options") require ("core.options")
require("core.utils").load_mappings() require("core.utils").load_mappings()
-- require("colors").core_setup() -- require("ui").setup_colorscheme()
-- add binaries installed by mason.nvim to path -- add binaries installed by mason.nvim to path
vim.env.PATH = vim.env.PATH .. ":" .. vim.fn.stdpath "data" .. "/mason/bin" vim.env.PATH = vim.env.PATH .. ":" .. vim.fn.stdpath "data" .. "/mason/bin"

View File

@ -4,7 +4,7 @@ if not present then
return return
end end
require("colors").load_highlight "cmp" -- require("ui").load_highlight "cmp"
vim.o.completeopt = "menu,menuone,noselect" vim.o.completeopt = "menu,menuone,noselect"

View File

@ -4,7 +4,7 @@ if not present then
return return
end end
require("colors").load_highlight "treesitter" -- require("ui").load_highlight "treesitter"
local options = { local options = {
ensure_installed = { ensure_installed = {

View File

@ -2,12 +2,12 @@ local M = {}
M.load_highlight = function(group) M.load_highlight = function(group)
-- if type(group) == "string" and group == "core" then -- if type(group) == "string" and group == "core" then
-- local syntax = require("colors.integrations.syntax") -- local syntax = require("ui.integrations.syntax")
-- local nvim = require("colors.integrations.nvim") -- local nvim = require("ui.integrations.nvim")
-- group = merge_tb("force", syntax, nvim) -- group = merge_tb("force", syntax, nvim)
-- end -- end
if type(group) == "string" then if type(group) == "string" then
group = require("colors.integrations." .. group) group = require("ui.integrations." .. group)
end end
for hl, col in pairs(group) do for hl, col in pairs(group) do
@ -15,11 +15,11 @@ M.load_highlight = function(group)
end end
end end
M.core_setup = function () M.setup_colorscheme = function ()
-- vim.cmd('hi clear') -- vim.cmd('hi clear')
require("colors.term_hl") require("ui.term_hl")
require("colors").load_highlight "syntax" require("ui").load_highlight "syntax"
require("colors").load_highlight "nvim" require("ui").load_highlight "nvim"
end end
return M return M

View File

@ -1,4 +1,4 @@
local theme = require("colors.kdark").colors local theme = require("ui.kdark").colors
return { return {
CmpItemKindConstant = { fg = theme.bright_red }, CmpItemKindConstant = { fg = theme.bright_red },

View File

@ -1,4 +1,4 @@
local theme = require("colors.kdark").colors local theme = require("ui.kdark").colors
return { return {
Comment = { fg = theme.bright_black }, Comment = { fg = theme.bright_black },

View File

@ -1,4 +1,4 @@
local theme = require("colors.kdark").colors local theme = require("ui.kdark").colors
return { return {
Boolean = { Boolean = {

View File

@ -1,4 +1,4 @@
local theme = require("colors.kdark").colors local theme = require("ui.kdark").colors
return { return {
TSAnnotation = { TSAnnotation = {

View File

@ -1,4 +1,4 @@
local colors = require("colors.kdark").colors local colors = require("ui.kdark").colors
vim.g.terminal_color_0 = "#" .. colors.black vim.g.terminal_color_0 = "#" .. colors.black
vim.g.terminal_color_1 = "#" .. colors.red vim.g.terminal_color_1 = "#" .. colors.red