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.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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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 },
|
||||||
|
|
@ -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 },
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
local theme = require("colors.kdark").colors
|
local theme = require("ui.kdark").colors
|
||||||
|
|
||||||
return {
|
return {
|
||||||
Boolean = {
|
Boolean = {
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
local theme = require("colors.kdark").colors
|
local theme = require("ui.kdark").colors
|
||||||
|
|
||||||
return {
|
return {
|
||||||
TSAnnotation = {
|
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_0 = "#" .. colors.black
|
||||||
vim.g.terminal_color_1 = "#" .. colors.red
|
vim.g.terminal_color_1 = "#" .. colors.red
|
||||||
Reference in New Issue