Update '2.Vim.md'

This commit is contained in:
Ste Vaidis 2023-07-25 01:08:30 +03:00
parent d959b198ff
commit e29c1a0e25

View File

@ -247,6 +247,73 @@ dnf install lazygit
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>",
["<S-Tab>"] = ":bprev<cr>"