fixing readme to include stuff taken from my other dev repo
This commit is contained in:
		
							parent
							
								
									a0976ac735
								
							
						
					
					
						commit
						a03a667c22
					
				
							
								
								
									
										213
									
								
								README.md
								
								
								
								
							
							
						
						
									
										213
									
								
								README.md
								
								
								
								
							|  | @ -1,171 +1,108 @@ | ||||||
| # kickstart.nvim | Setting up Dev Environment | ||||||
| 
 | 
 | ||||||
| https://github.com/kdheepak/kickstart.nvim/assets/1813121/f3ff9a2b-c31f-44df-a4fa-8a0d7b17cf7b | # Operating System | ||||||
| 
 | 
 | ||||||
| ### Introduction | ## Installing Fonts | ||||||
| 
 | ```bash | ||||||
| A starting point for Neovim that is: | wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf | ||||||
| 
 | wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf | ||||||
| * Small | wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf | ||||||
| * Single-file (with examples of moving to multi-file) | wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf | ||||||
| * Documented |  | ||||||
| * Modular |  | ||||||
| 
 |  | ||||||
| This repo is meant to be used by **YOU** to begin your Neovim journey; remove the things you don't use and add what you miss. |  | ||||||
| 
 |  | ||||||
| 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. |  | ||||||
| 
 |  | ||||||
| Distribution Alternatives: |  | ||||||
| - [LazyVim](https://www.lazyvim.org/): A delightful distribution maintained by @folke (the author of lazy.nvim, the package manager used here) |  | ||||||
| 
 |  | ||||||
| ### Installation |  | ||||||
| 
 |  | ||||||
| > **NOTE**  |  | ||||||
| > [Backup](#FAQ) your previous configuration (if any exists) |  | ||||||
| 
 |  | ||||||
| Requirements: |  | ||||||
| * Make sure to review the readmes of the plugins if you are experiencing errors. In particular: |  | ||||||
|   * [ripgrep](https://github.com/BurntSushi/ripgrep#installation) is required for multiple [telescope](https://github.com/nvim-telescope/telescope.nvim#suggested-dependencies) pickers. |  | ||||||
| * See [Windows Installation](#Windows-Installation) if you have trouble with `telescope-fzf-native` |  | ||||||
| 
 |  | ||||||
| Neovim's configurations are located under the following paths, depending on your OS: |  | ||||||
| 
 |  | ||||||
| | OS | PATH | |  | ||||||
| | :- | :--- | |  | ||||||
| | Linux | `$XDG_CONFIG_HOME/nvim`, `~/.config/nvim` | |  | ||||||
| | MacOS | `$XDG_CONFIG_HOME/nvim`, `~/.config/nvim` | |  | ||||||
| | Windows | `%userprofile%\AppData\Local\nvim\` | |  | ||||||
| 
 |  | ||||||
| Clone kickstart.nvim: |  | ||||||
| 
 |  | ||||||
| ```sh |  | ||||||
| # on Linux and Mac |  | ||||||
| git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | ## Install command line stuff | ||||||
|  | fd | ||||||
|  | ripgrep | ||||||
|  | tmux | ||||||
| 
 | 
 | ||||||
| ``` | # Shell | ||||||
| # on Windows | 
 | ||||||
| git clone https://github.com/nvim-lua/kickstart.nvim.git %userprofile%\AppData\Local\nvim\  | ## ZSH (standard with mac) | ||||||
|  | https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH | ||||||
|  | 
 | ||||||
|  | ## Oh-My-Zsh | ||||||
|  | The plugin management for ZSH | ||||||
|  | https://github.com/ohmyzsh/ohmyzsh | ||||||
|  | 
 | ||||||
|  | ```bash | ||||||
|  | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Post Installation | ## Powerlevel10k | ||||||
|  | https://github.com/romkatv/powerlevel10k#oh-my-zsh | ||||||
| 
 | 
 | ||||||
