Skip to content

Is there a way to add keymaps based on filetype? #2599

Closed Answered by MattSturgeon
SymphonySimper asked this question in Q&A
Discussion options

You must be logged in to vote

One approach would be to use files.<filename> instead of extraFiles, as that one takes a nixvim module instead of lua content.

Another approach would be to use keymapsOnEvent to target a filetype-related autocommand event.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SymphonySimper
Comment options

Answer selected by SymphonySimper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants