commit
						3617dee36e
					
				| 
						 | 
					@ -28,8 +28,8 @@ External Requirements:
 | 
				
			||||||
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
 | 
					- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
 | 
				
			||||||
  - if you have it set `vim.g.have_nerd_font` in `init.lua` to true
 | 
					  - if you have it set `vim.g.have_nerd_font` in `init.lua` to true
 | 
				
			||||||
- Language Setup:
 | 
					- Language Setup:
 | 
				
			||||||
  - If want to write Typescript, you need `npm`
 | 
					  - If you want to write Typescript, you need `npm`
 | 
				
			||||||
  - If want to write Golang, you will need `go`
 | 
					  - If you want to write Golang, you will need `go`
 | 
				
			||||||
  - etc.
 | 
					  - etc.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> **NOTE**
 | 
					> **NOTE**
 | 
				
			||||||
| 
						 | 
					@ -59,6 +59,10 @@ fork to your machine using one of the commands below, depending on your OS.
 | 
				
			||||||
> Your fork's url will be something like this:
 | 
					> Your fork's url will be something like this:
 | 
				
			||||||
> `https://github.com/<your_github_username>/kickstart.nvim.git`
 | 
					> `https://github.com/<your_github_username>/kickstart.nvim.git`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					You likely want to remove `lazy-lock.json` from your fork's `.gitignore` file
 | 
				
			||||||
 | 
					too - it's ignored in the kickstart repo to make maintenance easier, but it's
 | 
				
			||||||
 | 
					[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Clone kickstart.nvim
 | 
					#### Clone kickstart.nvim
 | 
				
			||||||
> **NOTE**
 | 
					> **NOTE**
 | 
				
			||||||
> If following the recommended step above (i.e., forking the repo), replace
 | 
					> If following the recommended step above (i.e., forking the repo), replace
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										62
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										62
									
								
								init.lua
								
								
								
								
							| 
						 | 
					@ -229,7 +229,7 @@ vim.keymap.set('n', '<S-l>', ':bn<CR>', { noremap = true, desc = '[G]oto [N]ext
 | 
				
			||||||
-- [[ Install `lazy.nvim` plugin manager ]]
 | 
					-- [[ Install `lazy.nvim` plugin manager ]]
 | 
				
			||||||
--    See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
 | 
					--    See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
 | 
				
			||||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
 | 
					local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
 | 
				
			||||||
if not vim.uv.fs_stat(lazypath) then
 | 
					if not (vim.uv or vim.loop).fs_stat(lazypath) then
 | 
				
			||||||
  local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
 | 
					  local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
 | 
				
			||||||
  local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
 | 
					  local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
 | 
				
			||||||
  if vim.v.shell_error ~= 0 then
 | 
					  if vim.v.shell_error ~= 0 then
 | 
				
			||||||
| 
						 | 
					@ -301,7 +301,44 @@ require('lazy').setup({
 | 
				
			||||||
    'folke/which-key.nvim',
 | 
					    'folke/which-key.nvim',
 | 
				
			||||||
    event = 'VimEnter', -- Sets the loading event to 'VimEnter'
 | 
					    event = 'VimEnter', -- Sets the loading event to 'VimEnter'
 | 
				
			||||||
    config = function() -- This is the function that runs, AFTER loading
 | 
					    config = function() -- This is the function that runs, AFTER loading
 | 
				
			||||||
      require('which-key').setup()
 | 
					      require('which-key').setup {
 | 
				
			||||||
 | 
					        icons = {
 | 
				
			||||||
 | 
					          -- set icon mappings to true if you have a Nerd Font
 | 
				
			||||||
 | 
					          mappings = vim.g.have_nerd_font,
 | 
				
			||||||
 | 
					          -- If you are using a Nerd Font: set icons.keys to an empty table which will use the
 | 
				
			||||||
 | 
					          -- default whick-key.nvim defined Nerd Font icons, otherwise define a string table
 | 
				
			||||||
 | 
					          keys = vim.g.have_nerd_font and {} or {
 | 
				
			||||||
 | 
					            Up = '<Up> ',
 | 
				
			||||||
 | 
					            Down = '<Down> ',
 | 
				
			||||||
 | 
					            Left = '<Left> ',
 | 
				
			||||||
 | 
					            Right = '<Right> ',
 | 
				
			||||||
 | 
					            C = '<C-…> ',
 | 
				
			||||||
 | 
					            M = '<M-…> ',
 | 
				
			||||||
 | 
					            D = '<D-…> ',
 | 
				
			||||||
 | 
					            S = '<S-…> ',
 | 
				
			||||||
 | 
					            CR = '<CR> ',
 | 
				
			||||||
 | 
					            Esc = '<Esc> ',
 | 
				
			||||||
 | 
					            ScrollWheelDown = '<ScrollWheelDown> ',
 | 
				
			||||||
 | 
					            ScrollWheelUp = '<ScrollWheelUp> ',
 | 
				
			||||||
 | 
					            NL = '<NL> ',
 | 
				
			||||||
 | 
					            BS = '<BS> ',
 | 
				
			||||||
 | 
					            Space = '<Space> ',
 | 
				
			||||||
 | 
					            Tab = '<Tab> ',
 | 
				
			||||||
 | 
					            F1 = '<F1>',
 | 
				
			||||||
 | 
					            F2 = '<F2>',
 | 
				
			||||||
 | 
					            F3 = '<F3>',
 | 
				
			||||||
 | 
					            F4 = '<F4>',
 | 
				
			||||||
 | 
					            F5 = '<F5>',
 | 
				
			||||||
 | 
					            F6 = '<F6>',
 | 
				
			||||||
 | 
					            F7 = '<F7>',
 | 
				
			||||||
 | 
					            F8 = '<F8>',
 | 
				
			||||||
 | 
					            F9 = '<F9>',
 | 
				
			||||||
 | 
					            F10 = '<F10>',
 | 
				
			||||||
 | 
					            F11 = '<F11>',
 | 
				
			||||||
 | 
					            F12 = '<F12>',
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      -- Document existing key chains
 | 
					      -- Document existing key chains
 | 
				
			||||||
      require('which-key').add {
 | 
					      require('which-key').add {
 | 
				
			||||||
| 
						 | 
					@ -931,6 +968,8 @@ require('lazy').setup({
 | 
				
			||||||
  { -- Highlight, edit, and navigate code
 | 
					  { -- Highlight, edit, and navigate code
 | 
				
			||||||
    'nvim-treesitter/nvim-treesitter',
 | 
					    'nvim-treesitter/nvim-treesitter',
 | 
				
			||||||
    build = ':TSUpdate',
 | 
					    build = ':TSUpdate',
 | 
				
			||||||
 | 
					    main = 'nvim-treesitter.configs', -- Sets main module to use for opts
 | 
				
			||||||
 | 
					    -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
 | 
				
			||||||
    opts = {
 | 
					    opts = {
 | 
				
			||||||
      ensure_installed = {
 | 
					      ensure_installed = {
 | 
				
			||||||
        'bash',
 | 
					        'bash',
 | 
				
			||||||
| 
						 | 
					@ -964,19 +1003,12 @@ require('lazy').setup({
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      indent = { enable = true, disable = { 'ruby' } },
 | 
					      indent = { enable = true, disable = { 'ruby' } },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    config = function(_, opts)
 | 
					    -- There are additional nvim-treesitter modules that you can use to interact
 | 
				
			||||||
      -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
 | 
					    -- with nvim-treesitter. You should go explore a few and see what interests you:
 | 
				
			||||||
 | 
					    --
 | 
				
			||||||
      ---@diagnostic disable-next-line: missing-fields
 | 
					    --    - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
 | 
				
			||||||
      require('nvim-treesitter.configs').setup(opts)
 | 
					    --    - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
 | 
				
			||||||
 | 
					    --    - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
 | 
				
			||||||
      -- There are additional nvim-treesitter modules that you can use to interact
 | 
					 | 
				
			||||||
      -- with nvim-treesitter. You should go explore a few and see what interests you:
 | 
					 | 
				
			||||||
      --
 | 
					 | 
				
			||||||
      --    - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
 | 
					 | 
				
			||||||
      --    - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
 | 
					 | 
				
			||||||
      --    - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
 | 
					 | 
				
			||||||
    end,
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
 | 
					  -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue