Public Access
added spellcheck stuff
This commit is contained in:
@@ -11,6 +11,13 @@ vim.o.swapfile = false
|
||||
vim.g.mapleader = " "
|
||||
vim.o.winborder = "single"
|
||||
|
||||
-- Make 'j' and 'k' navigate visual lines (not logical lines)
|
||||
vim.keymap.set("n", "j", "gj", { noremap = true, silent = true })
|
||||
vim.keymap.set("n", "k", "gk", { noremap = true, silent = true })
|
||||
vim.keymap.set("v", "j", "gj", { noremap = true, silent = true })
|
||||
vim.keymap.set("v", "k", "gk", { noremap = true, silent = true })
|
||||
|
||||
|
||||
-- VIM OPTIONS END --
|
||||
|
||||
-- PLUGINS START --
|
||||
@@ -112,3 +119,18 @@ vim.diagnostic.config({
|
||||
},
|
||||
severity_sort = true,
|
||||
})
|
||||
|
||||
-- Toggle spell check with <leader>sc
|
||||
vim.keymap.set("n", "<leader>sc", function()
|
||||
vim.wo.spell = not vim.wo.spell
|
||||
print("Spell checking: " .. (vim.wo.spell and "ON" or "OFF"))
|
||||
end, { desc = "Toggle spell checking" })
|
||||
|
||||
-- Switch between English and German with <leader>sl
|
||||
vim.keymap.set("n", "<leader>sl", function()
|
||||
local current = vim.opt.spelllang:get()[1] or ""
|
||||
local new_lang = current == "en" and "de" or "en"
|
||||
vim.opt.spelllang = new_lang
|
||||
print("Spell language: " .. new_lang)
|
||||
end, { desc = "Switch spell language" })
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Plugin
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
UXP
|
||||
Monorepo
|
||||
Quickstart
|
||||
Vite
|
||||
npm
|
||||
InDesign
|
||||
Vue
|
||||
monorepo
|
||||
config
|
||||
AeroSpace
|
||||
macOS
|
||||
github
|
||||
toml
|
||||
dvorak
|
||||
colemak
|
||||
nvim
|
||||
yazi
|
||||
Gruvbox
|
||||
fzf
|
||||
eza
|
||||
bitwarden
|
||||
Binary file not shown.
Reference in New Issue
Block a user