This commit is contained in:
2025-05-26 13:14:39 +02:00
parent 21eda9b349
commit 0e17a48de3
4 changed files with 20 additions and 13 deletions
+14 -7
View File
@@ -7,8 +7,6 @@ vim.g.mapleader = " "
-- Enable line wrapping
vim.opt.wrap = true
vim.opt.linebreak = true
-- Customize the symbol shown at the beginning of wrapped lines
vim.opt.showbreak = ""
-- Make 'j' and 'k' navigate visual lines (not logical lines)
@@ -19,10 +17,19 @@ vim.keymap.set("v", "k", "gk", { noremap = true, silent = true })
-- Spellchecker
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown", "text", "typst" },
callback = function()
vim.opt_local.spell = true
vim.opt_local.spelllang = "de"
end,
pattern = { "markdown", "text", "typst" },
callback = function()
vim.opt_local.spell = true
vim.opt_local.spelllang = "de"
end,
})
-- Clear search highlights when entering insert mode.
vim.api.nvim_create_autocmd("InsertEnter", {
callback = function()
-- Delay the nohlsearch slightly to ensure it takes effect
vim.defer_fn(function()
vim.cmd("nohlsearch")
end, 10)
end,
})