GitXplorerGitXplorer
M

exrc.nvim

public
58 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
0aae882db72885ade36641d677a22204c72e50f4

docs: mention built-in secure exrc

MMunifTanjim committed 2 years ago
Unverified
7e6a93df0b84caa830b327dfb09c7d932d990367

feat: make nui.nvim optional

MMunifTanjim committed 2 years ago
Unverified
f5e258fd18a3757af7010492adfcdf62652bcee2

feat: rename autocmd to ExrcSourced

MMunifTanjim committed 2 years ago
Unverified
328b7e4c63a2bf0e3f59ffceb065591a5c670de5

feat: add command ExrcSource

MMunifTanjim committed 2 years ago
Unverified
78508ab09bbe4dd9b95bd5491545e7870b07673b

feat: use xdg_state_home if possible

MMunifTanjim committed 2 years ago
Unverified
83201089c0b1fd9f3032ee3937d28397976b2f4a

refactor: rename cache to state

MMunifTanjim committed 2 years ago

README

The README file for this repository.

Warning

Neovim v0.9.0 onwards supports secure .exrc, .nvimrc and .nvim.lua files. You don't need this plugin anymore.

Just enable the 'exrc' option:

vim.o.exrc = true

For more information, check:

  • :help 'exrc'
  • :help exrc

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.