Merge branch 'master' of github.com:llcoolkm/nvim
This commit is contained in:
		
						commit
						fbbc75499a
					
				| 
						 | 
				
			
			@ -1,7 +1,4 @@
 | 
			
		|||
tags
 | 
			
		||||
test.sh
 | 
			
		||||
.luarc.json
 | 
			
		||||
nvim
 | 
			
		||||
 | 
			
		||||
spell/
 | 
			
		||||
lazy-lock.json
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										123
									
								
								README.md
								
								
								
								
							
							
						
						
									
										123
									
								
								README.md
								
								
								
								
							| 
						 | 
				
			
			@ -1,23 +1,14 @@
 | 
			
		|||
# kickstart.nvim
 | 
			
		||||
# NVIM
 | 
			
		||||
 | 
			
		||||
## Introduction
 | 
			
		||||
 | 
			
		||||
A starting point for Neovim that is:
 | 
			
		||||
 | 
			
		||||
* Small
 | 
			
		||||
* Single-file
 | 
			
		||||
* Completely Documented
 | 
			
		||||
 | 
			
		||||
**NOT** a Neovim distribution, but instead a starting point for your configuration.
 | 
			
		||||
My NeoVIM configuration. Intially based on Kickstart.nvim.
 | 
			
		||||
 | 
			
		||||
## Installation
 | 
			
		||||
 | 
			
		||||
### Install Neovim
 | 
			
		||||
 | 
			
		||||
Kickstart.nvim targets *only* the latest
 | 
			
		||||
