-
Notifications
You must be signed in to change notification settings - Fork 39.5k
Closed
Description
Describe the bug
i've this keybinding
vim.keymap.set('n', '<leader>so', ':source ~/.config/nvim/init.lua<CR>', { silent = true })
to reload the config when pressing <leader>so
.
but i get the following error in the footer of vim
:
Re-sourcing your config is not supported with lazy.nvim
❓ i'm wondering if this is normal and if there is anything to do to reload a config from inside nvim
😋
To Reproduce
Steps to reproduce the behavior:
- add
vim.keymap.set('n', '<leader>so', ':source ~/.config/nvim/init.lua<CR>', { silent = true })
toinit.lua
- restart
nvim
- press
<leader>so
- see the error at the bottom
Desktop
- OS: arch on linux
- Terminal: alacritty
Neovim Version
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Metadata
Metadata
Assignees
Labels
No labels