Use the dot syntax for module paths
This commit is contained in:
parent
07973b7a01
commit
f25cce3982
|
|
@ -69,21 +69,13 @@ require('lazy').setup({
|
||||||
-- don't override the built-in and fugitive keymaps
|
-- don't override the built-in and fugitive keymaps
|
||||||
local gs = package.loaded.gitsigns
|
local gs = package.loaded.gitsigns
|
||||||
vim.keymap.set({ 'n', 'v' }, ']c', function()
|
vim.keymap.set({ 'n', 'v' }, ']c', function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then return ']c' end
|
||||||
return ']c'
|
vim.schedule(function() gs.next_hunk() end)
|
||||||
end
|
|
||||||
vim.schedule(function()
|
|
||||||
gs.next_hunk()
|
|
||||||
end)
|
|
||||||
return '<Ignore>'
|
return '<Ignore>'
|
||||||
end, { expr = true, buffer = bufnr, desc = 'Jump to next hunk' })
|
end, { expr = true, buffer = bufnr, desc = 'Jump to next hunk' })
|
||||||
vim.keymap.set({ 'n', 'v' }, '[c', function()
|
vim.keymap.set({ 'n', 'v' }, '[c', function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then return '[c' end
|
||||||
return '[c'
|
vim.schedule(function() gs.prev_hunk() end)
|
||||||
end
|
|
||||||
vim.schedule(function()
|
|
||||||
gs.prev_hunk()
|
|
||||||
end)
|
|
||||||
return '<Ignore>'
|
return '<Ignore>'
|
||||||
end, { expr = true, buffer = bufnr, desc = 'Jump to previous hunk' })
|
end, { expr = true, buffer = bufnr, desc = 'Jump to previous hunk' })
|
||||||
end,
|
end,
|
||||||
|
|
@ -94,9 +86,7 @@ require('lazy').setup({
|
||||||
-- Theme inspired by Atom
|
-- Theme inspired by Atom
|
||||||
'navarasu/onedark.nvim',
|
'navarasu/onedark.nvim',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function() vim.cmd.colorscheme 'onedark' end,
|
||||||
vim.cmd.colorscheme 'onedark'
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -139,9 +129,7 @@ require('lazy').setup({
|
||||||
-- NOTE: If you are having trouble with this installation,
|
-- NOTE: If you are having trouble with this installation,
|
||||||
-- refer to the README for telescope-fzf-native for more instructions.
|
-- refer to the README for telescope-fzf-native for more instructions.
|
||||||
build = 'make',
|
build = 'make',
|
||||||
cond = function()
|
cond = function() return vim.fn.executable 'make' == 1 end,
|
||||||
return vim.fn.executable 'make' == 1
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue