Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lua/neoconf/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function M.setup()
pattern = Util.file_patterns({ autocmd = true }),
group = group,
callback = function(event)
pcall(Config.options.on_write, event)
local fname = Util.fqn(event.match)
-- clear cached settings for this file
Settings.clear(fname)
Expand Down
2 changes: 2 additions & 0 deletions lua/neoconf/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ local M = {}

---@class Config
M.defaults = {
-- Callback for when a setting is changes in local or global settings
-- on_write = function(event) end,
-- name of the local settings files
local_settings = ".neoconf.json",
-- name of the global settings file in your Neovim config directory
Expand Down
Loading