| Start Neovim | ```bash | ||||||
| 
 | git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | ||||||
| ```sh |  | ||||||
| nvim |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| The `Lazy` plugin manager will start automatically on the first run and install the configured plugins - as can be seen in the introduction video. After the installation is complete you can press `q` to close the `Lazy` UI and **you are ready to go**! Next time you run nvim `Lazy` will no longer show up. | In `~/.zshrc` | ||||||
| 
 | ``` | ||||||
| If you would prefer to hide this step and run the plugin sync from the command line, you can use: | ZSH_THEME="powerlevel10k/powerlevel10k" | ||||||
| 
 |  | ||||||
| ```sh |  | ||||||
| nvim --headless "+Lazy! sync" +qa |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Recommended Steps | # Terminal Management | ||||||
| 
 | 
 | ||||||
| [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) and then installing you can install to your machine using the methods above. | Install tmux | ||||||
|  | https://github.com/tmux/tmux/wiki | ||||||
| 
 | 
 | ||||||
| > **NOTE**   | Install TPM | ||||||
| > Your fork's url will be something like this: `https://github.com/<your_github_username>/kickstart.nvim.git` | https://github.com/tmux-plugins/tpm | ||||||
| 
 | 
 | ||||||
| ### Configuration And Extension | ```bash | ||||||
| 
 | git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | ||||||
| * Inside of your copy, feel free to modify any file you like! It's your copy! |  | ||||||
| * Feel free to change any of the default options in `init.lua` to better suit your needs. |  | ||||||
| * For adding plugins, there are 3 primary options: |  | ||||||
|   * Add new configuration in `lua/custom/plugins/*` files, which will be auto sourced using `lazy.nvim` (uncomment the line importing the `custom/plugins` directory in the `init.lua` file to enable this) |  | ||||||
|   * Modify `init.lua` with additional plugins. |  | ||||||
|   * Include the `lua/kickstart/plugins/*` files in your configuration. |  | ||||||
| 
 |  | ||||||
| You can also merge updates/changes from the repo back into your fork, to keep up-to-date with any changes for the default configuration. |  | ||||||
| 
 |  | ||||||
| #### Example: Adding an autopairs plugin |  | ||||||
| 
 |  | ||||||
| In the file: `lua/custom/plugins/autopairs.lua`, add: |  | ||||||
| 
 |  | ||||||
