move lua/colors to lua/ui
This commit is contained in:
parent
00fe3fcfe4
commit
ad2c75248a
2
init.lua
2
init.lua
|
|
@ -1,6 +1,6 @@
|
|||
require ("core.options")
|
||||
require("core.utils").load_mappings()
|
||||
-- require("colors").core_setup()
|
||||
-- require("ui").setup_colorscheme()
|
||||
|
||||
-- add binaries installed by mason.nvim to path
|
||||
vim.env.PATH = vim.env.PATH .. ":" .. vim.fn.stdpath "data" .. "/mason/bin"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ if not present then
|
|||
return
|
||||
end
|
||||
|
||||
require("colors").load_highlight "cmp"
|
||||
-- require("ui").load_highlight "cmp"
|
||||
|
||||
vim.o.completeopt = "menu,menuone,noselect"
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ if not present then
|
|||
return
|
||||
end
|
||||
|
||||
require("colors").load_highlight "treesitter"
|
||||
-- require("ui").load_highlight "treesitter"
|
||||
|
||||
local options = {
|
||||
ensure_installed = {
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ local M = {}
|
|||
|
||||
M.load_highlight = function(group)
|
||||
-- if type(group) == "string" and group == "core" then
|
||||
-- local syntax = require("colors.integrations.syntax")
|
||||
-- local nvim = require("colors.integrations.nvim")
|
||||
-- local syntax = require("ui.integrations.syntax")
|
||||
-- local nvim = require("ui.integrations.nvim")
|
||||
-- group = merge_tb("force", syntax, nvim)
|
||||
-- end
|
||||
if type(group) == "string" then
|
||||
group = require("colors.integrations." .. group)
|
||||
group = require("ui.integrations." .. group)
|
||||
end
|
||||
|
||||
for hl, col in pairs(group) do
|
||||
|
|
@ -15,11 +15,11 @@ M.load_highlight = function(group)
|
|||
end
|
||||
end
|
||||
|
||||
M.core_setup = function ()
|
||||
M.setup_colorscheme = function ()
|
||||
-- vim.cmd('hi clear')
|
||||
require("colors.term_hl")
|
||||
require("colors").load_highlight "syntax"
|
||||
require("colors").load_highlight "nvim"
|
||||
require("ui.term_hl")
|
||||
require("ui").load_highlight "syntax"
|
||||
require("ui").load_highlight "nvim"
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
local theme = require("colors.kdark").colors
|
||||
local theme = require("ui.kdark").colors
|
||||
|
||||
return {
|
||||
CmpItemKindConstant = { fg = theme.bright_red },
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
local theme = require("colors.kdark").colors
|
||||
local theme = require("ui.kdark").colors
|
||||
|
||||
return {
|
||||
Comment = { fg = theme.bright_black },
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
local theme = require("colors.kdark").colors
|
||||
local theme = require("ui.kdark").colors
|
||||
|
||||
return {
|
||||
Boolean = {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
local theme = require("colors.kdark").colors
|
||||
local theme = require("ui.kdark").colors
|
||||
|
||||
return {
|
||||
TSAnnotation = {
|
||||
|
|
@ -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_1 = "#" .. colors.red
|
||||
Reference in New Issue