['stable'](https://github.com/neovim/neovim/releases/tag/stable) and latest
 | 
			
		||||
['nightly'](https://github.com/neovim/neovim/releases/tag/nightly) of Neovim.
 | 
			
		||||
If you are experiencing issues, please make sure you have the latest versions.
 | 
			
		||||
TODO: Add instructions for installing Neovim.
 | 
			
		||||
 | 
			
		||||
### Install External Dependencies
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -28,18 +19,13 @@ External Requirements:
 | 
			
		|||
- 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
 | 
			
		||||
- Language Setup:
 | 
			
		||||
  - If you want to write Typescript, you need `npm`
 | 
			
		||||
  - If you want to write Golang, you will need `go`
 | 
			
		||||
  - etc.
 | 
			
		||||
  - npm
 | 
			
		||||
- AI setup
 | 
			
		||||
  - copilot
 | 
			
		||||
  - codeium
 | 
			
		||||
  - chatgpt
 | 
			
		||||
 | 
			
		||||
> **NOTE**
 | 
			
		||||
> See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes
 | 
			
		||||
> and quick install snippets
 | 
			
		||||
 | 
			
		||||
### Install Kickstart
 | 
			
		||||
 | 
			
		||||
> **NOTE**
 | 
			
		||||
> [Backup](#FAQ) your previous configuration (if any exists)
 | 
			
		||||
### Configuration layout
 | 
			
		||||
 | 
			
		||||
Neovim's configurations are located under the following paths, depending on your OS:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -49,104 +35,29 @@ Neovim's configurations are located under the following paths, depending on your
 | 
			
		|||
| Windows (cmd)| `%localappdata%\nvim\` |
 | 
			
		||||
| Windows (powershell)| `$env:LOCALAPPDATA\nvim\` |
 | 
			
		||||
 | 
			
		||||
#### Recommended Step
 | 
			
		||||
 | 
			
		||||
[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo
 | 
			
		||||
so that you have your own copy that you can modify, then install by cloning the
 | 
			
		||||
fork to your machine using one of the commands below, depending on your OS.
 | 
			
		||||
### Installation
 | 
			
		||||
 | 
			
		||||
> **NOTE**
 | 
			
		||||
> Your fork's url will be something like this:
 | 
			
		||||
> `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
 | 
			
		||||
> **NOTE**
 | 
			
		||||
> If following the recommended step above (i.e., forking the repo), replace
 | 
			
		||||
> `nvim-lua` with `<your_github_username>` in the commands below
 | 
			
		||||
 | 
			
		||||
<details><summary> Linux and Mac </summary>
 | 
			
		||||
#### Linux
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
 | 
			
		||||
git clone https://github.com/llcoolkm/nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</details>
 | 
			
		||||
 | 
			
		||||
<details><summary> Windows </summary>
 | 
			
		||||
 | 
			
		||||
If you're using `cmd.exe`:
 | 
			
		||||
#### Windows
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
git clone https://github.com/nvim-lua/kickstart.nvim.git "%localappdata%\nvim"
 | 
			
		||||
git clone https://github.com/llcoolkm/nvim.git "%localappdata%\nvim"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
If you're using `powershell.exe`
 | 
			
		||||
 | 
			
		||||
or
 | 
			
		||||
```
 | 
			
		||||
git clone https://github.com/nvim-lua/kickstart.nvim.git "${env:LOCALAPPDATA}\nvim"
 | 
			
		||||
git clone https://github.com/llcoolkm/nvim.git "${env:LOCALAPPDATA}\nvim"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</details>
 | 
			
		||||
 | 
			
		||||
### Post Installation
 | 
			
		||||
 | 
			
		||||
Start Neovim
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
nvim
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
That's it! Lazy will install all the plugins you have. Use `:Lazy` to view
 | 
			
		||||
current plugin status. Hit `q` to close the window.
 | 
			
		||||
 | 
			
		||||
Read through the `init.lua` file in your configuration folder for more
 | 
			
		||||
information about extending and exploring Neovim. That also includes
 | 
			
		||||
examples of adding popularly requested plugins.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Getting Started
 | 
			
		||||
 | 
			
		||||
[The Only Video You Need to Get Started with Neovim](https://youtu.be/m8C0Cq9Uv9o)
 | 
			
		||||
 | 
			
		||||
### FAQ
 | 
			
		||||
 | 
			
		||||
* What should I do if I already have a pre-existing neovim configuration?
 | 
			
		||||
  * You should back it up and then delete all associated files.
 | 
			
		||||
  * This includes your existing init.lua and the neovim files in `~/.local`
 | 
			
		||||
    which can be deleted with `rm -rf ~/.local/share/nvim/`
 | 
			
		||||
* Can I keep my existing configuration in parallel to kickstart?
 | 
			
		||||
  * Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME`
 | 
			
		||||
    to maintain multiple configurations. For example, you can install the kickstart
 | 
			
		||||
    configuration in `~/.config/nvim-kickstart` and create an alias:
 | 
			
		||||
    ```
 | 
			
		||||
    alias nvim-kickstart='NVIM_APPNAME="nvim-kickstart" nvim'
 | 
			
		||||
    ```
 | 
			
		||||
    When you run Neovim using `nvim-kickstart` alias it will use the alternative
 | 
			
		||||
    config directory and the matching local directory
 | 
			
		||||
    `~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim
 | 
			
		||||
    distribution that you would like to try out.
 | 
			
		||||
* What if I want to "uninstall" this configuration:
 | 
			
		||||
  * See [lazy.nvim uninstall](https://lazy.folke.io/usage#-uninstalling) information
 | 
			
		||||
* Why is the kickstart `init.lua` a single file? Wouldn't it make sense to split it into multiple files?
 | 
			
		||||
  * The main purpose of kickstart is to serve as a teaching tool and a reference
 | 
			
		||||
    configuration that someone can easily use to `git clone` as a basis for their own.
 | 
			
		||||
    As you progress in learning Neovim and Lua, you might consider splitting `init.lua`
 | 
			
		||||
    into smaller parts. A fork of kickstart that does this while maintaining the 
 | 
			
		||||
    same functionality is available here:
 | 
			
		||||
    * [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim)
 | 
			
		||||
  * Discussions on this topic can be found here:
 | 
			
		||||
    * [Restructure the configuration](https://github.com/nvim-lua/kickstart.nvim/issues/218)
 | 
			
		||||
    * [Reorganize init.lua into a multi-file setup](https://github.com/nvim-lua/kickstart.nvim/pull/473)
 | 
			
		||||
 | 
			
		||||
### Install Recipes
 | 
			
		||||
 | 
			
		||||
Below you can find OS specific install instructions for Neovim and dependencies.
 | 
			
		||||
 | 
			
		||||
After installing all the dependencies continue with the [Install Kickstart](#Install-Kickstart) step.
 | 
			
		||||
 | 
			
		||||
#### Windows Installation
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -207,7 +118,7 @@ sudo apt update
 | 
			
		|||
sudo apt install make gcc ripgrep unzip git xclip curl
 | 
			
		||||
 | 
			
		||||
# Now we install nvim
 | 
			
		||||
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
 | 
			
		||||
curl -LO https://github.com/neovim/neovim/releases/download/v0.10.2/nvim-linux64.tar.gz
 | 
			
		||||
sudo rm -rf /opt/nvim-linux64
 | 
			
		||||
sudo mkdir -p /opt/nvim-linux64
 | 
			
		||||
sudo chmod a+rX /opt/nvim-linux64
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,50 @@
 | 
			
		|||
{
 | 
			
		||||
  "ChatGPT.nvim": { "branch": "main", "commit": "5b6d296eefc75331e2ff9f0adcffbd7d27862dd6" },
 | 
			
		||||
  "auto-session": { "branch": "main", "commit": "021b64ed7d4ac68a37be3ad28d8e1cba5bec582c" },
 | 
			
		||||
  "catppuccin": { "branch": "main", "commit": "faf15ab0201b564b6368ffa47b56feefc92ce3f4" },
 | 
			
		||||
  "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
 | 
			
		||||
  "codeium.nvim": { "branch": "main", "commit": "27d2b1ce8c7ba14dbf6e4504bdea8e5548be5476" },
 | 
			
		||||
  "conform.nvim": { "branch": "master", "commit": "02fd64fb3d4b18ec029c0e0683c3dc3ec6d2c5b8" },
 | 
			
		||||
  "copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" },
 | 
			
		||||
  "cyberdream.nvim": { "branch": "main", "commit": "731290012f435e06e4d5d64ed7c09cec49df2663" },
 | 
			
		||||
  "fidget.nvim": { "branch": "main", "commit": "e2a175c2abe2d4f65357da1c98c59a5cfb2b543f" },
 | 
			
		||||
  "flybuf.nvim": { "branch": "main", "commit": "fe1fbd9699f6988a1db3b2e2ffa599154784c6e1" },
 | 
			
		||||
  "gitsigns.nvim": { "branch": "main", "commit": "5f808b5e4fef30bd8aca1b803b4e555da07fc412" },
 | 
			
		||||
  "indent-blankline.nvim": { "branch": "master", "commit": "259357fa4097e232730341fa60988087d189193a" },
 | 
			
		||||
  "kanagawa.nvim": { "branch": "master", "commit": "ad3dddecd606746374ba4807324a08331dfca23c" },
 | 
			
		||||
  "lazy.nvim": { "branch": "main", "commit": "014d1d6d78df4e58f962158e6e00261d8632612c" },
 | 
			
		||||
  "lazydev.nvim": { "branch": "main", "commit": "f59bd14a852ca43db38e3662395354cb2a9b13e0" },
 | 
			
		||||
  "lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
 | 
			
		||||
  "lush.nvim": { "branch": "main", "commit": "45a79ec4acb5af783a6a29673a999ce37f00497e" },
 | 
			
		||||
  "luvit-meta": { "branch": "main", "commit": "57d464c4acb5c2e66bd4145060f5dc9e96a7bbb7" },
 | 
			
		||||
  "mason-lspconfig.nvim": { "branch": "main", "commit": "8e46de9241d3997927af12196bd8faa0ed08c29a" },
 | 
			
		||||
  "mason-nvim-dap.nvim": { "branch": "main", "commit": "8b9363d83b5d779813cdd2819b8308651cec2a09" },
 | 
			
		||||
  "mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
 | 
			
		||||
  "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
 | 
			
		||||
  "mini.nvim": { "branch": "main", "commit": "73bbcbfa7839c4b00a64965fb504f87461abefbd" },
 | 
			
		||||
  "neo-tree.nvim": { "branch": "main", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" },
 | 
			
		||||
  "newpaper.nvim": { "branch": "main", "commit": "68a88c430c0bc60af3b1097480a4ce7ea2984ed5" },
 | 
			
		||||
  "nightfox.nvim": { "branch": "main", "commit": "7557f26defd093c4e9bc17f28b08403f706f5a44" },
 | 
			
		||||
  "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
 | 
			
		||||
  "nvim-autopairs": { "branch": "master", "commit": "b464658e9b880f463b9f7e6ccddd93fb0013f559" },
 | 
			
		||||
  "nvim-cmp": { "branch": "main", "commit": "ca4d3330d386e76967e53b85953c170658255ecb" },
 | 
			
		||||
  "nvim-dap": { "branch": "master", "commit": "580d6e526358afd0e4bba053e68fd59cf581a161" },
 | 
			
		||||
  "nvim-dap-go": { "branch": "main", "commit": "6aa88167ea1224bcef578e8c7160fe8afbb44848" },
 | 
			
		||||
  "nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" },
 | 
			
		||||
  "nvim-lspconfig": { "branch": "master", "commit": "47f236c058f0511702286a21ba53bbf42abbd8a8" },
 | 
			
		||||
  "nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
 | 
			
		||||
  "nvim-tree.lua": { "branch": "master", "commit": "6b4be1dc0cd4d5d5b8e8b56b510a75016e99746f" },
 | 
			
		||||
  "nvim-treesitter": { "branch": "master", "commit": "894cb3cebbad0535fb4e319ada5d875dbc48d8b9" },
 | 
			
		||||
  "nvim-web-devicons": { "branch": "master", "commit": "87c34abe5d1dc7c1c0a95aaaf888059c614c68ac" },
 | 
			
		||||
  "onedark": { "branch": "master", "commit": "67a74c275d1116d575ab25485d1bfa6b2a9c38a6" },
 | 
			
		||||
  "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
 | 
			
		||||
  "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
 | 
			
		||||
  "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
 | 
			
		||||
  "telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
 | 
			
		||||
  "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
 | 
			
		||||
  "tokyonight.nvim": { "branch": "main", "commit": "355e2842291dbf51b2c5878e9e37281bbef09783" },
 | 
			
		||||
  "trouble.nvim": { "branch": "main", "commit": "46cf952fc115f4c2b98d4e208ed1e2dce08c9bf6" },
 | 
			
		||||
  "vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
 | 
			
		||||
  "which-key.nvim": { "branch": "main", "commit": "9b365a6428a9633e3eeb34dbef1b791511c54f70" },
 | 
			
		||||
  "zenbones.nvim": { "branch": "main", "commit": "88960c8aa3ad8aff0bcccdce7cd23629c7a3c510" }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -40,7 +40,7 @@ return {
 | 
			
		|||
  map('n', '<C-w>d', ':bp<bar>sp<bar>bn<bar>bd<CR>', { desc = 'close the current buffer' }),
 | 
			
		||||
 | 
			
		||||
  -- neo-tree
 | 
			
		||||
  vim.keymap.set('n', '<leader>e', ':Neotree reveal<CR>', { desc = 'Open file browser' }),
 | 
			
		||||
  map('n', '<leader>e', ':Neotree toggle<CR>', { desc = 'Open or close file browser' }),
 | 
			
		||||
 | 
			
		||||
  -- terraform
 | 
			
		||||
  map('n', '<leader>ti', ':!terraform init -no-color<CR>', { desc = 'terraform init' }),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue