From 58aadca9685a117f8802f87a5d7725182bae912a Mon Sep 17 00:00:00 2001 From: Topy Date: Sat, 2 Mar 2024 16:28:31 +0100 Subject: [PATCH] Changed path to the environment variable $MYVIMRC --- init.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 7a85c91b..86cba32f 100644 --- a/init.lua +++ b/init.lua @@ -202,10 +202,9 @@ vim.api.nvim_create_autocmd('TextYankPost', { -- See `:help lua-guide-commands-create` -- Quickly jump to your config with this awesome custom command --- Try it by starting nvim in a random directory and typing :Config -vim.api.nvim_create_user_command("Config", function() - local path = "~/.config/nvim/" -- You can customize the path here - vim.cmd("e" .. path) -- vim.cmd allows you to execute vim commands from lua +-- It aliases :e $MYVIMRC +vim.api.nvim_create_user_command("Cfg", function() + vim.cmd("e $MYVIMRC") -- vim.cmd allows you to execute vim commands from lua end, {}) -- [[ Install `lazy.nvim` plugin manager ]]