Skip to content

Commit

Permalink
add lazy reload function to nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkollasch committed Apr 2, 2023
1 parent e3ee145 commit 6db7976
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nvim/lua/ak/globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ R = function(name)
return require(name)
end

LR = function(name)
local plugin = require("lazy.core.config").plugins[name]
return require("lazy.core.loader").reload(plugin)
end

vim.cmd([[
" This command definition includes -bar, so that it is possible to "chain" Vim commands.
" Side effect: double quotes can't be used in external commands
Expand Down

0 comments on commit 6db7976

Please sign in to comment.