在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tanvirtin/monokai.nvim开源软件地址(OpenSource Url):https://github.com/tanvirtin/monokai.nvim开源编程语言(OpenSource Language):Lua 98.4%开源软件介绍(OpenSource Introduction):Neovim MonokaiMonokai Theme for Neovim with tree-sitter support Supported Monokai Flavours
PrerequisitesNeovim >= 0.5. Installation
UsageIn VimL: syntax on
colorscheme monokai
colorscheme monokai_pro
colorscheme monokai_soda
colorscheme monokai_ristretto In Lua: require('monokai').setup {}
require('monokai').setup { palette = require('monokai').pro }
require('monokai').setup { palette = require('monokai').soda }
require('monokai').setup { palette = require('monokai').ristretto } CustomizationIt is possible to customize Monokai theme with {
palette = {
name = 'monokai',
base1 = '#272a30',
base2 = '#26292C',
base3 = '#2E323C',
base4 = '#333842',
base5 = '#4d5154',
base6 = '#9ca0a4',
base7 = '#b1b1b1',
border = '#a1b5b1',
brown = '#504945',
white = '#f8f8f0',
grey = '#8F908A',
black = '#000000',
pink = '#f92672',
green = '#a6e22e',
aqua = '#66d9ef',
yellow = '#e6db74',
orange = '#fd971f',
purple = '#ae81ff',
red = '#e95678',
diff_add = '#3d5213',
diff_remove = '#4a0f23',
diff_change = '#27406b',
diff_text = '#23324d',
},
custom_hlgroups = {},
} An example of this would be as follows: local monokai = require('monokai')
local palette = monokai.classic
monokai.setup {
palette = {
diff_text = '#133337',
},
custom_hlgroups = {
TSInclude = {
fg = palette.aqua,
},
GitSignsAdd = {
fg = palette.green,
bg = palette.base2
},
GitSignsDelete = {
fg = palette.pink,
bg = palette.base2
},
GitSignsChange = {
fg = palette.orange,
bg = palette.base2
},
}
} With
ExtrasExtra color configs for Kitty, Alacritty, Windows Terminal, can be found in extras. To use them, refer to their respective documentation. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论