summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--after/ftplugin/norg.lua2
-rw-r--r--init.lua2
-rw-r--r--lua/conf/autos.lua2
-rw-r--r--lua/conf/plugins/incline.lua2
-rw-r--r--lua/conf/plugins/telescope.lua2
-rw-r--r--lua/core/misc.lua4
6 files changed, 7 insertions, 7 deletions
diff --git a/after/ftplugin/norg.lua b/after/ftplugin/norg.lua
index fc69be9..c09a36e 100644
--- a/after/ftplugin/norg.lua
+++ b/after/ftplugin/norg.lua
@@ -17,7 +17,7 @@ end, "so")
-- if the parsers don't exist download them
if found[0] < 2 and
(not found["norg.so"] or not found["norg_meta.so"]) then
- vim.cmd("Neorg sync-parsers")
+ vim.cmd.Neorg("sync-parsers")
end
-- set colorcolumn in norg buffers
diff --git a/init.lua b/init.lua
index 4ddd8fc..c6bf0af 100644
--- a/init.lua
+++ b/init.lua
@@ -6,7 +6,7 @@ local path = vim.fn.stdpath("data").."/site/pack/deps/opt/dep"
if vim.fn.empty(vim.fn.glob(path)) > 0 then
vim.fn.system({ "git", "clone", "--depth=1", "https://git.squi.bid/dep", path })
end
-vim.cmd("packadd dep")
+vim.cmd.packadd("dep")
-- load miscellaneous utilities
local misc = require('core.misc')
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