Simplify structure for nvim config files
This commit is contained in:
		
							
								
								
									
										44
									
								
								src_files/.config/nvim/lua/settings.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								src_files/.config/nvim/lua/settings.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
vim.g.mapleader = " "
 | 
			
		||||
 | 
			
		||||
-- -- TODO: do i want these?
 | 
			
		||||
-- vim.opt.isfname:append("@-@")
 | 
			
		||||
-- vim.opt.guicursor = ""
 | 
			
		||||
 | 
			
		||||
vim.opt.hlsearch = true
 | 
			
		||||
vim.opt.incsearch = true
 | 
			
		||||
 | 
			
		||||
vim.opt.termguicolors = true
 | 
			
		||||
vim.opt.scrolloff = 2
 | 
			
		||||
vim.opt.colorcolumn = "90"
 | 
			
		||||
vim.opt.signcolumn = "yes" -- "auto", "yes", "no", "number"
 | 
			
		||||
vim.opt.laststatus = 2
 | 
			
		||||
vim.opt.splitright = true
 | 
			
		||||
vim.opt.splitbelow = true
 | 
			
		||||
vim.opt.nu = true
 | 
			
		||||
vim.opt.relativenumber = true
 | 
			
		||||
vim.opt.cursorline = true
 | 
			
		||||
vim.opt.cursorlineopt = "both"
 | 
			
		||||
vim.opt.smartindent = true
 | 
			
		||||
vim.opt.wrap = true
 | 
			
		||||
 | 
			
		||||
vim.opt.errorbells = false
 | 
			
		||||
vim.opt.visualbell = false
 | 
			
		||||
 | 
			
		||||
vim.opt.updatetime = 1000
 | 
			
		||||
 | 
			
		||||
vim.opt.tabstop = 4
 | 
			
		||||
vim.opt.softtabstop = 4
 | 
			
		||||
vim.opt.shiftwidth = 4
 | 
			
		||||
vim.opt.expandtab = true
 | 
			
		||||
 | 
			
		||||
vim.opt.backup = false
 | 
			
		||||
vim.opt.swapfile = false
 | 
			
		||||
vim.opt.undodir = os.getenv("XDG_DATA_HOME") .. "/nvim/undodir"
 | 
			
		||||
vim.opt.undofile = true
 | 
			
		||||
 | 
			
		||||
-- netrw settings
 | 
			
		||||
vim.g.netrw_browse_split = 0
 | 
			
		||||
vim.g.netrw_preview = 1
 | 
			
		||||
vim.g.netrw_banner = 0
 | 
			
		||||
vim.g.netrw_winsize = 25
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user