This commit is contained in:
2025-05-17 15:38:32 +02:00
parent 58f93a943c
commit 7572e669f2
9 changed files with 135 additions and 135 deletions
-15
View File
@@ -3,18 +3,3 @@ vim.cmd("set shiftwidth=4")
vim.wo.relativenumber = true
vim.opt.number = true
vim.g.mapleader = " "
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown", "text", "plaintex" },
callback = function()
vim.opt_local.wrap = true
vim.opt_local.linebreak = true
vim.opt_local.breakindent = true
vim.opt_local.showbreak = ""
end,
})
-- Smart navigation for wrapped lines
vim.keymap.set("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
vim.keymap.set("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
vim.keymap.set("x", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
vim.keymap.set("x", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })