Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nvim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iliya.saroukha
nvim
Compare revisions
c9895b85061c64b82845c3bd0b567db6887efb58 to 8d9d254d89d9ed8f814a418d6677bc7b0769ac84
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
iliya.saroukha/nvim
Select target project
No results found
8d9d254d89d9ed8f814a418d6677bc7b0769ac84
Select Git revision
Branches
master
v1_config_bak
v2
Swap
Target
iliya.saroukha/nvim
Select target project
iliya.saroukha/nvim
1 result
c9895b85061c64b82845c3bd0b567db6887efb58
Select Git revision
Branches
master
v1_config_bak
v2
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
fix: updated harpoon2 config (using add function instead of append)
· c6fbc74c
iliya.saroukha
authored
10 months ago
Verified
c6fbc74c
fix: chmod +x only for user
· f7efc8bf
iliya.saroukha
authored
10 months ago
Verified
f7efc8bf
fix: added telescopy as dependency for harpoon2
· 8d9d254d
iliya.saroukha
authored
10 months ago
Verified
8d9d254d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
after/plugin/harpoon.lua
+24
-2
24 additions, 2 deletions
after/plugin/harpoon.lua
lua/config/remap.lua
+1
-1
1 addition, 1 deletion
lua/config/remap.lua
lua/plugins.lua
+5
-4
5 additions, 4 deletions
lua/plugins.lua
with
30 additions
and
7 deletions
after/plugin/harpoon.lua
View file @
8d9d254d
local
harpoon
=
require
(
"harpoon"
)
-- harpoon:setup()
-- REQUIRED
harpoon
:
setup
()
harpoon
:
setup
(
{}
)
-- REQUIRED
vim
.
keymap
.
set
(
"n"
,
"<leader>a"
,
function
()
harpoon
:
list
():
append
()
end
)
-- basic telescope configuration
local
conf
=
require
(
"telescope.config"
).
values
local
function
toggle_telescope
(
harpoon_files
)
local
file_paths
=
{}
for
_
,
item
in
ipairs
(
harpoon_files
.
items
)
do
table.insert
(
file_paths
,
item
.
value
)
end
require
(
"telescope.pickers"
).
new
({},
{
prompt_title
=
"Harpoon"
,
finder
=
require
(
"telescope.finders"
).
new_table
({
results
=
file_paths
,
}),
previewer
=
conf
.
file_previewer
({}),
sorter
=
conf
.
generic_sorter
({}),
}):
find
()
end
vim
.
keymap
.
set
(
"n"
,
"<C-e>"
,
function
()
toggle_telescope
(
harpoon
:
list
())
end
,
{
desc
=
"Open harpoon window"
})
vim
.
keymap
.
set
(
"n"
,
"<leader>a"
,
function
()
harpoon
:
list
():
add
()
end
)
vim
.
keymap
.
set
(
"n"
,
"<C-e>"
,
function
()
harpoon
.
ui
:
toggle_quick_menu
(
harpoon
:
list
())
end
)
vim
.
keymap
.
set
(
"n"
,
"<C-s>"
,
function
()
harpoon
:
list
():
select
(
1
)
end
)
...
...
This diff is collapsed.
Click to expand it.
lua/config/remap.lua
View file @
8d9d254d
...
...
@@ -26,7 +26,7 @@ vim.keymap.set("i", "<C-c>", "<Esc>")
vim
.
keymap
.
set
(
"n"
,
"<leader>f"
,
vim
.
lsp
.
buf
.
format
)
vim
.
keymap
.
set
(
"n"
,
"<leader>x"
,
"<cmd>!chmod +x %<CR>"
,
{
silent
=
true
})
vim
.
keymap
.
set
(
"n"
,
"<leader>x"
,
"<cmd>!chmod
u
+x %<CR>"
,
{
silent
=
true
})
vim
.
keymap
.
set
(
"n"
,
"<leader>ng"
,
":lua require('neogen').generate()<CR>"
)
vim
.
keymap
.
set
(
"n"
,
"<leader>t"
,
"<cmd>TroubleToggle<CR>"
)
...
...
This diff is collapsed.
Click to expand it.
lua/plugins.lua
View file @
8d9d254d
...
...
@@ -8,8 +8,6 @@ return {
-- Detect tabstop and shiftwidth automatically
'tpope/vim-sleuth'
,
-- NOTE: This is where your plugins related to LSP can be installed.
-- The configuration is done below. Search for lspconfig to find it below.
{
...
...
@@ -123,7 +121,10 @@ return {
{
"ThePrimeagen/harpoon"
,
branch
=
"harpoon2"
,
dependencies
=
"nvim-lua/plenary.nvim"
,
dependencies
=
{
"nvim-lua/plenary.nvim"
,
'nvim-telescope/telescope.nvim'
,
},
},
'mbbill/undotree'
,
...
...
@@ -260,5 +261,5 @@ return {
},
},
},
}
}
,
}
This diff is collapsed.
Click to expand it.