feat(nvim): harpoon and not italics

This commit is contained in:
Florian Schmitt 2024-04-13 19:58:22 +03:00
parent 90beec4d08
commit 7bc72fb21b
2 changed files with 40 additions and 2 deletions

View file

@ -1,3 +1,18 @@
-- Keymaps are automatically loaded on the VeryLazy event -- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blo}b/main/lua/lazyvim/config/keymaps.lua -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here -- Add any additional keymaps here
vim.keymap.set({ "i", "x", "n", "s" }, "<f1>", function()
require("harpoon"):list():select(1)
end, { desc = "Harpoon file 1" })
vim.keymap.set({ "i", "x", "n", "s" }, "<f2>", function()
require("harpoon"):list():select(2)
end, { desc = "Harpoon file 2" })
vim.keymap.set({ "i", "x", "n", "s" }, "<f3>", function()
require("harpoon"):list():select(3)
end, { desc = "Harpoon file 3" })
vim.keymap.set({ "i", "x", "n", "s" }, "<f4>", function()
require("harpoon"):list():select(4)
end, { desc = "Harpoon file 4" })

View file

@ -1,6 +1,29 @@
function ColorMyPencils(color)
color = color or "rose-pine"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
return { return {
-- theme Rosé Pine -- theme Rosé Pine
{ "rose-pine/neovim", name = "rose-pine" }, {
"rose-pine/neovim",
name = "rose-pine",
config = function()
require("rose-pine").setup({
disable_background = true,
styles = {
italic = false,
},
})
vim.cmd("colorscheme rose-pine")
ColorMyPencils()
end,
},
-- Configure LazyVim to load theme -- Configure LazyVim to load theme
{ {