Skip to content

Conversation

@benoror
Copy link
Owner

@benoror benoror commented Oct 13, 2025

No description provided.


return {
"benoror/gpg.nvim",
ft = { "gpg", "asc", "pgp" },
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Frestein can you clarify why this line is needed beside the prev. vim.filetype.add?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ft property is used by lazy.nvim to lazy-load the plugin based on filetype, so the plugin loads only when you open files of those types. See the lazy.nvim docs here for details.
This is different from vim.filetype.add, which just sets filetype detection in Neovim.

It would be good to put the current example under a "lazy.nvim" subheading since this is a configuration example specific to that plugin manager. With the built-in plugin manager vim.pack, the configuration will be different.

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.

3 participants