fix: nvim harpoon mappings + formatting
This commit is contained in:
parent
709c7e23c5
commit
c749c9098e
4 changed files with 56 additions and 52 deletions
|
@ -1,8 +1,7 @@
|
|||
# NixOS config entry point
|
||||
# import the hardware and configuration files specific to your machine
|
||||
{
|
||||
imports =
|
||||
[
|
||||
imports = [
|
||||
./machines/MacBookPro12.1-hardware-configuration.nix
|
||||
./machines/MacBookPro12.1-configuration.nix
|
||||
];
|
||||
|
|
|
@ -1,44 +1,46 @@
|
|||
require "nvchad.mappings"
|
||||
|
||||
local map = vim.keymap.set
|
||||
local nomap = vim.keymap.set
|
||||
-- remove nvchad shell mappings
|
||||
vim.keymap.del("n", "<leader>h")
|
||||
vim.keymap.del("n", "<leader>v")
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
nomap({ "i", "x", "n", "s" }, "<leader>h")
|
||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||
map("i", "jk", "<ESC>")
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f1>", function()
|
||||
require("harpoon"):list():select(1)
|
||||
end, { desc = "Harpoon file 1" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f2>", function()
|
||||
require("harpoon"):list():select(2)
|
||||
end, { desc = "Harpoon file 2" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f3>", function()
|
||||
require("harpoon"):list():select(3)
|
||||
end, { desc = "Harpoon file 3" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f4>", function()
|
||||
require("harpoon"):list():select(4)
|
||||
end, { desc = "Harpoon file 4" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f5>", function()
|
||||
require("harpoon"):list():select(5)
|
||||
end, { desc = "Harpoon file 5" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f6>", function()
|
||||
require("harpoon"):list():select(6)
|
||||
end, { desc = "Harpoon file 6" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f7>", function()
|
||||
require("harpoon"):list():select(7)
|
||||
end, { desc = "Harpoon file 7" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f8>", function()
|
||||
require("harpoon"):list():select(8)
|
||||
end, { desc = "Harpoon file 8" })
|
||||
|
||||
-- map({ "i", "x", "n", "s" }, "<f1>", function()
|
||||
-- require("harpoon"):list():select(1)
|
||||
-- end, { desc = "Harpoon file 1" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f2>", function()
|
||||
-- require("harpoon"):list():select(2)
|
||||
-- end, { desc = "Harpoon file 2" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f3>", function()
|
||||
-- require("harpoon"):list():select(3)
|
||||
-- end, { desc = "Harpoon file 3" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f4>", function()
|
||||
-- require("harpoon"):list():select(4)
|
||||
-- end, { desc = "Harpoon file 4" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f5>", function()
|
||||
-- require("harpoon"):list():select(5)
|
||||
-- end, { desc = "Harpoon file 5" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f6>", function()
|
||||
-- require("harpoon"):list():select(6)
|
||||
-- end, { desc = "Harpoon file 6" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f7>", function()
|
||||
-- require("harpoon"):list():select(7)
|
||||
-- end, { desc = "Harpoon file 7" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f8>", function()
|
||||
-- require("harpoon"):list():select(8)
|
||||
-- end, { desc = "Harpoon file 8" })
|
||||
--
|
||||
map({ "x", "n", "s" }, "<leader>/", "<cmd>Telescope live_grep<CR>", { desc = "telescope live grep" })
|
||||
map(
|
||||
{ "x", "n", "s" },
|
||||
|
|
|
@ -11,7 +11,10 @@ return {
|
|||
require "configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"NvChad/nvterm",
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
"kdheepak/lazygit.nvim",
|
||||
lazy = true,
|
||||
|
|
|
@ -297,7 +297,7 @@
|
|||
vim = "$HOME/.nix-profile/bin/nvim";
|
||||
yeswiki-updater = "cd /home/mrflos/Code/yeswiki-installer/ && sudo php yeswiki-updater.php";
|
||||
};
|
||||
initExtra = ''
|
||||
initContent = ''
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PHP_CS_FIXER_IGNORE_ENV=1
|
||||
export PATH="$HOME/.local/bin:$BUN_INSTALL/bin:$PATH"
|
||||
|
|
Loading…
Add table
Reference in a new issue