initial dotfiles

This commit is contained in:
Mats Ricardo Nomedal 2026-04-23 23:48:01 +02:00
commit a11473e308
20 changed files with 2831 additions and 0 deletions

View file

@ -0,0 +1,40 @@
-- Editor quality-of-life: auto-pairs, key hints, git signs
return {
-- Auto-close brackets, quotes, etc.
{
"windwp/nvim-autopairs",
event = "InsertEnter",
config = true,
},
-- Press <leader> and wait to see all available keybindings
{
"folke/which-key.nvim",
event = "VeryLazy",
config = function()
require("which-key").setup({})
end,
},
-- Git change indicators in the gutter + hunk actions
-- <leader>gp → preview hunk diff
-- <leader>gb → blame current line
{
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup({
signs = {
add = { text = "" },
change = { text = "" },
delete = { text = "" },
topdelete = { text = "" },
changedelete = { text = "" },
},
})
local map = vim.keymap.set
map("n", "<leader>gp", "<cmd>Gitsigns preview_hunk<cr>", { desc = "Preview hunk" })
map("n", "<leader>gb", "<cmd>Gitsigns blame_line<cr>", { desc = "Git blame line" })
end,
},
}