diff options
Diffstat (limited to '')
-rw-r--r-- | lua/conf/autos.lua | 2 | ||||
-rw-r--r-- | lua/conf/plugins/incline.lua | 2 | ||||
-rw-r--r-- | lua/conf/plugins/telescope.lua | 2 | ||||
-rw-r--r-- | lua/core/misc.lua | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lua/conf/autos.lua b/lua/conf/autos.lua index 51ed58a..1f642a1 100644 --- a/lua/conf/autos.lua +++ b/lua/conf/autos.lua @@ -26,8 +26,8 @@ auto('BufRead', { group = bufcheck, desc = 'Return to the last place the buffer was closed in.', callback = function() - vim.cmd([[call setpos(".", getpos("'\""))]]) vim.api.nvim_input('zz') + vim.cmd.call([[setpos(".", getpos("'\""))]]) end }) diff --git a/lua/conf/plugins/incline.lua b/lua/conf/plugins/incline.lua index 03b4284..3dab96d 100644 --- a/lua/conf/plugins/incline.lua +++ b/lua/conf/plugins/incline.lua @@ -1,6 +1,6 @@ return { 'b0o/incline.nvim', function() - vim.cmd('set laststatus=3') + vim.cmd.set('laststatus=3') require('incline').setup { hide = { diff --git a/lua/conf/plugins/telescope.lua b/lua/conf/plugins/telescope.lua index 20f516d..6a1b1c2 100644 --- a/lua/conf/plugins/telescope.lua +++ b/lua/conf/plugins/telescope.lua @@ -7,7 +7,7 @@ return { 'nvim-telescope/telescope.nvim', 'nvim-lua/plenary.nvim', { 'nvim-telescope/telescope-fzf-native.nvim', config = function() - vim.cmd('make') + vim.cmd.make() end } }, 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 |