Changed path to the environment variable $MYVIMRC

This commit is contained in:
Topy 2024-03-02 16:28:31 +01:00
parent 75940ccc48
commit 58aadca968
1 changed files with 3 additions and 4 deletions

View File

@ -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 ]]