当前位置:网站首页>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
边栏推荐
- 当科学家决定搞点“花里胡哨”的东西
- 【翻译】Drafting and Revision: Laplacian Pyramid Network for Fast High-Quality Artistic Style Transfer
- a-upload上传图片
- form-making notes on climbing pits (jeecg project replaces form designer)
- logstash/filebeat only receives data from the most recent period
- Install nodejs
- chrome无痕浏览模式中使用插件
- 【Ackerman Motion Control】
- MySQL表sql语句增删查改_修改_删除
- 杰理AC632N蓝牙芯片iokey使用解析(通用MCU版)
猜你喜欢

安装nodejs

chrome is set to dark mode (including the entire webpage)

chrome设置为深色模式(包括整个网页)

「开源推荐」一个通用的后台管理系统

SAP Product Enhancement Technology Review

数据库导出的csv文件纯数字被转为科学计数法

Cholesterol-PEG-FITC,Fluorescein-PEG-CLS,胆固醇-聚乙二醇-荧光素水溶性

The ceiling-level microservice boss summed up this 451-page note to tell you that microservices should be learned this way

rem如何使用

中小企业如何实施MES管理系统
随机推荐
Latex引用图片 发现 显示的图片标号不对
安装nodejs
爆料!前华为微服务专家纯手打500页落地架构实战笔记,已开源
如何在游戏中实现一场下雨效果
fetch请求设置请求头错误导致无法跨域
servlet——servlet执行流程 | servlet关系视图
【学习笔记】一般图最大匹配
dreamweaver网页设计作业制作 学生个人网页猫眼电影 WEB静态网页作业模板 大学生个人主页博客网页代码 dw个人网页作
Are there any foreign application cases for domestic databases?
5. 内部类
Database indexes and their underlying data structures
【Mask2Former】 解决代码中一些问题
1. 类与对象——什么是对象
MySQL表sql语句增删查改_查询
从零开始配置 vim(12)——主题配置
chrome插件开发入门-保姆级攻略
我用这个操作,代码可读性提升一个档次
Dreamweaver网页作业——紫罗兰永恒花园动漫价绍网页 7页,含有table表格,js表单验证还有首页视频。以及列表页。浮
Qihua stores the future and interprets the origin of distributed
logstash/filebeat只接收最近一段时间的数据