catppuccin & oil
This commit is contained in:
parent
4b53d4df01
commit
ff81bb2317
2 changed files with 110 additions and 77 deletions
|
|
@ -3,85 +3,94 @@
|
|||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
return {
|
||||
{
|
||||
"ThePrimeagen/harpoon",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
opts = {
|
||||
global_settings = {
|
||||
save_on_toggle = true,
|
||||
enter_on_sendcmd = true,
|
||||
},
|
||||
},
|
||||
config = function ()
|
||||
local harpoon_ui = require("harpoon.ui")
|
||||
local harpoon_mark = require("harpoon.mark")
|
||||
{
|
||||
'ThePrimeagen/harpoon',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
opts = {
|
||||
global_settings = {
|
||||
save_on_toggle = true,
|
||||
enter_on_sendcmd = true,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local harpoon_ui = require 'harpoon.ui'
|
||||
local harpoon_mark = require 'harpoon.mark'
|
||||
|
||||
-- Harpoon keybinds --
|
||||
-- Open harpoon ui
|
||||
vim.keymap.set("n", "<C-e>", function()
|
||||
harpoon_ui.toggle_quick_menu()
|
||||
end)
|
||||
-- Harpoon keybinds --
|
||||
-- Open harpoon ui
|
||||
vim.keymap.set('n', '<C-e>', function()
|
||||
harpoon_ui.toggle_quick_menu()
|
||||
end)
|
||||
|
||||
-- Add current file to harpoon
|
||||
vim.keymap.set("n", "<leader>a", function()
|
||||
harpoon_mark.add_file()
|
||||
end)
|
||||
-- Add current file to harpoon
|
||||
vim.keymap.set('n', '<leader>a', function()
|
||||
harpoon_mark.add_file()
|
||||
end)
|
||||
|
||||
-- Quickly jump to harpooned files
|
||||
vim.keymap.set("n", "<leader>1", function()
|
||||
harpoon_ui.nav_file(1)
|
||||
end)
|
||||
-- Quickly jump to harpooned files
|
||||
vim.keymap.set('n', '<leader>1', function()
|
||||
harpoon_ui.nav_file(1)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>2", function()
|
||||
harpoon_ui.nav_file(2)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader>2', function()
|
||||
harpoon_ui.nav_file(2)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>3", function()
|
||||
harpoon_ui.nav_file(3)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader>3', function()
|
||||
harpoon_ui.nav_file(3)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>4", function()
|
||||
harpoon_ui.nav_file(4)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader>4', function()
|
||||
harpoon_ui.nav_file(4)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>5", function()
|
||||
harpoon_ui.nav_file(5)
|
||||
end)
|
||||
end
|
||||
},
|
||||
vim.keymap.set('n', '<leader>5', function()
|
||||
harpoon_ui.nav_file(5)
|
||||
end)
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
opts = {},
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("oil").setup({
|
||||
columns = { "icon" },
|
||||
keymaps = {
|
||||
["<C-h>"] = false,
|
||||
["<M-h>"] = "actions.select_split",
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
})
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
opts = {},
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('oil').setup {
|
||||
default_file_explorer = true,
|
||||
skip_confirm_for_simple_edits = true,
|
||||
columns = { 'icon' },
|
||||
keymaps = {
|
||||
['<C-h>'] = false,
|
||||
['<M-h>'] = 'actions.select_split',
|
||||
},
|
||||
view_options = {
|
||||
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
|
||||
vim.keymap.set("n", "-", "<CMD>Oil<CR>",{ desc = "Open parent directory" })
|
||||
-- Open parent directory in current window
|
||||
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
|
||||
|
||||
-- Open parent directory in floating window
|
||||
vim.keymap.set("n", "<space>-", require("oil").toggle_float)
|
||||
end,
|
||||
},
|
||||
-- Open parent directory in floating window
|
||||
vim.keymap.set('n', '<space>-', require('oil').toggle_float)
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
'm4xshen/hardtime.nvim',
|
||||
dependecies = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },
|
||||
opts = {
|
||||
restriction_mode = 'hint',
|
||||
},
|
||||
enabled = false,
|
||||
},
|
||||
{
|
||||
'm4xshen/hardtime.nvim',
|
||||
dependecies = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },
|
||||
opts = {
|
||||
restriction_mode = 'hint',
|
||||
},
|
||||
enabled = true,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue