fix #1188 | remove options that already have default vim values | remove better-escape.nvim as it feels un-needed, ESC or Ctrl c can be used for escaping normal mode or just map jk to ESC
This commit is contained in:
		
							parent
							
								
									5ee4f93309
								
							
						
					
					
						commit
						5b37cb5875
					
				
					 3 changed files with 5 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -11,15 +11,12 @@ g.do_filetype_lua = 1
 | 
			
		|||
g.toggle_theme_icon = "   "
 | 
			
		||||
g.transparency = config.ui.transparency
 | 
			
		||||
 | 
			
		||||
opt.confirm = true
 | 
			
		||||
 | 
			
		||||
opt.laststatus = 3 -- global statusline
 | 
			
		||||
opt.statusline = config.plugins.options.statusline.config
 | 
			
		||||
opt.showmode = false
 | 
			
		||||
 | 
			
		||||
opt.title = true
 | 
			
		||||
opt.clipboard = "unnamedplus"
 | 
			
		||||
opt.cmdheight = 1
 | 
			
		||||
opt.cul = true -- cursor line
 | 
			
		||||
 | 
			
		||||
-- Indentline
 | 
			
		||||
| 
						 | 
				
			
			@ -30,7 +27,6 @@ opt.smartindent = true
 | 
			
		|||
-- disable tilde on end of buffer: https://github.com/neovim/neovim/pull/8546#issuecomment-643643758
 | 
			
		||||
opt.fillchars = { eob = " " }
 | 
			
		||||
 | 
			
		||||
opt.hidden = true
 | 
			
		||||
opt.ignorecase = true
 | 
			
		||||
opt.smartcase = true
 | 
			
		||||
opt.mouse = "a"
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +34,6 @@ opt.mouse = "a"
 | 
			
		|||
-- Numbers
 | 
			
		||||
opt.number = true
 | 
			
		||||
opt.numberwidth = 2
 | 
			
		||||
opt.relativenumber = false
 | 
			
		||||
opt.ruler = false
 | 
			
		||||
 | 
			
		||||
-- disable nvim intro
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -107,12 +107,7 @@ local plugins = {
 | 
			
		|||
      end,
 | 
			
		||||
   },
 | 
			
		||||
 | 
			
		||||
   ["max397574/better-escape.nvim"] = {
 | 
			
		||||
      event = "InsertCharPre",
 | 
			
		||||
      config = function()
 | 
			
		||||
         require("plugins.configs.others").better_escape()
 | 
			
		||||
      end,
 | 
			
		||||
   },
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
   -- load luasnips + cmp related in insert mode only
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,9 +28,13 @@ local sep_r = sep_style[user_sep_style]["right"]
 | 
			
		|||
 | 
			
		||||
local modes = {
 | 
			
		||||
   ["n"] = { "NORMAL", "St_NormalMode" },
 | 
			
		||||
   ["niI"] = { "NORMAL i", "St_NormalMode" },
 | 
			
		||||
   ["niR"] = { "NORMAL r", "St_NormalMode" },
 | 
			
		||||
   ["niV"] = { "NORMAL v", "St_NormalMode" },
 | 
			
		||||
   ["no"] = { "N-PENDING", "St_NormalMode" },
 | 
			
		||||
   ["i"] = { "INSERT", "St_InsertMode" },
 | 
			
		||||
   ["ic"] = { "INSERT", "St_InsertMode" },
 | 
			
		||||
   ["ix"] = { "INSERT completion", "St_InsertMode" },
 | 
			
		||||
   ["t"] = { "TERMINAL", "St_TerminalMode" },
 | 
			
		||||
   ["nt"] = { "NTERMINAL", "St_NTerminalMode" },
 | 
			
		||||
   ["v"] = { "VISUAL", "St_VisualMode" },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue