neovim/config/lua/filetype.lua
2024-02-27 14:01:05 -05:00

20 lines
454 B
Lua

-- sets fileypes for those that are not auto recognized
-- sway config
vim.filetype.add({
filename = {
['/home/spinach/.dotfiles/gui/sway/base.conf'] = 'swayconfig',
},
pattern = {
['.*/sway/.*;'] = 'swayconfig',
['.*/sway/base.conf;'] = 'swayconfig',
},
})
-- calcurse notes as markdown
vim.filetype.add({
pattern = {
['/tmp/calcurse*;$HOME/.local/share/calcurse/notes/*'] = 'markdown',
},
})