Compare commits
	
		
			3 commits
		
	
	
		
			de011cad9d
			...
			843d400e2e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 843d400e2e | ||
|   | 11458cd4de | ||
|   | 9755958483 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -1,2 +1 @@ | |||
| /lazy-lock.json | ||||
| /custom.lua | ||||
|  |  | |||
							
								
								
									
										18
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								init.lua
									
									
									
									
									
								
							|  | @ -1,6 +1,3 @@ | |||
| -- enable read config from CWD | ||||
| vim.o.exrc = true | ||||
| 
 | ||||
| -- enable 24-bit color for nvim-notify | ||||
| vim.o.termguicolors = true | ||||
| 
 | ||||
|  | @ -46,23 +43,10 @@ vim.keymap.set("n", "<leader>c", "<cmd>bdelete<cr>", { silent = true }) | |||
| 
 | ||||
| vim.keymap.set("n", "<leader>nh", "<cmd>nohlsearch<cr>", { silent = true }) | ||||
| 
 | ||||
| -- Load custom config | ||||
| custom = { | ||||
|     full_feature = false, | ||||
|     proxy_url = "", | ||||
| } | ||||
| 
 | ||||
| local custom_config_path = vim.fn.stdpath("config") .. "/custom.lua" | ||||
| local ok, t = pcall(dofile, custom_config_path) | ||||
| if ok then | ||||
|     for k, v in pairs(t) do | ||||
|         custom[k] = v | ||||
|     end | ||||
| end | ||||
| 
 | ||||
| -- Use lazy.nvim as plugin manager, and load plugin's config | ||||
| local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | ||||
| if not vim.loop.fs_stat(lazypath) then | ||||
| if not vim.uv.fs_stat(lazypath) then | ||||
|   vim.fn.system({ | ||||
|     "git", | ||||
|     "clone", | ||||
|  |  | |||
|  | @ -62,7 +62,6 @@ local lua_ls_opts = { | |||
| return { | ||||
|     { | ||||
|         "neovim/nvim-lspconfig", | ||||
|         enabled = custom.full_feature, | ||||
|         dependencies = { | ||||
|             "hrsh7th/nvim-cmp", | ||||
|             "hrsh7th/cmp-nvim-lsp", | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| return { | ||||
|     "akinsho/bufferline.nvim", | ||||
|     enabled = custom.full_feature, | ||||
|     main = "bufferline", | ||||
|     event = "VeryLazy", | ||||
|     keys = { | ||||
|  |  | |||
|  | @ -2,7 +2,6 @@ return { | |||
|     "lewis6991/gitsigns.nvim", | ||||
|     main = "gitsigns", | ||||
|     event = "VeryLazy", | ||||
|     enabled = custom.full_feature, | ||||
|     opts = { | ||||
|         on_attach = function(bufnr) | ||||
|             local gs = package.loaded.gitsigns | ||||
|  |  | |||
|  | @ -8,7 +8,6 @@ end | |||
| 
 | ||||
| return { | ||||
|     "nvim-lualine/lualine.nvim", | ||||
|     enabled = custom.full_feature, | ||||
|     dependencies = { | ||||
|         "nvim-tree/nvim-web-devicons", | ||||
|         "dokwork/lualine-ex", | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue