aliases on the top

Why not make an alias of cmd first and then use cmd instead of vim.cmd
This commit is contained in:
Aaditay 2021-04-14 13:23:10 +05:30 committed by GitHub
parent 0cb84d3427
commit e45e3089d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
vim.cmd [[packadd nvim-tree.lua]]
local cmd = vim.cmd
local g = vim.g
cmd [[packadd nvim-tree.lua]]
vim.o.termguicolors = true
local g = vim.g
g.nvim_tree_side = "left"
g.nvim_tree_width = 25
@ -85,7 +88,7 @@ g.nvim_tree_bindings = {
["q"] = get_lua_cb("close")
}
local cmd = vim.cmd
cmd "hi NvimTreeFolderIcon guifg = #61afef"
cmd "hi NvimTreeFolderName guifg = #61afef"