summaryrefslogtreecommitdiffstats
path: root/lua/core
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2024-11-19 13:13:33 -0600
committerSquibid <me@zacharyscheiman.com>2024-11-19 13:13:33 -0600
commit95fcc5e416218b3dac38649b8549319a922901d9 (patch)
tree100a7ae090dda7985cb3ee87bc9f93bf8d17f319 /lua/core
parentfda8909c9c9ad4d6c104018ab683d5e7a54e20a0 (diff)
downloadnvim-95fcc5e416218b3dac38649b8549319a922901d9.tar.gz
nvim-95fcc5e416218b3dac38649b8549319a922901d9.tar.bz2
nvim-95fcc5e416218b3dac38649b8549319a922901d9.zip
make vim.cmd calls more fancy
Diffstat (limited to '')
-rw-r--r--lua/core/misc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/core/misc.lua b/lua/core/misc.lua
index 2dcf3fe..5200c8b 100644
--- a/lua/core/misc.lua
+++ b/lua/core/misc.lua
@@ -29,10 +29,10 @@ end
--- set colorscheme
---@param name string name of colorscheme
function M.colorscheme(name)
- vim.cmd('colorscheme '..name)
+ vim.cmd.colorscheme(name)
for _, v in pairs(vim.fn.getcompletion('', 'color')) do
if v == name..'.ext' then
- vim.cmd('colorscheme '..name..'.ext')
+ vim.cmd.colorscheme(name..'.ext')
end
end
end