diff --git a/init.lua b/init.lua index 680e5c6..2277262 100644 --- a/init.lua +++ b/init.lua @@ -2,7 +2,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ';' -- vim.g.python3_host_prog = '/usr/bin/python3' -vim.opt.mouse = 'a' -- mouse does annoying things for me if it's not 'a' +vim.opt.mouse = 'a' -- mouse does annoying things for me if it's not 'a' vim.opt.signcolumn = 'yes' vim.opt.clipboard = '' -- don't just use the system clipboard vim.opt.wrap = false @@ -19,13 +19,13 @@ vim.o.exrc = true -- load local configs in plugin dir -- Tabs and Indents -- === -vim.opt.textwidth = 80 -- Text width maximum chars before wrapping -vim.opt.tabstop = 4 -- The number of spaces a tab is -vim.opt.shiftwidth = 4 -- Number of spaces to use in auto(indent) -vim.opt.smarttab = true -- Tab insert blanks according to 'shiftwidth' -vim.opt.autoindent = true -- Use same indenting on new lines +vim.opt.textwidth = 80 -- Text width maximum chars before wrapping +vim.opt.tabstop = 4 -- The number of spaces a tab is +vim.opt.shiftwidth = 4 -- Number of spaces to use in auto(indent) +vim.opt.smarttab = true -- Tab insert blanks according to 'shiftwidth' +vim.opt.autoindent = true -- Use same indenting on new lines vim.opt.smartindent = true -- Smart autoindenting on new lines -vim.opt.shiftround = true -- Round indent to multiple of 'shiftwidth' +vim.opt.shiftround = true -- Round indent to multiple of 'shiftwidth' -- Timing -- === @@ -37,19 +37,19 @@ vim.opt.updatetime = 250 -- Idle time to write swap and trigger CursorHold -- Searching -- === vim.opt.ignorecase = true -- Search ignoring case -vim.opt.smartcase = true -- Keep case when searching with * -vim.opt.infercase = true -- Adjust case in insert completion mode -vim.opt.incsearch = true -- Incremental search -vim.opt.hlsearch = true -- highlight searched stuff +vim.opt.smartcase = true -- Keep case when searching with * +vim.opt.infercase = true -- Adjust case in insert completion mode +vim.opt.incsearch = true -- Incremental search +vim.opt.hlsearch = true -- highlight searched stuff -- Formatting -- === -vim.opt.wrap = false -- No wrap by default -vim.opt.linebreak = true -- Break long lines at 'breakat' +vim.opt.wrap = false -- No wrap by default +vim.opt.linebreak = true -- Break long lines at 'breakat' vim.opt.breakat = '\\ \\ ;:,!?' -- Long lines break chars -vim.opt.startofline = false -- Cursor in same column for few commands -vim.opt.splitbelow = true -- Splits open bottom right +vim.opt.startofline = false -- Cursor in same column for few commands +vim.opt.splitbelow = true -- Splits open bottom right vim.opt.splitright = true vim.opt.breakindentopt = { shift = 2, min = 20 } vim.opt.formatoptions = 'trowcnlm1jp' -- see :h fo-table & :h formatoptions @@ -74,15 +74,15 @@ vim.opt.foldminlines = 5 vim.o.guifont = 'FiraCode Nerd Font:h15' vim.opt.termguicolors = true vim.opt.shortmess = 'xsTOInfFitloCaAs' -vim.opt.showmode = true -- Show mode in cmd window -vim.opt.scrolloff = 6 -- Keep at least n lines above/below -vim.opt.sidescrolloff = 10 -- Keep at least n lines left/right -vim.opt.numberwidth = 2 -- Minimum number of columns to use for the line number -vim.opt.number = true -- Show line numbers +vim.opt.showmode = true -- Show mode in cmd window +vim.opt.scrolloff = 6 -- Keep at least n lines above/below +vim.opt.sidescrolloff = 10 -- Keep at least n lines left/right +vim.opt.numberwidth = 2 -- Minimum number of columns to use for the line number +vim.opt.number = true -- Show line numbers vim.opt.relativenumber = false -- Show relative line numbers -vim.opt.ruler = true -- Default status ruler -vim.opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default -vim.opt.laststatus = 3 -- Always show laststatus +vim.opt.ruler = true -- Default status ruler +vim.opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default +vim.opt.laststatus = 3 -- Always show laststatus -- Sets how neovim will display certain whitespace characters in the editor. -- See `:help 'list'` @@ -92,7 +92,7 @@ vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } if vim.g.started_by_firenvim == true then opt.showtabline = 1 -- Don't show tabline in firenvim, unless multitab - opt.laststatus = 1 -- Don't show laststatus in firenvim + opt.laststatus = 1 -- Don't show laststatus in firenvim opt.wrap = true end @@ -116,15 +116,15 @@ if vim.g.neovide == true then vim.g.neovide_fullscreen = true end -vim.opt.helpheight = 0 -- Disable help window resizing -vim.opt.winwidth = 30 -- Minimum width for active window -vim.opt.winminwidth = 1 -- Minimum width for inactive windows -vim.opt.winheight = 1 -- Minimum height for active window -vim.opt.winminheight = 1 -- Minimum height for inactive window +vim.opt.helpheight = 0 -- Disable help window resizing +vim.opt.winwidth = 30 -- Minimum width for active window +vim.opt.winminwidth = 1 -- Minimum width for inactive windows +vim.opt.winheight = 1 -- Minimum height for active window +vim.opt.winminheight = 1 -- Minimum height for inactive window -vim.opt.showcmd = false -- show command in status line +vim.opt.showcmd = false -- show command in status line vim.opt.cmdheight = 0 -vim.opt.cmdwinheight = 5 -- Command-line lines +vim.opt.cmdwinheight = 5 -- Command-line lines vim.opt.equalalways = true -- Resize windows on split or close vim.opt.colorcolumn = '80' -- Column highlight at textwidth's max character-limit @@ -132,8 +132,8 @@ vim.opt.cursorline = true vim.opt.cursorlineopt = { 'number', 'screenline' } vim.opt.pumheight = 10 -- Maximum number of items to show in the popup menu -vim.opt.pumwidth = 10 -- Minimum width for the popup menu -vim.opt.pumblend = 10 -- Popup blend +vim.opt.pumwidth = 10 -- Minimum width for the popup menu +vim.opt.pumblend = 10 -- Popup blend -- Spelling correction -- === diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index f050fff..25b1879 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -8,6 +8,7 @@ vim.keymap.set('n', 'tn', ' set nu! ', { desc = '[T]oggle line vim.keymap.set('n', 'trn', ' set rnu! ', { desc = '[T]oggle [R]elative line [N]umbers' }) vim.keymap.set('n', 'tw', ' set wrap! ', { desc = '[T]oggle [W]rap' }) vim.keymap.set('n', 'ts', ' set spell! ', { desc = '[T]oggle [S]pellcheck' }) +vim.keymap.set('n', '', 'wa!wa!wa!wa!', { desc = 'Speichern um jeden Preis' }) -------------------------------------------------------------------------------- -- Movements diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index d9574bc..4c5ac5f 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -140,7 +140,7 @@ gedroppt Dekonstruktor/! dealloziiert Dealloziierung -Dealloziieren +#ealloziieren vvvv TODO vvvv