diff --git a/lazy-lock.json b/lazy-lock.json index d861baa..9f869a5 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -4,16 +4,15 @@ "blink.cmp": { "branch": "main", "commit": "022521a8910a5543b0251b21c9e1a1e989745796" }, "gruvbox": { "branch": "main", "commit": "00e38a379bab3389e187b3953566d67d494dfddd" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, - "ltex-ls.nvim": { "branch": "main", "commit": "968eac261279d88d7f1ed556aa2dbc535a7489fe" }, "lualine.nvim": { "branch": "master", "commit": "0c6cca9f2c63dadeb9225c45bc92bb95a151d4af" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "3856bbb0da214d1f2f3d5a2dd3fea26591f930f9" }, - "mason.nvim": { "branch": "main", "commit": "9eaedb864cdadc29c6eb7d761a6c0d8aee26c91b" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "d24b3f1612e53f9d54d866b16bedab51813f2bf1" }, + "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" }, "none-ls-extras.nvim": { "branch": "main", "commit": "924fe88a9983c7d90dbb31fc4e3129a583ea0a90" }, - "none-ls.nvim": { "branch": "main", "commit": "90e4a27ccaa25979a6b732b9f06dfa43b54957b7" }, + "none-ls.nvim": { "branch": "main", "commit": "db2a48b79cfcdab8baa5d3f37f21c78b6705c62e" }, "nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" }, - "nvim-lspconfig": { "branch": "master", "commit": "f610208989e9c03561f9f601db3133f6ae398fcd" }, - "nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" }, + "nvim-lspconfig": { "branch": "master", "commit": "3ea99227e316c5028f57a4d86a1a7fd01dd876d0" }, + "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "0f051e9813a36481f48ca1f833897210dbcfffde" }, "nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, diff --git a/lua/vim-options.lua b/lua/vim-options.lua index 0378547..54a984f 100644 --- a/lua/vim-options.lua +++ b/lua/vim-options.lua @@ -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, +}) diff --git a/spell/de.utf-8.add b/spell/de.utf-8.add new file mode 100644 index 0000000..767719c --- /dev/null +++ b/spell/de.utf-8.add @@ -0,0 +1 @@ +Plugin diff --git a/spell/de.utf-8.add.spl b/spell/de.utf-8.add.spl new file mode 100644 index 0000000..fc50af2 Binary files /dev/null and b/spell/de.utf-8.add.spl differ