switching from autobuf to filetype commands to recognize configs and calcurse notes

main
spinach 11 months ago
parent aa35607099
commit 62ef77c478

@ -1,6 +1,8 @@
require('plugins') require('plugins')
require('keymap') require('keymap')
require('autobuf') require('filetype')
-- require('autobuf')
-- prevent cursor override -- prevent cursor override
vim.cmd('set guicursor=') vim.cmd('set guicursor=')

@ -0,0 +1,17 @@
-- sets fileypes for those that are not auto recognized
-- sway config
vim.filetype.add({
pattern = {
['~/.config/sway/*'] = 'swayconfig',
['~/.dotfiles/gui/sway/*'] = 'swayconfig',
},
})
-- calcurse notes as markdown
vim.filetype.add({
pattern = {
['/tmp/calcurse*'] = 'markdown',
['~/.local/share/calcursen/notes/*'] = 'markdown',
},
})
Loading…
Cancel
Save