forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 2k
vim.pack upstream changes #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cd7adee
Refactor and update some of the comments
oriori1703 c460542
Migrate to vim.pack
oriori1703 716d746
Enable vim.loader for faster loading time
oriori1703 a42ed30
Update the explanations and docs
oriori1703 2e8d5b1
Split into sections
oriori1703 2fccee4
Split the vim.pack.add call and move each part to the relevant sections
oriori1703 174b5fa
Merge pull request #2005 from nvim-lua/refactor/vim.pack
oriori1703 a5d4d12
fix: deprecated diagnostic jumping config
nathanzeng cfdc17b
Merge pull request #1982 from nathanzeng/jump-diagnostic
oriori1703 e7d0128
Merge remote-tracking branch 'upstream' into chore/upstream
oriori1703 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,5 @@ | ||
| -- autopairs | ||
| -- https://github.com/windwp/nvim-autopairs | ||
|
|
||
| ---@module 'lazy' | ||
| ---@type LazySpec | ||
| return { | ||
| 'windwp/nvim-autopairs', | ||
| event = 'InsertEnter', | ||
| opts = {}, | ||
| } | ||
| vim.pack.add { 'https://github.com/windwp/nvim-autopairs' } | ||
| require('nvim-autopairs').setup {} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| -- ============================================================ | ||
| -- SECTION 8: AUTOCOMPLETE & SNIPPETS | ||
| -- blink.cmp and luasnip setup | ||
| -- ============================================================ | ||
|
|
||
| ---Because most plugins are hosted on GitHub, you can use the helper | ||
| ---function to have less repetition in the following sections. | ||
| ---@param repo string | ||
| ---@return string | ||
| local function gh(repo) return 'https://github.com/' .. repo end | ||
|
|
||
| -- [[ Snippet Engine ]] | ||
|
|
||
| -- NOTE: You can also specify plugin using a version range for its git tag. | ||
| -- See `:help vim.version.range()` for more info | ||
| vim.pack.add { { src = gh 'L3MON4D3/LuaSnip', version = vim.version.range '2.*' } } | ||
| require('luasnip').setup {} | ||
|
|
||
| -- `friendly-snippets` contains a variety of premade snippets. | ||
| -- See the README about individual language/framework/plugin snippets: | ||
| -- https://github.com/rafamadriz/friendly-snippets | ||
| -- | ||
| -- vim.pack.add { gh 'rafamadriz/friendly-snippets' } | ||
| -- require('luasnip.loaders.from_vscode').lazy_load() | ||
|
|
||
| -- [[ Autocomplete Engine ]] | ||
| vim.pack.add { { src = gh 'saghen/blink.cmp', version = vim.version.range '1.*' } } | ||
| require('blink.cmp').setup { | ||
| keymap = { | ||
| -- 'default' (recommended) for mappings similar to built-in completions | ||
| -- <c-y> to accept ([y]es) the completion. | ||
| -- This will auto-import if your LSP supports it. | ||
| -- This will expand snippets if the LSP sent a snippet. | ||
| -- 'super-tab' for tab to accept | ||
| -- 'enter' for enter to accept | ||
| -- 'none' for no mappings | ||
| -- | ||
| -- For an understanding of why the 'default' preset is recommended, | ||
| -- you will need to read `:help ins-completion` | ||
| -- | ||
| -- No, but seriously. Please read `:help ins-completion`, it is really good! | ||
| -- | ||
| -- All presets have the following mappings: | ||
| -- <tab>/<s-tab>: move to right/left of your snippet expansion | ||
| -- <c-space>: Open menu or open docs if already open | ||
| -- <c-n>/<c-p> or <up>/<down>: Select next/previous item | ||
| -- <c-e>: Hide menu | ||
| -- <c-k>: Toggle signature help | ||
| -- | ||
| -- See `:help blink-cmp-config-keymap` for defining your own keymap | ||
| preset = 'default', | ||
|
|
||
| -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: | ||
| -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps | ||
| }, | ||
|
|
||
| appearance = { | ||
| -- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font' | ||
| -- Adjusts spacing to ensure icons are aligned | ||
| nerd_font_variant = 'mono', | ||
| }, | ||
|
|
||
| completion = { | ||
| -- By default, you may press `<c-space>` to show the documentation. | ||
| -- Optionally, set `auto_show = true` to show the documentation after a delay. | ||
| documentation = { auto_show = false, auto_show_delay_ms = 500 }, | ||
| }, | ||
|
|
||
| sources = { | ||
| default = { 'lsp', 'path', 'snippets' }, | ||
| }, | ||
|
|
||
| snippets = { preset = 'luasnip' }, | ||
|
|
||
| -- Blink.cmp includes an optional, recommended rust fuzzy matcher, | ||
| -- which automatically downloads a prebuilt binary when enabled. | ||
| -- | ||
| -- By default, we use the Lua implementation instead, but you may enable | ||
| -- the rust implementation via `'prefer_rust_with_warning'` | ||
| -- | ||
| -- See `:help blink-cmp-config-fuzzy` for more information | ||
| fuzzy = { implementation = 'lua' }, | ||
|
|
||
| -- Shows a signature help window while you type arguments for a function | ||
| signature = { enabled = true }, | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.