其他分享
首页 > 其他分享> > 颜色界面——Colorschemes插件(四)

颜色界面——Colorschemes插件(四)

作者:互联网

创建plugin、colors目录

在colors中新建colorscheme.vim和catppcuccin.vim文件

在colorscheme.vim中加入

local colorscheme = "catppuccin"
	-- require "user.conf.github-nvim-theme"
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
	vim.notify("colorscheme " .. colorscheme .. " not found!")
	return
end

if colorscheme == "onedark" then
	require "user.conf.onedark"
end

在catppcuccin.vim中加入

local status_ok, catppuccin = pcall(require, "catppuccin")
if not status_ok then
	return
end

 

标签:status,插件,界面,..,colorscheme,vim,catppuccin,ok,Colorschemes
来源: https://www.cnblogs.com/dragonud/p/16247086.html