Skip to content

Commit

Permalink
Tag file as filetype json manually based on file name
Browse files Browse the repository at this point in the history
  • Loading branch information
mettavi committed Jan 7, 2025
1 parent 34f0260 commit 97e54b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/stow/nvim/.config/nvim/lua/mettavi/core/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ vim.api.nvim_create_user_command(

opt.timeoutlen = 500 -- shorten delay when pressing first key of a mapping (default 1000)

-- assign filetypes not based on extension
vim.filetype.add({
filename = {
["my.code-snippets"] = "jsonc",
},
})
--------------- AUTOCOMMANDS ---------------------

-- Highlight when yanking (copying) text (config from kickstart.nvim)
Expand Down

0 comments on commit 97e54b2

Please sign in to comment.