Public Access
update
This commit is contained in:
+14
-7
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user