Some quality of life nvim improvements
							parent
							
								
									da12818fc8
								
							
						
					
					
						commit
						c8af8c155a
					
				|  | @ -1,15 +1,15 @@ | ||||||
| local g = vim.g | local g = vim.g | ||||||
| 
 | 
 | ||||||
| g.ctrlp_map = "<leader>t" | g.ctrlp_map = "<leader>t" | ||||||
| g.ctrlp_use_caching = 1 | -- g.ctrlp_use_caching = 1 | ||||||
| g.ctrlp_clear_cache_on_exit = 0 | -- g.ctrlp_clear_cache_on_exit = 0 | ||||||
| g.ctrlp_cache_dir = "./.vim/cache/ctrlp" | -- g.ctrlp_cache_dir = "./.vim/cache/ctrlp" | ||||||
| g.ctrlp_user_command = { | g.ctrlp_user_command = { | ||||||
|     '.git', 'git --git-dir=%s/.git ls-files -oc --exclude-standard' |     '.git', 'git --git-dir=%s/.git ls-files -oc --exclude-standard' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| --Limit max number of files | --Limit max number of files | ||||||
| --This prevents me from indexing my entire HOME by accident | --This prevents me from indexing my entire HOME by accident | ||||||
| g.ctrlp_max_files = 10000 | g.ctrlp_max_files = 1000 | ||||||
| --Also limit recursion depth | --Also limit recursion depth | ||||||
| g.ctrlp_max_depth = 40 | g.ctrlp_max_depth = 10 | ||||||
|  |  | ||||||
|  | @ -10,7 +10,6 @@ local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' | ||||||
| 
 | 
 | ||||||
| if fn.empty(fn.glob(install_path)) > 0 then | if fn.empty(fn.glob(install_path)) > 0 then | ||||||
|   fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path}) |   fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path}) | ||||||
|   vim.api.nvim_command('packadd packer.nvim') |  | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| require('packer').startup(function() | require('packer').startup(function() | ||||||
|  | @ -57,9 +56,6 @@ require('packer').startup(function() | ||||||
|         config = [[require('config.nerdtree')]] |         config = [[require('config.nerdtree')]] | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     -- Better support for toml files |  | ||||||
|     use "cespare/vim-toml" |  | ||||||
| 
 |  | ||||||
|     use "jiangmiao/auto-pairs" |     use "jiangmiao/auto-pairs" | ||||||
| 
 | 
 | ||||||
|     -- Align text |     -- Align text | ||||||
|  |  | ||||||
|  | @ -37,15 +37,18 @@ o.smartcase = true | ||||||
| -- Don't highlight search results after search is finished | -- Don't highlight search results after search is finished | ||||||
| o.hlsearch = false | o.hlsearch = false | ||||||
| 
 | 
 | ||||||
|  | local swap_dir = vim.fn.stdpath('data') .. '/swap' | ||||||
|  | local undo_dir = vim.fn.stdpath('data') .. '/undo' | ||||||
|  | 
 | ||||||
| -- Create swap files | -- Create swap files | ||||||
| o.swapfile = true | o.swapfile = true | ||||||
| -- Where to store the swap files; I store mine in the current directory | -- Where to store the swap files; I store mine in the current directory | ||||||
| o.directory = "./.vim/swap//" | o.directory = swap_dir | ||||||
| 
 | 
 | ||||||
| o.backup = false | o.backup = false | ||||||
| 
 | 
 | ||||||
| o.undofile = true | o.undofile = true | ||||||
| o.undodir = "./.vim/undo//" | o.undodir = undo_dir | ||||||
| 
 | 
 | ||||||
| o.updatetime = 250 | o.updatetime = 250 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -169,11 +169,6 @@ _G.packer_plugins = { | ||||||
|     path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-surround", |     path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-surround", | ||||||
|     url = "https://github.com/tpope/vim-surround" |     url = "https://github.com/tpope/vim-surround" | ||||||
|   }, |   }, | ||||||
|   ["vim-toml"] = { |  | ||||||
|     loaded = true, |  | ||||||
|     path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-toml", |  | ||||||
|     url = "https://github.com/cespare/vim-toml" |  | ||||||
|   }, |  | ||||||
|   vimtex = { |   vimtex = { | ||||||
|     loaded = true, |     loaded = true, | ||||||
|     path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vimtex", |     path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vimtex", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue