Compare commits
No commits in common. "a51ae13b83fa6445a866efabceb7341badd24037" and "fa87b50b4f6aaebf6f3904e60165957699eca029" have entirely different histories.
a51ae13b83
...
fa87b50b4f
2 changed files with 16 additions and 46 deletions
33
README.md
33
README.md
|
@ -10,28 +10,6 @@ A starting point for Neovim that is:
|
|||
|
||||
**NOT** a Neovim distribution, but instead a starting point for your configuration.
|
||||
|
||||
## Renken's notes
|
||||
|
||||
### Divergence from upstream
|
||||
|
||||
I try to stay as up-to-date as possible with upstream. However certain commits
|
||||
that I deliberately skipped cherry-picking because they can be problematic. I
|
||||
will try to document all of them below.
|
||||
|
||||
* [nvim-lua/kickstart@7513ec8](https://github.com/nvim-lua/kickstart.nvim/commit/7513ec8a7dd579957ce2d9b44e05c1da18d7d0e3)
|
||||
deletes `numToStr/Comment.nvim` without justification. Possibly this feature
|
||||
was merged in `neovim-v0.10.0`? The changes to use `vim.uv` instead of
|
||||
`vim.loop` were not included as a result. I also want to take the time to
|
||||
understand what `neodev` and `lazydev` do before integrating the latter. Future
|
||||
commits related to it will not be included here either, such as.
|
||||
* [nvim-lua/kickstart@fd66454](https://github.com/nvim-lua/kickstart.nvim/commit/fd66454c4a02abb44568159e7447060b962e1b5d).
|
||||
|
||||
* Debian GNU/Linux packages
|
||||
[`markdownlint`](https://packages.debian.org/bookworm-backports/markdownlint).
|
||||
However, the binary is installed under `/bin/mdl` which breaks
|
||||
`lua/kickstart/plugins/lint.lua`. Make sure to execute `ln -s /bin/mdl
|
||||
~/.local/bin/markdownlint` or something similar.
|
||||
|
||||
## Installation
|
||||
|
||||
### Install Neovim
|
||||
|
@ -68,8 +46,8 @@ Neovim's configurations are located under the following paths, depending on your
|
|||
| OS | PATH |
|
||||
| :- | :--- |
|
||||
| Linux, MacOS | `$XDG_CONFIG_HOME/nvim`, `~/.config/nvim` |
|
||||
| Windows (cmd)| `%localappdata%\nvim\` |
|
||||
| Windows (powershell)| `$env:LOCALAPPDATA\nvim\` |
|
||||
| Windows (cmd)| `%userprofile%\AppData\Local\nvim\` |
|
||||
| Windows (powershell)| `$env:USERPROFILE\AppData\Local\nvim\` |
|
||||
|
||||
#### Recommended Step
|
||||
|
||||
|
@ -99,13 +77,13 @@ git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HO
|
|||
If you're using `cmd.exe`:
|
||||
|
||||
```
|
||||
git clone https://github.com/nvim-lua/kickstart.nvim.git %localappdata%\nvim\
|
||||
git clone https://github.com/nvim-lua/kickstart.nvim.git %userprofile%\AppData\Local\nvim\
|
||||
```
|
||||
|
||||
If you're using `powershell.exe`
|
||||
|
||||
```
|
||||
git clone https://github.com/nvim-lua/kickstart.nvim.git $env:LOCALAPPDATA\nvim\
|
||||
git clone https://github.com/nvim-lua/kickstart.nvim.git $env:USERPROFILE\AppData\Local\nvim\
|
||||
```
|
||||
|
||||
</details>
|
||||
|
@ -153,7 +131,7 @@ examples of adding popularly requested plugins.
|
|||
* 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
|
||||
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:
|
||||
|
@ -248,3 +226,4 @@ sudo dnf install -y gcc make git ripgrep fd-find unzip neovim
|
|||
sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim
|
||||
```
|
||||
</details>
|
||||
|
||||
|
|
29
init.lua
29
init.lua
|
@ -126,12 +126,9 @@ vim.opt.spell = true
|
|||
vim.opt.showmode = false
|
||||
|
||||
-- Sync clipboard between OS and Neovim.
|
||||
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
||||
-- Remove this option if you want your OS clipboard to remain independent.
|
||||
-- See `:help 'clipboard'`
|
||||
vim.schedule(function()
|
||||
vim.opt.clipboard = 'unnamedplus'
|
||||
end)
|
||||
vim.opt.clipboard = 'unnamedplus'
|
||||
|
||||
-- Enable break indent
|
||||
vim.opt.breakindent = true
|
||||
|
@ -175,8 +172,8 @@ vim.opt.scrolloff = 10
|
|||
-- [[ Basic Keymaps ]]
|
||||
-- See `:help vim.keymap.set()`
|
||||
|
||||
-- Clear highlights on search when pressing <Esc> in normal mode
|
||||
-- See `:help hlsearch`
|
||||
-- Set highlight on search, but clear on pressing <Esc> in normal mode
|
||||
vim.opt.hlsearch = true
|
||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||
|
||||
-- Diagnostic keymaps
|
||||
|
@ -506,13 +503,6 @@ require('lazy').setup({
|
|||
pin = true,
|
||||
opts = {},
|
||||
},
|
||||
|
||||
-- Allows extra capabilities provided by nvim-cmp
|
||||
{
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
-- XXX: No releases, looks unmaintained?
|
||||
commit = '39e2eda76828d88b773cc27a3f61d2ad782c922d',
|
||||
}
|
||||
},
|
||||
config = function()
|
||||
-- Brief aside: **What is LSP?**
|
||||
|
@ -626,7 +616,7 @@ require('lazy').setup({
|
|||
})
|
||||
end
|
||||
|
||||
-- The following code creates a keymap to toggle inlay hints in your
|
||||
-- The following autocommand is used to enable inlay hints in your
|
||||
-- code, if the language server you are using supports them
|
||||
--
|
||||
-- This may be unwanted, since they displace some of your code
|
||||
|
@ -752,8 +742,6 @@ require('lazy').setup({
|
|||
tag = 'v7.1.0',
|
||||
pin = true,
|
||||
lazy = false,
|
||||
event = { 'BufWritePre' },
|
||||
cmd = { 'ConformInfo' },
|
||||
keys = {
|
||||
{
|
||||
'<leader>f',
|
||||
|
@ -781,8 +769,9 @@ require('lazy').setup({
|
|||
-- Conform can also run multiple formatters sequentially
|
||||
-- python = { "isort", "black" },
|
||||
--
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
-- You can use a sub-list to tell conform to run *until* a formatter
|
||||
-- is found.
|
||||
-- javascript = { { "prettierd", "prettier" } },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -979,7 +968,7 @@ require('lazy').setup({
|
|||
--
|
||||
-- Examples:
|
||||
-- - va) - [V]isually select [A]round [)]paren
|
||||
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
||||
-- - yinq - [Y]ank [I]nside [N]ext [']quote
|
||||
-- - ci' - [C]hange [I]nside [']quote
|
||||
require('mini.ai').setup { n_lines = 500 }
|
||||
|
||||
|
@ -1035,6 +1024,8 @@ require('lazy').setup({
|
|||
config = function(_, opts)
|
||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||
|
||||
-- Prefer git instead of curl in order to improve connectivity in some environments
|
||||
require('nvim-treesitter.install').prefer_git = true
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
require('nvim-treesitter.configs').setup(opts)
|
||||
|
||||
|
|
Loading…
Reference in a new issue