first git commit
This commit is contained in:
		
							parent
							
								
									3e6eef10d4
								
							
						
					
					
						commit
						cb329007c5
					
				
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										92
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										92
									
								
								init.lua
								
								
								
								
							|  | @ -1,8 +1,4 @@ | ||||||
| --THIS IS THIS TEST GIT COMMIT |  | ||||||
| --[[ | --[[ | ||||||
| 
 |  | ||||||
| ===================================================================== |  | ||||||
| ==================== READ THIS BEFORE CONTINUING ==================== |  | ||||||
| ===================================================================== | ===================================================================== | ||||||
| ========                                    .-----.          ======== | ========                                    .-----.          ======== | ||||||
| ========         .----------------------.   | === |          ======== | ========         .----------------------.   | === |          ======== | ||||||
|  | @ -21,56 +17,10 @@ | ||||||
| ===================================================================== | ===================================================================== | ||||||
| ===================================================================== | ===================================================================== | ||||||
| 
 | 
 | ||||||
| What is Kickstart? |  | ||||||
| 
 |  | ||||||
|   Kickstart.nvim is *not* a distribution. |  | ||||||
| 
 |  | ||||||
|   Kickstart.nvim is a starting point for your own configuration. |  | ||||||
|     The goal is that you can read every line of code, top-to-bottom, understand |  | ||||||
|     what your configuration is doing, and modify it to suit your needs. |  | ||||||
| 
 |  | ||||||
|     Once you've done that, you can start exploring, configuring and tinkering to |  | ||||||
|     make Neovim your own! That might mean leaving Kickstart just the way it is for a while |  | ||||||
|     or immediately breaking it into modular pieces. It's up to you! |  | ||||||
| 
 |  | ||||||
|     If you don't know anything about Lua, I recommend taking some time to read through |  | ||||||
|     a guide. One possible example which will only take 10-15 minutes: |  | ||||||
|       - https://learnxinyminutes.com/docs/lua/ |  | ||||||
| 
 |  | ||||||
|     After understanding a bit more about Lua, you can use `:help lua-guide` as a |  | ||||||
|     reference for how Neovim integrates Lua. |  | ||||||
|     - :help lua-guide |  | ||||||
|     - (or HTML version): https://neovim.io/doc/user/lua-guide.html |  | ||||||
| 
 |  | ||||||
| Kickstart Guide: | Kickstart Guide: | ||||||
| 
 | 
 | ||||||
|   TODO: The very first thing you should do is to run the command `:Tutor` in Neovim. |   TODO: The very first thing you should do is to run the command `:Tutor` in Neovim. | ||||||
| 
 | 
 | ||||||
|     If you don't know what this means, type the following: |  | ||||||
|       - <escape key> |  | ||||||
|       - : |  | ||||||
|       - Tutor |  | ||||||
|       - <enter key> |  | ||||||
| 
 |  | ||||||
|     (If you already know the Neovim basics, you can skip this step.) |  | ||||||
| 
 |  | ||||||
|   Once you've completed that, you can continue working through **AND READING** the rest |  | ||||||
|   of the kickstart init.lua. |  | ||||||
| 
 |  | ||||||
|   Next, run AND READ `:help`. |  | ||||||
|     This will open up a help window with some basic information |  | ||||||
|     about reading, navigating and searching the builtin help documentation. |  | ||||||
| 
 |  | ||||||
|     This should be the first place you go to look when you're stuck or confused |  | ||||||
|     with something. It's one of my favorite Neovim features. |  | ||||||
| 
 |  | ||||||
|     MOST IMPORTANTLY, we provide a keymap "<space>sh" to [s]earch the [h]elp documentation, |  | ||||||
|     which is very useful when you're not exactly sure of what you're looking for. |  | ||||||
| 
 |  | ||||||
|   I have left several `:help X` comments throughout the init.lua |  | ||||||
|     These are hints about where to find more information about the relevant settings, |  | ||||||
|     plugins or Neovim features used in Kickstart. |  | ||||||
| 
 |  | ||||||
|    NOTE: Look for lines like this |    NOTE: Look for lines like this | ||||||
| 
 | 
 | ||||||
|     Throughout the file. These are for you, the reader, to help you understand what is happening. |     Throughout the file. These are for you, the reader, to help you understand what is happening. | ||||||
|  | @ -92,18 +42,19 @@ vim.g.mapleader = ' ' | ||||||
| vim.g.maplocalleader = ' ' | vim.g.maplocalleader = ' ' | ||||||
| 
 | 
 | ||||||
| -- Set to true if you have a Nerd Font installed and selected in the terminal | -- Set to true if you have a Nerd Font installed and selected in the terminal | ||||||
| vim.g.have_nerd_font = false | vim.g.have_nerd_font = true | ||||||
| 
 | 
 | ||||||
| -- [[ Setting options ]] | -- [[ Setting options ]] | ||||||
| -- See `:help vim.opt` | -- See `:help vim.opt` | ||||||
| -- NOTE: You can change these options as you wish! | -- NOTE: You can change these options as you wish! | ||||||
| --  For more options, you can see `:help option-list` | --  For more options, you can see `:help option-list` | ||||||
| 
 | --- | ||||||
|  | vim.cmd 'let g:netrw_liststyle = 3' | ||||||
| -- Make line numbers default | -- Make line numbers default | ||||||
| vim.opt.number = true | vim.opt.number = true | ||||||
| -- You can also add relative line numbers, to help with jumping. | -- You can also add relative line numbers, to help with jumping. | ||||||
| --  Experiment for yourself to see if you like it! | --  Experiment for yourself to see if you like it! | ||||||
| -- vim.opt.relativenumber = true | vim.opt.relativenumber = true | ||||||
| 
 | 
 | ||||||
| -- Enable mouse mode, can be useful for resizing splits for example! | -- Enable mouse mode, can be useful for resizing splits for example! | ||||||
| vim.opt.mouse = 'a' | vim.opt.mouse = 'a' | ||||||
|  | @ -177,10 +128,10 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn | ||||||
| vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }) | vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }) | ||||||
| 
 | 
 | ||||||
