catppuccin & oil
This commit is contained in:
parent
4b53d4df01
commit
ff81bb2317
38
init.lua
38
init.lua
|
@ -835,15 +835,39 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- You can easily change to a different colorscheme.
|
-- Colorscheme
|
||||||
-- Change the name of the colorscheme plugin below, and then
|
|
||||||
-- change the command in the config to whatever the name of that colorscheme is.
|
|
||||||
--
|
|
||||||
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
|
||||||
{
|
{
|
||||||
'vague2k/vague.nvim',
|
'catppuccin/nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('vague').setup {}
|
require('catppuccin').setup {
|
||||||
|
integrations = {
|
||||||
|
cmp = true,
|
||||||
|
gitsigns = true,
|
||||||
|
harpoon = true,
|
||||||
|
illuminate = true,
|
||||||
|
indent_blankline = {
|
||||||
|
enabled = false,
|
||||||
|
scope_color = 'sapphire',
|
||||||
|
colored_indent_levels = false,
|
||||||
|
},
|
||||||
|
mason = true,
|
||||||
|
native_lsp = { enabled = true },
|
||||||
|
notify = true,
|
||||||
|
nvimtree = true,
|
||||||
|
neotree = true,
|
||||||
|
symbols_outline = true,
|
||||||
|
telescope = true,
|
||||||
|
treesitter = true,
|
||||||
|
treesitter_context = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.cmd.colorscheme 'catppuccin-macchiato'
|
||||||
|
|
||||||
|
-- Hide all semantic highlights until upstream issues are resolved (https://github.com/catppuccin/nvim/issues/480)
|
||||||
|
for _, group in ipairs(vim.fn.getcompletion('@lsp', 'highlight')) do
|
||||||
|
vim.api.nvim_set_hl(0, group, {})
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,85 +3,94 @@
|
||||||
--
|
--
|
||||||
-- 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 = {
|
||||||
save_on_toggle = true,
|
save_on_toggle = true,
|
||||||
enter_on_sendcmd = true,
|
enter_on_sendcmd = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
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,
|
||||||
keymaps = {
|
skip_confirm_for_simple_edits = true,
|
||||||
["<C-h>"] = false,
|
columns = { 'icon' },
|
||||||
["<M-h>"] = "actions.select_split",
|
keymaps = {
|
||||||
},
|
['<C-h>'] = false,
|
||||||
view_options = {
|
['<M-h>'] = 'actions.select_split',
|
||||||
show_hidden = true,
|
},
|
||||||
},
|
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
|
-- 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,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
'm4xshen/hardtime.nvim',
|
'm4xshen/hardtime.nvim',
|
||||||
dependecies = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },
|
dependecies = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },
|
||||||
opts = {
|
opts = {
|
||||||
restriction_mode = 'hint',
|
restriction_mode = 'hint',
|
||||||
},
|
},
|
||||||
enabled = false,
|
enabled = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue