From 399b9acabd8148810f2a8450bb1ff64d495b5a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sun, 8 May 2022 17:37:20 +0200 Subject: [PATCH] Add basic nvim commands for editing config --- symlinks/config/nvim/init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/symlinks/config/nvim/init.lua b/symlinks/config/nvim/init.lua index 43f0285..759af8d 100644 --- a/symlinks/config/nvim/init.lua +++ b/symlinks/config/nvim/init.lua @@ -10,7 +10,7 @@ vim.cmd([[filetype plugin indent on]]) vim.api.nvim_exec('let $OVIMHOME = $HOME."/.vim"', false) vim.api.nvim_exec('let $VIMHOME = $HOME."/.config/nvim"', false) vim.api.nvim_exec('let $NVIMHOME = $HOME."/.local/share/nvim"', false) -vim.api.nvim_exec('let $VIMPLUGINS = expand($VIMHOME."/lua/personal/plugins.lua")', false) +vim.api.nvim_exec('let $VIMPLUGINS = expand($VIMHOME."/lua/esensar/init/plugins.lua")', false) -- Leader config to vim.g.mapleader = " " @@ -39,3 +39,11 @@ vim.cmd("set path+=**") -- automatically rebalance windows on vim resize vim.cmd("autocmd VimResized * :wincmd =") + +vim.api.nvim_create_user_command("EditConfigInitLua", function() + vim.cmd("edit $VIMHOME/init.lua") +end, {}) + +vim.api.nvim_create_user_command("EditConfigPlugins", function() + vim.cmd("edit $VIMPLUGINS") +end, {})