|
|
@ -4,9 +4,9 @@
|
|
|
|
-- See the kickstart.nvim README for more information
|
|
|
|
-- See the kickstart.nvim README for more information
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"ThePrimeagen/harpoon",
|
|
|
|
'ThePrimeagen/harpoon',
|
|
|
|
dependencies = {
|
|
|
|
dependencies = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
'nvim-lua/plenary.nvim',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
opts = {
|
|
|
|
opts = {
|
|
|
|
global_settings = {
|
|
|
|
global_settings = {
|
|
|
@ -15,64 +15,73 @@ return {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
config = function()
|
|
|
|
local harpoon_ui = require("harpoon.ui")
|
|
|
|
local harpoon_ui = require 'harpoon.ui'
|
|
|
|
local harpoon_mark = require("harpoon.mark")
|
|
|
|
local harpoon_mark = require 'harpoon.mark'
|
|
|
|
|
|
|
|
|
|
|
|
-- Harpoon keybinds --
|
|
|
|
-- Harpoon keybinds --
|
|
|
|
-- Open harpoon ui
|
|
|
|
-- Open harpoon ui
|
|
|
|
vim.keymap.set("n", "<C-e>", function()
|
|
|
|
vim.keymap.set('n', '<C-e>', function()
|
|
|
|
harpoon_ui.toggle_quick_menu()
|
|
|
|
harpoon_ui.toggle_quick_menu()
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
-- Add current file to harpoon
|
|
|
|
-- Add current file to harpoon
|
|
|
|
vim.keymap.set("n", "<leader>a", function()
|
|
|
|
vim.keymap.set('n', '<leader>a', function()
|
|
|
|
harpoon_mark.add_file()
|
|
|
|
harpoon_mark.add_file()
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
-- Quickly jump to harpooned files
|
|
|
|
-- Quickly jump to harpooned files
|
|
|
|
vim.keymap.set("n", "<leader>1", function()
|
|
|
|
vim.keymap.set('n', '<leader>1', function()
|
|
|
|
harpoon_ui.nav_file(1)
|
|
|
|
harpoon_ui.nav_file(1)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>2", function()
|
|
|
|
vim.keymap.set('n', '<leader>2', function()
|
|
|
|
harpoon_ui.nav_file(2)
|
|
|
|
harpoon_ui.nav_file(2)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>3", function()
|
|
|
|
vim.keymap.set('n', '<leader>3', function()
|
|
|
|
harpoon_ui.nav_file(3)
|
|
|
|
harpoon_ui.nav_file(3)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>4", function()
|
|
|
|
vim.keymap.set('n', '<leader>4', function()
|
|
|
|
harpoon_ui.nav_file(4)
|
|
|
|
harpoon_ui.nav_file(4)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>5", function()
|
|
|
|
vim.keymap.set('n', '<leader>5', function()
|
|
|
|
harpoon_ui.nav_file(5)
|
|
|
|
harpoon_ui.nav_file(5)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
'stevearc/oil.nvim',
|
|
|
|
'stevearc/oil.nvim',
|
|
|
|
opts = {},
|
|
|
|
opts = {},
|
|
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
|
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
|
|
|
config = function()
|
|
|
|
config = function()
|
|
|
|
require("oil").setup({
|
|
|
|
require('oil').setup {
|
|
|
|
columns = { "icon" },
|
|
|
|
default_file_explorer = true,
|
|
|
|
|
|
|
|
skip_confirm_for_simple_edits = true,
|
|
|
|
|
|
|
|
columns = { 'icon' },
|
|
|
|
keymaps = {
|
|
|
|
keymaps = {
|
|
|
|
["<C-h>"] = false,
|
|
|
|
['<C-h>'] = false,
|
|
|
|
["<M-h>"] = "actions.select_split",
|
|
|
|
['<M-h>'] = 'actions.select_split',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view_options = {
|
|
|
|
view_options = {
|
|
|
|
show_hidden = true,
|
|
|
|
show_hidden = true,
|
|
|
|
|
|
|
|
natural_order = true,
|
|
|
|
|
|
|
|
is_always_hidden = function(name, bufnr)
|
|
|
|
|
|
|
|
return name == '..' or name == '.git'
|
|
|
|
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
win_options = {
|
|
|
|
|
|
|
|
wrap = true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-- Open parent directory in current window
|
|
|
|
-- Open parent directory in current window
|
|
|
|
vim.keymap.set("n", "-", "<CMD>Oil<CR>",{ desc = "Open parent directory" })
|
|
|
|
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
|
|
|
|
|
|
|
|
|
|
|
|
-- Open parent directory in floating window
|
|
|
|
-- Open parent directory in floating window
|
|
|
|
vim.keymap.set("n", "<space>-", require("oil").toggle_float)
|
|
|
|
vim.keymap.set('n', '<space>-', require('oil').toggle_float)
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -82,6 +91,6 @@ return {
|
|
|
|
opts = {
|
|
|
|
opts = {
|
|
|
|
restriction_mode = 'hint',
|
|
|
|
restriction_mode = 'hint',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
enabled = false,
|
|
|
|
enabled = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|