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

This commit is contained in:
spinach 2024-02-27 13:21:30 -05:00
parent aa35607099
commit 62ef77c478
2 changed files with 20 additions and 1 deletions

View File

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

17
config/lua/filetype.lua Normal file
View File

@ -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',
},
})