| ```lua |  | ||||||
| -- File: lua/custom/plugins/autopairs.lua |  | ||||||
| 
 |  | ||||||
| return { |  | ||||||
|   "windwp/nvim-autopairs", |  | ||||||
|   -- Optional dependency |  | ||||||
|   dependencies = { 'hrsh7th/nvim-cmp' }, |  | ||||||
|   config = function() |  | ||||||
|     require("nvim-autopairs").setup {} |  | ||||||
|     -- If you want to automatically add `(` after selecting a function or method |  | ||||||
|     local cmp_autopairs = require('nvim-autopairs.completion.cmp') |  | ||||||
|     local cmp = require('cmp') |  | ||||||
|     cmp.event:on( |  | ||||||
|       'confirm_done', |  | ||||||
|       cmp_autopairs.on_confirm_done() |  | ||||||
|     ) |  | ||||||
|   end, |  | ||||||
| } |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | At bottom of `~/.tmux.conf` | ||||||
|  | ``` | ||||||
|  | # List of plugins | ||||||
|  | set -g @plugin 'tmux-plugins/tpm' | ||||||
|  | set -g @plugin 'tmux-plugins/tmux-sensible' | ||||||
| 
 | 
 | ||||||
| This will automatically install [windwp/nvim-autopairs](https://github.com/windwp/nvim-autopairs) and enable it on startup. For more information, see documentation for [lazy.nvim](https://github.com/folke/lazy.nvim). | # Other examples: | ||||||
|  | # set -g @plugin 'github_username/plugin_name' | ||||||
|  | # set -g @plugin 'github_username/plugin_name#branch' | ||||||
|  | # set -g @plugin 'git@github.com:user/plugin' | ||||||
|  | # set -g @plugin 'git@bitbucket.com:user/plugin' | ||||||
| 
 | 
 | ||||||
| #### Example: Adding a file tree plugin | # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | ||||||
| 
 | run '~/.tmux/plugins/tpm/tpm' | ||||||
| In the file: `lua/custom/plugins/filetree.lua`, add: |  | ||||||
| 
 |  | ||||||
| ```lua |  | ||||||
| -- Unless you are still migrating, remove the deprecated commands from v1.x |  | ||||||
| vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) |  | ||||||
| 
 |  | ||||||
| return { |  | ||||||
|   "nvim-neo-tree/neo-tree.nvim", |  | ||||||
|   version = "*", |  | ||||||
|   dependencies = { |  | ||||||
|     "nvim-lua/plenary.nvim", |  | ||||||
|     "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended |  | ||||||
|     "MunifTanjim/nui.nvim", |  | ||||||
|   }, |  | ||||||
|   config = function () |  | ||||||
|     require('neo-tree').setup {} |  | ||||||
|   end, |  | ||||||
| } |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| This will install the tree plugin and add the command `:Neotree` for you. You can explore the documentation at [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) for more information. | ## Plugins | ||||||
|  | The installation of these should be covered by the included .tmux.conf | ||||||
|  | To install plugins, use prefix + I (capital ) | ||||||
|  | https://draculatheme.com/tmux | ||||||
| 
 | 
 | ||||||
| ### Contribution | # Once ZSH is setup, then add this to the bottom of ~/.zshrc to open tmux with new terminals. | ||||||
|  | if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then | ||||||
|  |   exec tmux new-session -A -s main | ||||||
|  | fi | ||||||
| 
 | 
 | ||||||
| Pull-requests are welcome. The goal of this repo is not to create a Neovim configuration framework, but to offer a starting template that shows, by example, available features in Neovim. Some things that will not be included: | # Editor | ||||||
| 
 | 
 | ||||||
| * Custom language server configuration (null-ls templates) | Install neovim | ||||||
| * Theming beyond a default colorscheme necessary for LSP highlight groups |  | ||||||
| 
 | 
 | ||||||
| Each PR, especially those which increase the line count, should have a description as to why the PR is necessary. | ## Plugin Management | ||||||
| 
 | 
 | ||||||
| ### FAQ | Using Packer | ||||||
|  | https://github.com/wbthomason/packer.nvim#bootstrapping | ||||||
| 
 | 
 | ||||||
| * What should I do if I already have a pre-existing neovim configuration? |  | ||||||
|   * You should back it up, then delete all files associated with it. |  | ||||||
|   * This includes your existing init.lua and the neovim files in `~/.local` which can be deleted with `rm -rf ~/.local/share/nvim/` |  | ||||||
|   * You may also want to look at the [migration guide for lazy.nvim](https://github.com/folke/lazy.nvim#-migration-guide) |  | ||||||
| * What if I want to "uninstall" this configuration: |  | ||||||
|   * See [lazy.nvim uninstall](https://github.com/folke/lazy.nvim#-uninstalling) information |  | ||||||
| * Are there any cool videos about this plugin? |  | ||||||
|   * Current iteration of kickstart (coming soon) |  | ||||||
|   * Here is one about the previous iteration of kickstart: [video introduction to Kickstart.nvim](https://youtu.be/stqUbv-5u2s). Note the install via init.lua no longer works as specified. Please follow the install instructions in this file instead as they're up to date. |  | ||||||
| 
 | 
 | ||||||
| ### Windows Installation | # Important Config Files | ||||||
|  | ~/.zshrc | ||||||
|  | ~/.tmux.conf | ||||||
|  | ~/.config/nvim | ||||||
| 
 | 
 | ||||||
| Installation may require installing build tools, and updating the run command for `telescope-fzf-native` | # Useful Videos | ||||||
|  | https://www.youtube.com/watch?v=H70lULWJeig | ||||||
| 
 | 
 | ||||||
| See `telescope-fzf-native` documentation for [more details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation) | # Java Debugging Setup | ||||||
|  | Following steps from here | ||||||
|  | https://sookocheff.com/post/vim/neovim-java-ide/ | ||||||
| 
 | 
 | ||||||
| This requires: | Clone this repo | ||||||
|  | https://github.com/microsoft/java-debug | ||||||
| 
 | 
 | ||||||
| - Install CMake, and the Microsoft C++ Build Tools on Windows | cd into the repo | ||||||
| 
 | `./mvnw clean install` | ||||||
| ```lua |  | ||||||
| {'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' } |  | ||||||
| ``` |  | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										13
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										13
									
								
								init.lua
								
								
								
								
							|  | @ -445,6 +445,13 @@ local servers = { | ||||||
|       telemetry = { enable = false }, |       telemetry = { enable = false }, | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|  |   jdtls = { | ||||||
|  |     init_options = { | ||||||
|  |       bundles = { | ||||||
|  |         vim.fn.glob('~/Users/joesharp/.m2/repository/com/microsoft/java/com.microsoft.java.debug.plugin/0.50.0/com.microsoft.java.debug.plugin-0.50.0.jar') | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| -- Setup neovim lua configuration | -- Setup neovim lua configuration | ||||||
|  | @ -523,3 +530,9 @@ cmp.setup { | ||||||
| vim.wo.relativenumber = true | vim.wo.relativenumber = true | ||||||
| -- The line beneath this is called `modeline`. See `:help modeline` | -- The line beneath this is called `modeline`. See `:help modeline` | ||||||
| -- vim: ts=2 sts=2 sw=2 et | -- vim: ts=2 sts=2 sw=2 et | ||||||
|  | 
 | ||||||
|  | -- Setup OIL | ||||||
|  | require("oil").setup() | ||||||
|  | vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" }) | ||||||
|  | 
 | ||||||
|  | -- Setup Java Debugging | ||||||
|  |  | ||||||
|  | @ -18,6 +18,8 @@ | ||||||
|   "nvim-tree.lua": { "branch": "master", "commit": "a2aaf8b430c11af36b869cf1c0ad2f7c8ceeaf2c" }, |   "nvim-tree.lua": { "branch": "master", "commit": "a2aaf8b430c11af36b869cf1c0ad2f7c8ceeaf2c" }, | ||||||
|   "nvim-treesitter": { "branch": "master", "commit": "04a9a90c2a60c86aa9451c539586326b337b03e5" }, |   "nvim-treesitter": { "branch": "master", "commit": "04a9a90c2a60c86aa9451c539586326b337b03e5" }, | ||||||
|   "nvim-treesitter-textobjects": { "branch": "master", "commit": "dbcd9388e3b119a87c785e10a00d62876077d23d" }, |   "nvim-treesitter-textobjects": { "branch": "master", "commit": "dbcd9388e3b119a87c785e10a00d62876077d23d" }, | ||||||
|  |   "nvim-web-devicons": { "branch": "master", "commit": "11eb26fc166742db8d1e8a6f5a7de9df37b09aae" }, | ||||||
|  |   "oil.nvim": { "branch": "master", "commit": "af04969c437e0c46a2b3c86d7892458e878ecc40" }, | ||||||
|   "onedark.nvim": { "branch": "master", "commit": "b9acd92ded2ba155867ca5af9d618e933d96e3b0" }, |   "onedark.nvim": { "branch": "master", "commit": "b9acd92ded2ba155867ca5af9d618e933d96e3b0" }, | ||||||
|   "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, |   "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, | ||||||
|   "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, |   "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, | ||||||
|  |  | ||||||
|  | @ -39,5 +39,11 @@ return { | ||||||
|             }) |             }) | ||||||
|             vim.keymap.set('n', '<C-n>', ':NvimTreeFindFileToggle<CR>', { desc = 'Toggle File Tree' }) |             vim.keymap.set('n', '<C-n>', ':NvimTreeFindFileToggle<CR>', { desc = 'Toggle File Tree' }) | ||||||
|         end |         end | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         'stevearc/oil.nvim', | ||||||
|  |         opts = {}, | ||||||
|  |         -- Optional dependencies | ||||||
|  |         dependencies = { "nvim-tree/nvim-web-devicons" }, | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue