mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-12-28 09:13:59 +00:00
Compare commits
3 Commits
961fdc8aad
...
4ed51a95a8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ed51a95a8 | ||
|
|
2abcb39fae | ||
|
|
a7e213e4f4 |
@ -33,13 +33,13 @@ External Requirements:
|
||||
- If you want to write Golang, you will need `go`
|
||||
- etc.
|
||||
|
||||
> **NOTE**
|
||||
> [!NOTE]
|
||||
> See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes
|
||||
> and quick install snippets
|
||||
|
||||
### Install Kickstart
|
||||
|
||||
> **NOTE**
|
||||
> [!NOTE]
|
||||
> [Backup](#FAQ) your previous configuration (if any exists)
|
||||
|
||||
Neovim's configurations are located under the following paths, depending on your OS:
|
||||
@ -56,7 +56,7 @@ Neovim's configurations are located under the following paths, depending on your
|
||||
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.
|
||||
|
||||
> **NOTE**
|
||||
> [!NOTE]
|
||||
> Your fork's URL will be something like this:
|
||||
> `https://github.com/<your_github_username>/kickstart.nvim.git`
|
||||
|
||||
@ -65,7 +65,8 @@ too - it's ignored in the kickstart repo to make maintenance easier, but it's
|
||||
[recommended to track it in version control](https://lazy.folke.io/usage/lockfile).
|
||||
|
||||
#### Clone kickstart.nvim
|
||||
> **NOTE**
|
||||
|
||||
> [!NOTE]
|
||||
> If following the recommended step above (i.e., forking the repo), replace
|
||||
> `nvim-lua` with `<your_github_username>` in the commands below
|
||||
|
||||
|
||||
8
init.lua
8
init.lua
@ -169,8 +169,16 @@ vim.opt.confirm = true
|
||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||
|
||||
-- Diagnostic keymaps
|
||||
-- See `:help setloclist`
|
||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||
|
||||
-- Show diagnostic under cursor in floating window.
|
||||
-- Alternative to virtual text when it overflow over the buffer
|
||||
-- See `:help open_float`
|
||||
vim.keymap.set('n', '<leader>xl', function()
|
||||
vim.diagnostic.open_float { scope = 'line' }
|
||||
end, { desc = 'Show [L]ine Diagnostics' })
|
||||
|
||||
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
|
||||
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
|
||||
-- is not what someone will guess without a bit more experience.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user