|
|
@ -35,7 +35,6 @@ I hope you enjoy your Neovim journey,
|
|
|
|
|
|
|
|
|
|
|
|
P.S. You can delete this when you're done too. It's your config now :)
|
|
|
|
P.S. You can delete this when you're done too. It's your config now :)
|
|
|
|
--]]
|
|
|
|
--]]
|
|
|
|
|
|
|
|
|
|
|
|
-- Set <space> as the leader key
|
|
|
|
-- Set <space> as the leader key
|
|
|
|
-- See `:help mapleader`
|
|
|
|
-- See `:help mapleader`
|
|
|
|
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
|
|
|
|
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
|
|
|
@ -58,6 +57,10 @@ if not vim.loop.fs_stat(lazypath) then
|
|
|
|
end
|
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- NOTE: Here is where you configure the Lazy package manager
|
|
|
|
|
|
|
|
-- See `:help lazy.nvim-lazy.nvim-configuration` for more info
|
|
|
|
|
|
|
|
local lazyopts = {}
|
|
|
|
|
|
|
|
|
|
|
|
-- NOTE: Here is where you install your plugins.
|
|
|
|
-- NOTE: Here is where you install your plugins.
|
|
|
|
-- You can configure plugins using the `config` key.
|
|
|
|
-- You can configure plugins using the `config` key.
|
|
|
|
--
|
|
|
|
--
|
|
|
@ -97,7 +100,7 @@ require('lazy').setup({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
-- Useful plugin to show you pending keybinds.
|
|
|
|
-- Useful plugin to show you pending keybinds.
|
|
|
|
{ 'folke/which-key.nvim', opts = {} },
|
|
|
|
{ 'folke/which-key.nvim', opts = {} },
|
|
|
|
{ -- Adds git releated signs to the gutter, as well as utilities for managing changes
|
|
|
|
{ -- Adds git releated signs to the gutter, as well as utilities for managing changes
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
opts = {
|
|
|
|
opts = {
|
|
|
@ -144,7 +147,7 @@ require('lazy').setup({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
-- "gc" to comment visual regions/lines
|
|
|
|
-- "gc" to comment visual regions/lines
|
|
|
|
{ 'numToStr/Comment.nvim', opts = {} },
|
|
|
|
{ 'numToStr/Comment.nvim', opts = {} },
|
|
|
|
|
|
|
|
|
|
|
|
-- Fuzzy Finder (files, lsp, etc)
|
|
|
|
-- Fuzzy Finder (files, lsp, etc)
|
|
|
|
{ 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } },
|
|
|
|
{ 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } },
|
|
|
@ -187,7 +190,7 @@ require('lazy').setup({
|
|
|
|
-- An additional note is that if you only copied in the `init.lua`, you can just comment this line
|
|
|
|
-- An additional note is that if you only copied in the `init.lua`, you can just comment this line
|
|
|
|
-- to get rid of the warning telling you that there are not plugins in `lua/custom/plugins/`.
|
|
|
|
-- to get rid of the warning telling you that there are not plugins in `lua/custom/plugins/`.
|
|
|
|
{ import = 'custom.plugins' },
|
|
|
|
{ import = 'custom.plugins' },
|
|
|
|
}, {})
|
|
|
|
}, lazyopts)
|
|
|
|
|
|
|
|
|
|
|
|
-- [[ Setting options ]]
|
|
|
|
-- [[ Setting options ]]
|
|
|
|
-- See `:help vim.o`
|
|
|
|
-- See `:help vim.o`
|
|
|
@ -461,7 +464,7 @@ cmp.setup {
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mapping = cmp.mapping.preset.insert {
|
|
|
|
mapping = cmp.mapping.preset.insert {
|
|
|
|
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
|
|
|
['<C-d>'] = cmp.mapping.scroll_docs( -4),
|
|
|
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
|
|
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
|
|
|
['<C-Space>'] = cmp.mapping.complete {},
|
|
|
|
['<C-Space>'] = cmp.mapping.complete {},
|
|
|
|
['<CR>'] = cmp.mapping.confirm {
|
|
|
|
['<CR>'] = cmp.mapping.confirm {
|
|
|
@ -480,8 +483,8 @@ cmp.setup {
|
|
|
|
['<S-Tab>'] = cmp.mapping(function(fallback)
|
|
|
|
['<S-Tab>'] = cmp.mapping(function(fallback)
|
|
|
|
if cmp.visible() then
|
|
|
|
if cmp.visible() then
|
|
|
|
cmp.select_prev_item()
|
|
|
|
cmp.select_prev_item()
|
|
|
|
elseif luasnip.jumpable(-1) then
|
|
|
|
elseif luasnip.jumpable( -1) then
|
|
|
|
luasnip.jump(-1)
|
|
|
|
luasnip.jump( -1)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
fallback()
|
|
|
|
fallback()
|
|
|
|
end
|
|
|
|
end
|
|
|
|