feat: quality of life improvements

This commit is contained in:
Oliver Ladner 2025-05-20 14:27:32 +02:00
commit 6476de3f61
7 changed files with 30 additions and 13 deletions

View file

@ -0,0 +1,8 @@
-- Highlight, list and search todo comments in your projects
-- https://github.com/folke/todo-comments.nvim
return {
"m4xshen/hardtime.nvim",
lazy = false,
dependencies = { "MunifTanjim/nui.nvim" },
opts = {},
}

View file

@ -4,18 +4,21 @@ return {
version = false,
config = function()
require("mini.icons").setup()
require("mini.ai").setup({ n_lines = 500 })
require("mini.trailspace").setup()
require("mini.cursorword").setup()
require("mini.surround").setup({
mappings = {
add = "wq", -- Add surrounding in Normal and Visual modes
delete = "wd", -- Delete surrounding
-- find = "sf", -- Find surrounding (to the right)
-- find_left = "sF", -- Find surrounding (to the left)
highlight = "hs", -- Highlight surrounding
replace = "wc", -- Replace surrounding
-- update_n_lines = "sn", -- Update `n_lines`
-- suffix_last = "l", -- Suffix to search with "prev" method
-- suffix_next = "n", -- Suffix to search with "next" method
-- add = "wq", -- Add surrounding in Normal and Visual modes
-- delete = "wd", -- Delete surrounding
-- -- find = "sf", -- Find surrounding (to the right)
-- -- find_left = "sF", -- Find surrounding (to the left)
-- highlight = "hs", -- Highlight surrounding
-- replace = "wc", -- Replace surrounding
-- -- update_n_lines = "sn", -- Update `n_lines`
--
-- -- suffix_last = "l", -- Suffix to search with "prev" method
-- -- suffix_next = "n", -- Suffix to search with "next" method
},
})
end,

View file

@ -29,6 +29,9 @@ return {
},
},
pickers = {
colorscheme = {
enable_preview = true,
},
find_files = {
hidden = true,
wrap_results = false, -- this is not about the preview

View file

@ -48,9 +48,9 @@ end, { noremap = true, desc = "Git diff/stage" })
vim.keymap.set("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>", { noremap = true, desc = "Git blame" })
-- Remapping of existing Vim key binds
vim.keymap.set("n", "w", "W") -- skip punctuation when moving to start of next word
vim.keymap.set("n", "e", "E") -- skip punctuation when moving to end of next word
vim.keymap.set("n", "b", "B") -- skip punctuation when moving to end of previous word
-- vim.keymap.set("n", "w", "W") -- skip punctuation when moving to start of next word
-- vim.keymap.set("n", "e", "E") -- skip punctuation when moving to end of next word
-- vim.keymap.set("n", "b", "B") -- skip punctuation when moving to end of previous word
--vim.keymap.set("n", "<leader>i", "gg=G``", { noremap = true, desc = "Re-indent whole file" }) -- '``' makes it stay at current line+column position