MunifTanjim/exrc.nvim

website github github
project
star 35
stars
alert-circle 0
open issues
users 1
subscribers
git-branch 0
forks
CREATED

2021-08-28

UPDATED

2 months ago


exrc.nvim

Local config file with confirmation for Neovim.

Installation

Install the plugin with your preferred plugin manager. For example, with vim-plug:

Plug 'MunifTanjim/exrc.nvim'

It's recommended to also install nui.nvim for a better UX:

Plug 'MunifTanjim/nui.nvim'

Setup

exrc.nvim needs to be initialized with the require("exrc").setup() function.

For example:

-- disable built-in local config file support
vim.o.exrc = false

require("exrc").setup({
  files = {
    ".nvimrc.lua",
    ".nvimrc",
    ".exrc.lua",
    ".exrc",
  },
})

Commands

ExrcSource

Re-source exrc file:

:ExrcSource

Reset state and re-source exrc file:

:ExrcSource!

Similar Projects

License

Licensed under the MIT License. Check the LICENSE file for details.