{"id":13411336,"url":"https://github.com/klen/nvim-config-local","last_synced_at":"2026-03-09T15:03:18.077Z","repository":{"id":43507695,"uuid":"440985700","full_name":"klen/nvim-config-local","owner":"klen","description":"Secure load local config files for neovim","archived":false,"fork":false,"pushed_at":"2025-01-21T12:57:02.000Z","size":36,"stargazers_count":164,"open_issues_count":5,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-17T10:13:18.445Z","etag":null,"topics":["neovim","neovim-configuration","neovim-plugin","nvim","nvim-configs","nvim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-12-22T21:13:13.000Z","updated_at":"2025-06-13T14:33:35.000Z","dependencies_parsed_at":"2024-01-03T03:29:36.717Z","dependency_job_id":"f7513054-3808-4d30-8366-308458121cf1","html_url":"https://github.com/klen/nvim-config-local","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/klen/nvim-config-local","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fnvim-config-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fnvim-config-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fnvim-config-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fnvim-config-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klen","download_url":"https://codeload.github.com/klen/nvim-config-local/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fnvim-config-local/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002964,"owners_count":26083488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neovim","neovim-configuration","neovim-plugin","nvim","nvim-configs","nvim-plugin"],"created_at":"2024-07-30T20:01:13.000Z","updated_at":"2025-10-10T06:16:37.385Z","avatar_url":"https://github.com/klen.png","language":"Lua","funding_links":[],"categories":["Project","Lua"],"sub_categories":["Markdown and LaTeX","Assembly"],"readme":"\u003cimg src=\"https://neovim.io/logos/neovim-mark-flat.png\" align=\"right\" width=\"144\" /\u003e\n\n# nvim-config-local 3.0.0\n\nSecure load local config files.\n\n[![tests](https://github.com/klen/nvim-config-local/actions/workflows/tests.yml/badge.svg)](https://github.com/klen/nvim-config-local/actions/workflows/tests.yml)\n[![Awesome Neovim](https://awesome.re/badge-flat.svg)](https://github.com/rockerBOO/awesome-neovim)\n\nVim provides a feature called `exrc`, which allows to use config files that are\nlocal to the current working directory. However, unconditionally sourcing\nwhatever files we might have in our current working directory can be\npotentially dangerous. ~~Because of that, neovim has disabled the feature.~~\n(reenabled from version 0.9) The plugin tries to solve this issue by keeping\ntrack of file hashes and allowing only trusted files to be sourced.\n\n## Usage\n\nWhen the plugin detects a new config file, it will ask what do you want to do\nwith it:\n\n```\n[config-local]: Unknown config file found: \".nvim.lua\"\n[i]gnore, (v)iew, (d)eny, (a)llow:\n```\n\nYou can either `i`gnore this file for now, `v`iew it to see if it doesn't contain\nanything malicious, `d`eny sourcing the file so `config-local` won't ask you about it\nagain, or `a`llow (mark it allowed) sourcing it right away.\n\nTo manually mark file as trusted, open the config file with `:edit .nvim.lua` or\n`:ConfigEdit` and save it. You will be asked to trust the current config file.\n\nFile has to be marked as trusted each time its contents or path changes.\n\n## Install\n\nwith [packer](https://github.com/wbthomason/packer.nvim):\n\n```lua\n\nuse {\n  \"klen/nvim-config-local\",\n  config = function()\n    require('config-local').setup {\n      -- Default options (optional)\n\n      -- Config file patterns to load (lua supported)\n      config_files = { \".nvim.lua\", \".nvimrc\", \".exrc\" },\n\n      -- Where the plugin keeps files data\n      hashfile = vim.fn.stdpath(\"data\") .. \"/config-local\",\n\n      autocommands_create = true, -- Create autocommands (VimEnter, DirectoryChanged)\n      commands_create = true,     -- Create commands (ConfigLocalSource, ConfigLocalEdit, ConfigLocalTrust, ConfigLocalDeny)\n      silent = false,             -- Disable plugin messages (Config loaded/denied)\n      lookup_parents = false,     -- Lookup config files in parent directories\n    }\n  end\n}\n```\n\n## Commands\n\nThe plugin defines the commands:\n\n- `ConfigLocalSource` - Source config file from the current working directory\n- `ConfigLocalEdit` - Edit (create) config file for the current working directory\n- `ConfigLocalTrust` - Add config file for the current working directory to trusted files.\n- `ConfigLocalDeny - Add config file for the current working directory to denied files.\n\n## Events\n\nThe plugin sends event `User ConfigLocalLoaded` after loading configuration.\nSo users may bind `autocmd` to the event:\n\n```vim\nautocmd User ConfigLocalFinished lua my_custom_function()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Fnvim-config-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklen%2Fnvim-config-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Fnvim-config-local/lists"}