pkgs(nixvim): Config neovim startup options
This commit is contained in:
		
							parent
							
								
									7078dd84eb
								
							
						
					
					
						commit
						8806190f75
					
				
					 1 changed files with 65 additions and 0 deletions
				
			
		| 
						 | 
					@ -1,2 +1,67 @@
 | 
				
			||||||
{...}: {
 | 
					{...}: {
 | 
				
			||||||
 | 
					  opts = {
 | 
				
			||||||
 | 
					    autoindent = true;
 | 
				
			||||||
 | 
					    autoread = true;
 | 
				
			||||||
 | 
					    backspace = ["indent" "eol" "start"];
 | 
				
			||||||
 | 
					    backup = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    breakindent = true;
 | 
				
			||||||
 | 
					    breakindentopt = "sbr";
 | 
				
			||||||
 | 
					    showbreak = "↪";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    cdhome = true;
 | 
				
			||||||
 | 
					    cedit = "<C-F>";
 | 
				
			||||||
 | 
					    cmdheight = 1;
 | 
				
			||||||
 | 
					    completeopt = ["fuzzy" "menuone" "noselect" "popup"];
 | 
				
			||||||
 | 
					    concealcursor = "v";
 | 
				
			||||||
 | 
					    confirm = true;
 | 
				
			||||||
 | 
					    cursorline = true;
 | 
				
			||||||
 | 
					    diffopt = ["algorithm:minimal" "closeoff" "context:20" "followwrap" "internal" "linematch:40"];
 | 
				
			||||||
 | 
					    errorbells = true;
 | 
				
			||||||
 | 
					    expandtab = true;
 | 
				
			||||||
 | 
					    exrc = true;
 | 
				
			||||||
 | 
					    foldcolumn = "auto";
 | 
				
			||||||
 | 
					    fsync = true;
 | 
				
			||||||
 | 
					    gdefault = false;
 | 
				
			||||||
 | 
					    helplang = ["zh" "en"];
 | 
				
			||||||
 | 
					    history = 10000;
 | 
				
			||||||
 | 
					    hlsearch = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    ignorecase = true;
 | 
				
			||||||
 | 
					    smartcase = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    inccommand = "split";
 | 
				
			||||||
 | 
					    list = true;
 | 
				
			||||||
 | 
					    listchars = "tab:--→,trail:·,multispace: ,nbsp:⍽,space:·"; # eol:⏎
 | 
				
			||||||
 | 
					    magic = true;
 | 
				
			||||||
 | 
					    more = true;
 | 
				
			||||||
 | 
					    mouse = "a";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    number = true;
 | 
				
			||||||
 | 
					    numberwidth = 2;
 | 
				
			||||||
 | 
					    relativenumber = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    scrollback = 100000;
 | 
				
			||||||
 | 
					    scrolloff = 5;
 | 
				
			||||||
 | 
					    shiftround = true;
 | 
				
			||||||
 | 
					    shiftwidth = 2;
 | 
				
			||||||
 | 
					    signcolumn = "auto";
 | 
				
			||||||
 | 
					    smoothscroll = true;
 | 
				
			||||||
 | 
					    splitbelow = true;
 | 
				
			||||||
 | 
					    splitright = true;
 | 
				
			||||||
 | 
					    startofline = true;
 | 
				
			||||||
 | 
					    swapfile = false;
 | 
				
			||||||
 | 
					    tabclose = "uselast";
 | 
				
			||||||
 | 
					    tabstop = 2;
 | 
				
			||||||
 | 
					    termguicolors = true;
 | 
				
			||||||
 | 
					    undofile = true;
 | 
				
			||||||
 | 
					    undolevels = 100000;
 | 
				
			||||||
 | 
					    virtualedit = ["block" "onemore"];
 | 
				
			||||||
 | 
					    whichwrap = "b,s,<,>";
 | 
				
			||||||
 | 
					    wildmenu = true;
 | 
				
			||||||
 | 
					    wildmode = ["full"];
 | 
				
			||||||
 | 
					    wildoptions = ["fuzzy" "pum"];
 | 
				
			||||||
 | 
					    winborder = "rounded";
 | 
				
			||||||
 | 
					    wrap = true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue