Update '2.Vim.md'
This commit is contained in:
parent
d959b198ff
commit
e29c1a0e25
67
2.Vim.md
67
2.Vim.md
@ -247,6 +247,73 @@ dnf install lazygit
|
|||||||
|
|
||||||
Normal mode
|
Normal mode
|
||||||
|
|
||||||
|
|
||||||
|
# Theme Switcher
|
||||||
|
|
||||||
|
``
|
||||||
|
|
||||||
|
```lua
|
||||||
|
{
|
||||||
|
'zaldih/themery.nvim',
|
||||||
|
lazy = false,
|
||||||
|
config = function()
|
||||||
|
require("themery").setup({
|
||||||
|
themes = {
|
||||||
|
'astrodark',
|
||||||
|
'astromars',
|
||||||
|
'astrotheme',
|
||||||
|
'catppuccin',
|
||||||
|
'catppuccin-frappe',
|
||||||
|
'catppuccin-macchiato',
|
||||||
|
'catppuccin-mocha',
|
||||||
|
'tokyonight-night',
|
||||||
|
'tokyonight-storm',
|
||||||
|
'tokyonight-moon',
|
||||||
|
'vim-monokai-tasty',
|
||||||
|
'nightfox',
|
||||||
|
'nightfly',
|
||||||
|
'moonfly',
|
||||||
|
'terafox',
|
||||||
|
'carbonfox',
|
||||||
|
'PaperColor',
|
||||||
|
'onedark',
|
||||||
|
'onedarker',
|
||||||
|
'vscode',
|
||||||
|
'material',
|
||||||
|
'kanagawa-wave',
|
||||||
|
'kanagawa-dragon',
|
||||||
|
'tender',
|
||||||
|
'terafox',
|
||||||
|
},
|
||||||
|
themeConfigFile = "~/.config/nvim/lua/user/polish.lua",
|
||||||
|
livePreview = true,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
`.local/share/nvim/lazy/themery.vim.lua/themery/persistence.lua`
|
||||||
|
|
||||||
|
```lua
|
||||||
|
local configToWrite = "-- This block will be replaced by Themery.\n"
|
||||||
|
configToWrite = configToWrite..beforeCode
|
||||||
|
configToWrite = configToWrite.."vim.cmd [[:colorscheme "
|
||||||
|
configToWrite = configToWrite..theme.colorscheme.."]]\n"
|
||||||
|
configToWrite = configToWrite..afterCode
|
||||||
|
```
|
||||||
|
|
||||||
|
`.config/nvim/lua/user/polish.lua`
|
||||||
|
|
||||||
|
```lua
|
||||||
|
return function(local_vim)
|
||||||
|
-- Themery block
|
||||||
|
-- This block will be replaced by Themery.
|
||||||
|
vim.cmd [[:colorscheme onedarker]]
|
||||||
|
-- end themery block
|
||||||
|
return local_vim
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
["<Tab>"] = ":bnext<cr>",
|
["<Tab>"] = ":bnext<cr>",
|
||||||
["<S-Tab>"] = ":bprev<cr>"
|
["<S-Tab>"] = ":bprev<cr>"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user