diff --git a/init.lua b/init.lua index 4d2291f..2c89d66 100644 --- a/init.lua +++ b/init.lua @@ -37,7 +37,6 @@ require('lazy').setup(vim.tbl_extend('keep', config.user_lazy_opts(), { 'matchparen', '2html_plugin', 'tarPlugin', - 'netrwPlugin', 'tutor', 'zipPlugin', }, diff --git a/lua/plex/config/autocmds.lua b/lua/plex/config/autocmds.lua index 44289c8..7c0c790 100644 --- a/lua/plex/config/autocmds.lua +++ b/lua/plex/config/autocmds.lua @@ -96,7 +96,7 @@ vim.api.nvim_create_autocmd('VimResized', { -- Wrap and enable spell-checker in text filetypes vim.api.nvim_create_autocmd('FileType', { group = augroup('spell_conceal'), - pattern = { 'gitcommit', 'markdown' }, + pattern = { 'gitcommit', 'markdown', 'tex', 'latex', 'norg' }, callback = function() vim.opt_local.spell = true vim.opt_local.conceallevel = 0 diff --git a/lua/plex/config/keymaps.lua b/lua/plex/config/keymaps.lua index a07528c..d4f80b9 100644 --- a/lua/plex/config/keymaps.lua +++ b/lua/plex/config/keymaps.lua @@ -72,6 +72,10 @@ map('c', '', '') map('n', 'zl', 'z4l') map('n', 'zh', 'z4h') +-- move to spelling mistake +map('n', 'zn', ']s') +map('n', 'zN', '[s') + -- Clipboard -- === diff --git a/lua/plex/config/options.lua b/lua/plex/config/options.lua index 50bf792..b1364d8 100644 --- a/lua/plex/config/options.lua +++ b/lua/plex/config/options.lua @@ -26,6 +26,7 @@ opt.shada = { "'1000", "<50", "s10", "h" } opt.conceallevel = 3 opt.signcolumn = 'yes' opt.spelloptions:append('camel') +opt.spelllang = 'en,de' -- What to save for views and sessions opt.viewoptions:remove('folds') diff --git a/lua/plex/plugins/editor.lua b/lua/plex/plugins/editor.lua index 39c9ffa..1361128 100644 --- a/lua/plex/plugins/editor.lua +++ b/lua/plex/plugins/editor.lua @@ -170,7 +170,9 @@ return { ----------------------------------------------------------------------------- { + -- NOTE: This is leap for selecting things! 'ggandor/flit.nvim', + enabled = true, keys = function() ---@type LazyKeys[] local ret = {} @@ -187,13 +189,17 @@ return { 'ggandor/leap.nvim', -- stylua: ignore keys = { - { 't', '(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' }, - { 'T', '(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' }, - { 'wt', '(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap from windows' }, + { 'gl', '(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' }, + { 'gL', '(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' }, + { 'wl', '(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' }, }, config = function () local leap = require('leap') leap.opts.case_sensitive = false + leap.opts.safe_labels = { 's', 'f', 'n', 'u', 't', 'e' } + --leap.opts.labels = { 'a', 's', 'f', 'n', 'j', 'k', 'r', 'e', 'r', 'm', + -- 'รถ', 'b', 'v', 'u', 'z', 'w', '2', '3', '4', '5', '6', + -- '7', '8', '9' } end, }, diff --git a/spell/de.utf-8.spl b/spell/de.utf-8.spl new file mode 100644 index 0000000..37cbbca Binary files /dev/null and b/spell/de.utf-8.spl differ diff --git a/spell/de.utf-8.sug b/spell/de.utf-8.sug new file mode 100644 index 0000000..13ff0a3 Binary files /dev/null and b/spell/de.utf-8.sug differ diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index fbf6abc..1f9941c 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -1,3 +1,15 @@ #ifferent Linter Neorg +DevOps +NewTec +Mergetools +Quellrepository +gemerged +mergen +a +ccl +NTSG +a +Jira +ReqEng diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 7a22355..e147acb 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