mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-03 22:11:16 +01:00 
			
		
		
		
	nvim: specified standard tab settings and made everything lua
This commit is contained in:
		@@ -1,9 +1,7 @@
 | 
				
			|||||||
vim.api.nvim_create_autocmd({ 'VimLeave' },
 | 
					vim.api.nvim_create_autocmd({ 'VimLeave' },
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    command = '!cclear'
 | 
					    callback = function() os.execute('cclear') end
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
vim.o.shiftwidth = 2
 | 
					vim.o.shiftwidth = 2
 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					vim.o.softtabstop = 2
 | 
				
			||||||
vim.o.textwidth = 80
 | 
					 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,3 @@
 | 
				
			|||||||
vim.o.shiftwidth = 2
 | 
					vim.o.shiftwidth = 2
 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					vim.o.softtabstop = 2
 | 
				
			||||||
vim.o.textwidth = 100
 | 
					vim.o.textwidth = 100
 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,3 @@
 | 
				
			|||||||
vim.o.shiftwidth = 2
 | 
					vim.o.shiftwidth = 2
 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					vim.o.softtabstop = 2
 | 
				
			||||||
vim.o.textwidth = 100
 | 
					vim.o.textwidth = 100
 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,3 @@
 | 
				
			|||||||
vim.o.shiftwidth = 2
 | 
					vim.o.shiftwidth = 2
 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					vim.o.softtabstop = 2
 | 
				
			||||||
vim.o.textwidth = 100
 | 
					vim.o.textwidth = 100
 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,4 +6,3 @@ vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
 | 
				
			|||||||
vim.o.shiftwidth = 2
 | 
					vim.o.shiftwidth = 2
 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					vim.o.softtabstop = 2
 | 
				
			||||||
vim.o.textwidth = 100
 | 
					vim.o.textwidth = 100
 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +0,0 @@
 | 
				
			|||||||
vim.o.shiftwidth = 2
 | 
					 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					 | 
				
			||||||
vim.o.textwidth = 80
 | 
					 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
@@ -1,4 +0,0 @@
 | 
				
			|||||||
vim.o.shiftwidth = 2
 | 
					 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					 | 
				
			||||||
vim.o.textwidth = 80
 | 
					 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
@@ -1,9 +1,7 @@
 | 
				
			|||||||
vim.api.nvim_create_autocmd({ 'VimLeave' },
 | 
					vim.api.nvim_create_autocmd({ 'VimLeave' },
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    command = '!texclear %'
 | 
					    callback = function() os.execute('texclear ' .. vim.fn.expand('%')) end
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
vim.o.shiftwidth = 2
 | 
					vim.o.shiftwidth = 2
 | 
				
			||||||
vim.o.softtabstop = 2
 | 
					vim.o.softtabstop = 2
 | 
				
			||||||
vim.o.textwidth = 80
 | 
					 | 
				
			||||||
vim.o.colorcolumn = "-0"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -73,6 +73,12 @@ vim.o.foldenable = true
 | 
				
			|||||||
vim.o.conceallevel = 0
 | 
					vim.o.conceallevel = 0
 | 
				
			||||||
vim.g.markdown_folding = 1
 | 
					vim.g.markdown_folding = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- standard settings for colorcolumn and tabbing
 | 
				
			||||||
 | 
					vim.o.shiftwidth = 4
 | 
				
			||||||
 | 
					vim.o.softtabstop = 4
 | 
				
			||||||
 | 
					vim.o.textwidth = 80
 | 
				
			||||||
 | 
					vim.o.colorcolumn = "-0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- read files correctly
 | 
					-- read files correctly
 | 
				
			||||||
vim.filetype.add({
 | 
					vim.filetype.add({
 | 
				
			||||||
  extension = {
 | 
					  extension = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user