From f50c580a48085965b466ad576e12489f4b0d7cdd Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Sat, 30 Oct 2021 17:45:54 +0300 Subject: [PATCH] feat: reload config mapping --- lua/config/reload.lua | 4 ++++ lua/plugins.lua | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 lua/config/reload.lua diff --git a/lua/config/reload.lua b/lua/config/reload.lua new file mode 100644 index 0000000..3ca56bd --- /dev/null +++ b/lua/config/reload.lua @@ -0,0 +1,4 @@ +local map = require 'utils.map' + +map('n', 'rv', ':Restart', {silent = true}) + diff --git a/lua/plugins.lua b/lua/plugins.lua index a207883..f5f919a 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -9,6 +9,13 @@ local function usePlugins(use) -- Various lua utilities use 'nvim-lua/plenary.nvim' + -- Reload lua configs + use { + 'famiu/nvim-reload', + requires = { {'nvim-lua/plenary.nvim'} }, + config = [[require 'config.reload']] + } + -- Tree-sitter use { 'nvim-treesitter/nvim-treesitter',