18 lines
		
	
	
	
		
			547 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			547 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
-- Autocmds are automatically loaded on the VeryLazy event
 | 
						|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
 | 
						|
-- Add any additional autocmds here
 | 
						|
 | 
						|
-- turn off paste mode when leaving insert
 | 
						|
vim.api.nvim_create_autocmd("InsertLeave", {
 | 
						|
  pattern = "*",
 | 
						|
  command = "set nopaste",
 | 
						|
})
 | 
						|
 | 
						|
-- fix conceallevel for json files
 | 
						|
vim.api.nvim_create_autocmd("FileType", {
 | 
						|
  pattern = { "json", "jsonc" },
 | 
						|
  callback = function()
 | 
						|
    vim.wo.spell = false
 | 
						|
    vim.wo.conceallevel = 0
 | 
						|
  end,
 | 
						|
})
 |