当前位置:网站首页>Configuring vim(12) from scratch - theme configuration
Configuring vim(12) from scratch - theme configuration
2022-08-11 11:00:00 【aluluka】
In our further enhancementvim的功能之前,我们先为vimPrepare a beautiful theme,After all, programming with an ugly, primitive interface is somewhat of a grind.Facing the ugly interface for a long time will more or less produce depression.Below are some of the theme plugins that I recommend
tokyonight
官方仓库
在使用 packer
It can be used as a plugin manager
use 'folke/tokyonight.nvim'
来安装该插件
我们在 init.luaAdd the code to enable the theme in
vim.cmd[[colorscheme tokyonight]]
我们发现 It's gotten a little better now
in order to configure the theme,我们在 luaCreate a new one in the directory plugin-config
目录,A configuration file dedicated to placing various plugins.For example config for this theme should be placed in lua/plugin-config/tokyonight.lua
中.我们在 init.lua
中引用它
require("plugin-config/tokyonight")
我们在 tokyonight
Put the following configuration in
-- Configure theme color mode as storm
vim.g.tokyonight_style = "storm"
-- 允许neovimUse this theme color for the terminal in
vim.g.tokyonight_terminal_colors = true
-- Use italics for comments
vim.g.tokyonight_italic_comments = true
The final effect is roughly as shown
vscode
Here's another theme that I like more——vscode.nvim
这是一个使用lua实现的vscode的配色主题,Both dark and light modes are supported.在 packer
的配置中,We can add the following code
use 'Mofiqul/vscode.nvim'
同样的可以使用 vim.cmd[[colorscheme vscode]]
to enable the theme
我们可以在 plugin-config
中创建一个 vscode.lua
file to configure the theme
-- 使用 dark 主题 1 vim.o.background = 'dark'
local c = require('vscode.colors')
require('vscode').setup({
-- Transparent backgrounds are allowed
transparent = true,
-- Use italics for comments
italic_comments = true,
-- 禁止使用 nvim-tree 背景色
disable_nvimtree_bg = true,
-- Override the color of some elements
color_overrides = {
vscLineNumber = '#FFFFFF',
},
})
Finally we also need to be in init.lua
中加载它
require('plugin-config/vscode')
最后的效果如下所示
I prefer it by comparison tokyonight
主题,If you have a favorite theme or color scheme, you can also give it in the comment area
边栏推荐
猜你喜欢
数据库导出的csv文件纯数字被转为科学计数法
【翻译】Drafting and Revision: Laplacian Pyramid Network for Fast High-Quality Artistic Style Transfer
C# 调用高德地图API获取经纬度以及定位【万字详解附完整代码】
PerfView project (first) : how to find hot spots function
Latex引用图片 发现 显示的图片标号不对
爆料!前华为微服务专家纯手打500页落地架构实战笔记,已开源
运动健康服务场景事件订阅,让应用推送“更懂用户”
LeetCode 剑指 Offer 35. 复杂链表的复制
本地开发好的 SAP UI5 应用部署到 ABAP 服务器时,中文字符变成乱码的原因分析和解决方案
那些不用写代码也能做游戏的工具
随机推荐
『独家』互联网 BAT 大厂 Android高级工程师面试题:174道题目让你做到面试无忧
数据库导出的csv文件纯数字被转为科学计数法
小目标绝技 | 用最简单的方式完成Yolov5的小目标检测升级!
【综合练习12】实现静态网页的相关功能
安装nodejs
巧用自定义函数,文本控件秒变高速缓存
【学习笔记】尚未用过的图论知识
Database indexes and their underlying data structures
当科学家决定搞点“花里胡哨”的东西
Use Function Compute to package and download OSS files [Encounter Pit Collection]
[Ext JS]11.14 SimXhr.js?_dc=1659315492151:65 Uncaught TypeError问题分析与解决
SAP Product Enhancement Technology Review
B端产品需求分析与优先级判断
What areas of the deep neural network are related to the human brain neural network?
为什么有些人不喜欢出身底层的人?
阿里云ssl证书申请,宝塔ssl证书部署
6.1 总线的概念和结构形态
神经网络可视化有3D版本了,美到沦陷!(已开源)
SDUT数据库 SQL语句练习(MySQL)
a-upload上传图片