switching from autobuf to filetype commands to recognize configs and calcurse notes
This commit is contained in:
		
							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=')
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										17
									
								
								config/lua/filetype.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								config/lua/filetype.lua
									
									
									
									
									
										Normal 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',
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user