diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index ce7ecfa..072e462 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -97,10 +97,23 @@ vim.keymap.set({ 'n', 'v' }, 'yy', '"+yy', { desc = '[Y]ank to system' } vim.keymap.set({ 'n', 'v' }, 'p', '"+p', { desc = '[P]aste from system' }) vim.keymap.set({ 't', 'n', 'v' }, '', '"+pi', { desc = 'Paste the system clipboard' }) +-- do not overwrite the register when pasting (kept defaults) +vim.keymap.set({ 'v' }, 'P', 'P', { desc = '[P]aste to selected' }) +vim.keymap.set({ 'v' }, 'p', 'p', { desc = '[p]aste to selected and copy to register' }) + -- add lines from normal and visual, without insert mode vim.keymap.set({ 'n', 'v' }, 'OO', 'O', { desc = 'Insert a line above' }) vim.keymap.set({ 'n', 'v' }, 'oo', 'o', { desc = 'Insert a line below' }) +-- add lines from normal and visual, with insert mode +vim.keymap.set({ 'n', 'v' }, 'O', 'O', { desc = 'Insert a line above and insert' }) +vim.keymap.set({ 'n', 'v' }, 'o', 'o', { desc = 'Insert a line below and insert' }) +vim.keymap.set({ 'n', 'v' }, 'Oi', 'O', { desc = 'Insert a line above and insert' }) +vim.keymap.set({ 'n', 'v' }, 'oi', 'o', { desc = 'Insert a line below and insert' }) + +-- make current line a blank line and insert +vim.keymap.set({ 'n', 'v' }, 'do', 'Vc', { desc = '[D]o [O]ver / Rewrite line' }) + -- substitute, normally on 's', but the leap plugin is more useful on 's' vim.keymap.set({ 'n' }, 's', 's', { desc = '[S]ubstitute hovered text' }) diff --git a/lua/custom/plugins/configs/lsp.lua b/lua/custom/plugins/configs/lsp.lua index cbaa2fe..4d95e92 100644 --- a/lua/custom/plugins/configs/lsp.lua +++ b/lua/custom/plugins/configs/lsp.lua @@ -187,7 +187,7 @@ local servers = { }, ltex = { use_spellfile = true, - autostart = true, + autostart = false, filetypes = { 'latex', 'tex', 'markdown', 'typst' }, settings = { ltex = { diff --git a/lua/settings/theme.lua b/lua/settings/theme.lua index 51e0cca..f0d0986 100644 --- a/lua/settings/theme.lua +++ b/lua/settings/theme.lua @@ -2,6 +2,6 @@ -- -- Themery block -- This block will be replaced by Themery. -vim.cmd("colorscheme kanagawa-wave") -vim.g.theme_id = 13 +vim.cmd("colorscheme tokyonight-storm") +vim.g.theme_id = 10 -- end themery block diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 6493bed..b8303c2 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -391,3 +391,9 @@ Featurefile maschinen menschenlesbar thiserror +WSL +verbindungen/! +acl +Metadatum +Serve/! +Featurefiles