| -- TIP: Disable arrow keys in normal mode | -- TIP: Disable arrow keys in normal mode | ||||||
| -- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>') | vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>') | ||||||
| -- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>') | vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>') | ||||||
| -- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>') | vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>') | ||||||
| -- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>') | vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>') | ||||||
| 
 | 
 | ||||||
| -- Keybinds to make split navigation easier. | -- Keybinds to make split navigation easier. | ||||||
| --  Use CTRL+<hjkl> to switch between windows | --  Use CTRL+<hjkl> to switch between windows | ||||||
|  | @ -190,13 +141,13 @@ vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left wind | ||||||
| vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' }) | vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' }) | ||||||
| vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) | vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) | ||||||
| vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) | vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) | ||||||
|  | --use 'jk' as <esc> in Insert mode | ||||||
|  | vim.keymap.set('n', '<C-]>', '<cmd>move +1<CR>') | ||||||
|  | vim.keymap.set('n', '<C-[>', '<cmd>move -2<CR>') | ||||||
|  | vim.keymap.set('i', 'jk', '<Esc>') | ||||||
|  | vim.keymap.set('n', 'fp', '<cmd>lua MiniFiles.open()<CR>') | ||||||
|  | vim.keymap.set('n', 'TT', '<cmd>ToggleTerm<CR>') | ||||||
| 
 | 
 | ||||||
| -- [[ Basic Autocommands ]] |  | ||||||
| --  See `:help lua-guide-autocommands` |  | ||||||
| 
 |  | ||||||
| -- Highlight when yanking (copying) text |  | ||||||
| --  Try it with `yap` in normal mode |  | ||||||
| --  See `:help vim.highlight.on_yank()` |  | ||||||
| vim.api.nvim_create_autocmd('TextYankPost', { | vim.api.nvim_create_autocmd('TextYankPost', { | ||||||
|   desc = 'Highlight when yanking (copying) text', |   desc = 'Highlight when yanking (copying) text', | ||||||
|   group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), |   group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), | ||||||
|  | @ -225,13 +176,16 @@ vim.opt.rtp:prepend(lazypath) | ||||||
| --  You can press `?` in this menu for help. Use `:q` to close the window | --  You can press `?` in this menu for help. Use `:q` to close the window | ||||||
| -- | -- | ||||||
| --  To update plugins you can run | --  To update plugins you can run | ||||||
|  | -- | ||||||
| --    :Lazy update | --    :Lazy update | ||||||
| -- | -- | ||||||
|  | -- This the beginning of and enormous line of code require('lazy').setup({}) | ||||||
|  | -- | ||||||
| -- NOTE: Here is where you install your plugins. | -- NOTE: Here is where you install your plugins. | ||||||
| require('lazy').setup({ | require('lazy').setup({ | ||||||
|   -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). |   -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). | ||||||
|   'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically |   'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically | ||||||
| 
 |   { 'echasnovski/mini.nvim', version = false }, | ||||||
|   -- NOTE: Plugins can also be added by using a table, |   -- NOTE: Plugins can also be added by using a table, | ||||||
|   -- with the first argument being the link and the following |   -- with the first argument being the link and the following | ||||||
|   -- keys can be used to configure plugin behavior/loading/etc. |   -- keys can be used to configure plugin behavior/loading/etc. | ||||||
|  | @ -290,7 +244,7 @@ require('lazy').setup({ | ||||||
|       } |       } | ||||||
|     end, |     end, | ||||||
|   }, |   }, | ||||||
| 
 |   { 'akinsho/toggleterm.nvim' }, | ||||||
|   -- NOTE: Plugins can specify dependencies. |   -- NOTE: Plugins can specify dependencies. | ||||||
|   -- |   -- | ||||||
|   -- The dependencies are proper plugin specifications as well - anything |   -- The dependencies are proper plugin specifications as well - anything | ||||||
|  | @ -599,12 +553,6 @@ require('lazy').setup({ | ||||||
|         }, |         }, | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|       -- Ensure the servers and tools above are installed |  | ||||||
|       --  To check the current status of installed tools and/or manually install |  | ||||||
|       --  other tools, you can run |  | ||||||
|       --    :Mason |  | ||||||
|       -- |  | ||||||
|       --  You can press `g?` for help in this menu. |  | ||||||
|       require('mason').setup() |       require('mason').setup() | ||||||
| 
 | 
 | ||||||
|       -- You can add other tools here that you want Mason to install |       -- You can add other tools here that you want Mason to install | ||||||
|  | @ -820,6 +768,8 @@ require('lazy').setup({ | ||||||
|       -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren |       -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren | ||||||
|       -- - sd'   - [S]urround [D]elete [']quotes |       -- - sd'   - [S]urround [D]elete [']quotes | ||||||
|       -- - sr)'  - [S]urround [R]eplace [)] ['] |       -- - sr)'  - [S]urround [R]eplace [)] ['] | ||||||
|  |       require('toggleterm').setup {} | ||||||
|  |       require('mini.files').setup() | ||||||
|       require('mini.surround').setup() |       require('mini.surround').setup() | ||||||
| 
 | 
 | ||||||
|       -- Simple and easy statusline. |       -- Simple and easy statusline. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue