Add elna file support
This commit is contained in:
		
							
								
								
									
										3
									
								
								.config/nvim/ftplugin/elna.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.config/nvim/ftplugin/elna.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
vim.bo.expandtab = true
 | 
			
		||||
vim.bo.tabstop = 2
 | 
			
		||||
vim.bo.shiftwidth = 2
 | 
			
		||||
@@ -110,3 +110,10 @@ vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts)
 | 
			
		||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
 | 
			
		||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
 | 
			
		||||
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
 | 
			
		||||
 | 
			
		||||
-- Custom file types.
 | 
			
		||||
vim.filetype.add({
 | 
			
		||||
	extension = {
 | 
			
		||||
		elna = 'elna'
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user