Skip to content

feat(settings)!: Add settings.keep_nvim_dir (:h carbon-setting-keep-nvim-dir) - #155

Merged
SidOfc merged 1 commit into
masterfrom
feature/keep-nvim-dir-setting
Jul 27, 2026
Merged

feat(settings)!: Add settings.keep_nvim_dir (:h carbon-setting-keep-nvim-dir)#155
SidOfc merged 1 commit into
masterfrom
feature/keep-nvim-dir-setting

Conversation

@SidOfc

@SidOfc SidOfc commented Jul 27, 2026

Copy link
Copy Markdown
Owner

This supports Neovim's new dir plugin which shows a directory listing
on :edit [dirname].

Fixes a double initialization issue on startup where Carbon would
be initialized once at the end of the setup function and once again
via the FileType (BufWinEnter prior to this commit) autocommand
when settings.open_on_dir was enabled.

The impact of the above wasn't noticable due to Carbon caching entries
and lines to render during the first initialization however it is
a little bit less smelly now.

…-nvim-dir)

This supports Neovim's new `dir` plugin which shows a directory listing
on `:edit [dirname]`.

Fixes a double initialization issue on startup where Carbon would
be initialized once at the end of the `setup` function and once again
via the `FileType` (`BufWinEnter` prior to this commit) autocommand
when `settings.open_on_dir` was enabled.

The impact of the above wasn't noticable due to Carbon caching entries
and lines to render during the first initialization however it is
a little bit less smelly now.
@SidOfc
SidOfc merged commit b018279 into master Jul 27, 2026
3 checks passed
@SidOfc
SidOfc deleted the feature/keep-nvim-dir-setting branch July 27, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant