Finalizing 5150.nvim with Kickstart
This commit is contained in:
parent
d1f7a105c2
commit
8595f2c047
6 changed files with 157 additions and 5 deletions
13
lua/kickstart/plugins/copilot.lua
Normal file
13
lua/kickstart/plugins/copilot.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
'github/copilot.vim',
|
||||
event = 'InsertEnter',
|
||||
config = function()
|
||||
vim.g.copilot_no_tab_map = true
|
||||
|
||||
local keymap = vim.keymap.set
|
||||
keymap('i', '<C-L>', 'copilot#Accept("<CR>")', { expr = true, silent = true })
|
||||
keymap('i', '<M-j>', 'copilot#Next()', { expr = true, silent = true })
|
||||
keymap('i', '<M-k>', 'copilot#Previous()', { expr = true, silent = true })
|
||||
keymap('i', '<C-E>', 'copilot#Dismiss()', { expr = true, silent = true })
|
||||
end,
|
||||
}
|
||||
7
lua/kickstart/plugins/fugitive.lua
Normal file
7
lua/kickstart/plugins/fugitive.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
'tpope/vim-fugitive',
|
||||
cmd = { 'Git', 'G' },
|
||||
keys = {
|
||||
{ '<leader>gg', '<cmd>Git<CR>', desc = 'Git Status' },
|
||||
},
|
||||
}
|
||||
58
lua/kickstart/plugins/harpoon.lua
Normal file
58
lua/kickstart/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
return {
|
||||
'ThePrimeagen/harpoon',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
require('harpoon').setup {}
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
'<leader>ha',
|
||||
function()
|
||||
require('harpoon.mark').add_file()
|
||||
end,
|
||||
desc = 'Harpoon: Add File',
|
||||
},
|
||||
{
|
||||
'<leader>hr',
|
||||
function()
|
||||
require('harpoon.mark').rm_file()
|
||||
end,
|
||||
desc = 'Harpoon: Remove File',
|
||||
},
|
||||
{
|
||||
'<leader>hm',
|
||||
function()
|
||||
require('harpoon.ui').toggle_quick_menu()
|
||||
end,
|
||||
desc = 'Harpoon: Open Menu',
|
||||
},
|
||||
{
|
||||
'<leader>1',
|
||||
function()
|
||||
require('harpoon.ui').nav_file(1)
|
||||
end,
|
||||
desc = 'Harpoon to file 1',
|
||||
},
|
||||
{
|
||||
'<leader>2',
|
||||
function()
|
||||
require('harpoon.ui').nav_file(2)
|
||||
end,
|
||||
desc = 'Harpoon to file 2',
|
||||
},
|
||||
{
|
||||
'<leader>3',
|
||||
function()
|
||||
require('harpoon.ui').nav_file(3)
|
||||
end,
|
||||
desc = 'Harpoon to file 3',
|
||||
},
|
||||
{
|
||||
'<leader>4',
|
||||
function()
|
||||
require('harpoon.ui').nav_file(4)
|
||||
end,
|
||||
desc = 'Harpoon to file 4',
|
||||
},
|
||||
},
|
||||
}
|
||||
28
lua/kickstart/plugins/trouble.lua
Normal file
28
lua/kickstart/plugins/trouble.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
'folke/trouble.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
'<leader>xx',
|
||||
function()
|
||||
require('trouble').toggle()
|
||||
end,
|
||||
desc = 'Toggle Trouble',
|
||||
},
|
||||
{
|
||||
'<leader>xw',
|
||||
function()
|
||||
require('trouble').toggle 'workspace_diagnostics'
|
||||
end,
|
||||
desc = 'Workspace Diagnostics',
|
||||
},
|
||||
{
|
||||
'<leader>xd',
|
||||
function()
|
||||
require('trouble').toggle 'document_diagnostics'
|
||||
end,
|
||||
desc = 'Document Diagnostics',
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue