From 9eeb40994c2f65271c5497a1f601f6b9e100945e Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 9 Feb 2024 15:42:09 +0100 Subject: [PATCH 1/2] spell --- spell/en.utf-8.add | 4 ++++ spell/en.utf-8.add.spl | Bin 3528 -> 3559 bytes 2 files changed, 4 insertions(+) diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 70ff233..c241e59 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -275,3 +275,7 @@ IoT einen NTSecureGateway SoC +Lockscreen +licht/! +Licht +ESRDD diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index a421d971f7f7f3c7064cae62ec9939ef7e3316c5..cb8d3cd33a8412fe74d956c70c77ee545edbac2d 100644 GIT binary patch delta 696 zcmX9*O=}cE5S{9tkDU!kHeNPnQ7{PzQHdmq8c;A0M8q6C-WY+;D z@fbaLD1?BJn+PH-8U(?ENBseM5`y3t<|YA8Vtli@v6a$g;W-e-;nQxuTdFvZ)%Y+5)d?w}sSkyVlUzL9VyF?v$y^ zo6a0f^Nw?BayxLUD$Ux`c)Pt~YO!qv1@oWCH0vOurlzJz_K|1YIhy5lw+#NKyM}n! zTcUYh^G1Yp_=$Izh+lgFz2MSRO_`* zqoEpYHUmSBPZ?TtFphCE3;Qd7@sH3A{^w7WKraWX9vkr_)pvNNSfQL3ij(e8M3&p- zhsC3Gi=P)qMrV&>RvBbFI5i@W|I}UM@w9@1eTaV)&t1wj$~Cr9xG|S)N5!dz*!PYI uViA~OH{cbB$RLICWNh*m);N~9`kf{2G$O0h=|*314(lGV*loNN+&HKLZeQ$Q%PwwQM`P-egjN{q= zj5$v}Og`XFE(oKzm1tb%OSsElfX0X77%by+aSD8VCl+8I|A=e!En82I?5CUoV~Z(| zIslCOIJ9Oa1`&ARLqZwh;BRZLsUuL73n4P6z9rBDNfB$tyq-`Pz<^##e2vY4gOqX| z=#C)ZZNu_HnOcoRr(@6!kE(3~3r)|gq{uUUtGJn|f&0=vUw-drJgL&2FskmiG?m3q zNs#707Aoyi1Z_<)RN2ORc5SMf5R9SjkKowiK(GLq<>IFO460bk)?p6cWJ{bM;4nJ{ z40p0Vyuymp1{>EL_q4T_5*}L*pgEdQFwFx)auKe=B`RfB@Vm1_R@QPiE2Wqwkf3>8 z38_d=(dc8>jW*#JE7-rT2=#!bfXk9TE0Lls*SM8CK5y+cpfR#ilVDAj8z+ckn39|0 z)toVVvA)FMi#oXwQNxI1OVdWeu^$U~GCyuWZsF&AX}Wrr`o~@=qBc|WUrpPnzaR-m{6)KP<%ZT|gb}Prrz!R_GE$nrw)@ Date: Fri, 9 Feb 2024 18:49:07 +0100 Subject: [PATCH 2/2] ft alias --- lua/custom/init.lua | 123 +++++++++++++++++++++++--------------------- 1 file changed, 63 insertions(+), 60 deletions(-) diff --git a/lua/custom/init.lua b/lua/custom/init.lua index a510a86..24586dc 100644 --- a/lua/custom/init.lua +++ b/lua/custom/init.lua @@ -2,7 +2,7 @@ local opt = vim.opt local g = vim.g g.maplocalleader = ";" -opt.mouse = "a" -- mouse does annoying things for me if it's not 'a' +opt.mouse = "a" -- mouse does annoying things for me if it's not 'a' opt.signcolumn = "yes" opt.clipboard = "" -- don't just use the system clipboard opt.wrap = false @@ -19,13 +19,13 @@ opt.shada = { "'1000", "<50", "s10", "h" } -- Tabs and Indents -- === -opt.textwidth = 80 -- Text width maximum chars before wrapping -opt.tabstop = 4 -- The number of spaces a tab is -opt.shiftwidth = 4 -- Number of spaces to use in auto(indent) -opt.smarttab = true -- Tab insert blanks according to 'shiftwidth' -opt.autoindent = true -- Use same indenting on new lines +opt.textwidth = 80 -- Text width maximum chars before wrapping +opt.tabstop = 4 -- The number of spaces a tab is +opt.shiftwidth = 4 -- Number of spaces to use in auto(indent) +opt.smarttab = true -- Tab insert blanks according to 'shiftwidth' +opt.autoindent = true -- Use same indenting on new lines opt.smartindent = true -- Smart autoindenting on new lines -opt.shiftround = true -- Round indent to multiple of 'shiftwidth' +opt.shiftround = true -- Round indent to multiple of 'shiftwidth' -- Timing -- === @@ -37,18 +37,18 @@ opt.updatetime = 500 -- Idle time to write swap and trigger CursorHold -- Searching -- === opt.ignorecase = true -- Search ignoring case -opt.smartcase = true -- Keep case when searching with * -opt.infercase = true -- Adjust case in insert completion mode -opt.incsearch = true -- Incremental search +opt.smartcase = true -- Keep case when searching with * +opt.infercase = true -- Adjust case in insert completion mode +opt.incsearch = true -- Incremental search -- Formatting -- === -opt.wrap = false -- No wrap by default -opt.linebreak = true -- Break long lines at 'breakat' +opt.wrap = false -- No wrap by default +opt.linebreak = true -- Break long lines at 'breakat' opt.breakat = "\\ \\ ;:,!?" -- Long lines break chars -opt.startofline = false -- Cursor in same column for few commands -opt.splitbelow = true -- Splits open bottom right +opt.startofline = false -- Cursor in same column for few commands +opt.splitbelow = true -- Splits open bottom right opt.splitright = true opt.breakindentopt = { shift = 2, min = 20 } opt.formatoptions = "qnlmBjp" -- see :h fo-table & :h formatoptions @@ -70,31 +70,31 @@ opt.foldlevel = 10 -- start with all folds open vim.o.guifont = "FiraCode Nerd Font:h22" opt.termguicolors = true opt.shortmess = "xsTOInfFitloCaAs" -opt.showmode = true -- Show mode in cmd window -opt.scrolloff = 2 -- Keep at least n lines above/below +opt.showmode = true -- Show mode in cmd window +opt.scrolloff = 2 -- Keep at least n lines above/below opt.sidescrolloff = 0 -- Keep at least n lines left/right -opt.numberwidth = 2 -- Minimum number of columns to use for the line number -opt.number = true -- Show line numbers -opt.ruler = true -- Default status ruler -opt.list = true -- Show hidden characters -opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default -opt.laststatus = 3 -- Always show laststatus +opt.numberwidth = 2 -- Minimum number of columns to use for the line number +opt.number = true -- Show line numbers +opt.ruler = true -- Default status ruler +opt.list = true -- Show hidden characters +opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default +opt.laststatus = 3 -- Always show laststatus 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.wrap = true + opt.showtabline = 1 -- Don't show tabline in firenvim, unless multitab + opt.laststatus = 1 -- Don't show laststatus in firenvim + opt.wrap = true end -opt.helpheight = 0 -- Disable help window resizing -opt.winwidth = 30 -- Minimum width for active window -opt.winminwidth = 1 -- Minimum width for inactive windows -opt.winheight = 1 -- Minimum height for active window -opt.winminheight = 1 -- Minimum height for inactive window +opt.helpheight = 0 -- Disable help window resizing +opt.winwidth = 30 -- Minimum width for active window +opt.winminwidth = 1 -- Minimum width for inactive windows +opt.winheight = 1 -- Minimum height for active window +opt.winminheight = 1 -- Minimum height for inactive window -opt.showcmd = false -- show command in status line +opt.showcmd = false -- show command in status line opt.cmdheight = 0 -opt.cmdwinheight = 5 -- Command-line lines +opt.cmdwinheight = 5 -- Command-line lines opt.equalalways = true -- Resize windows on split or close opt.colorcolumn = "+0" -- Column highlight at textwidth's max character-limit @@ -102,8 +102,8 @@ opt.cursorline = true opt.cursorlineopt = { "number", "screenline" } opt.pumheight = 10 -- Maximum number of items to show in the popup menu -opt.pumwidth = 10 -- Minimum width for the popup menu -opt.pumblend = 10 -- Popup blend +opt.pumwidth = 10 -- Minimum width for the popup menu +opt.pumblend = 10 -- Popup blend -- Spelling correction -- === @@ -115,50 +115,53 @@ opt.spellsuggest = "double,50,timeout:5000" -- autocommands -- === local function augroup(name) - return vim.api.nvim_create_augroup("plex_" .. name, {}) + return vim.api.nvim_create_augroup("plex_" .. name, {}) end -- highlight on yank vim.api.nvim_create_autocmd("TextYankPost", { - group = augroup "highlight_yank", - callback = function() - vim.highlight.on_yank() - end, + group = augroup "highlight_yank", + callback = function() + vim.highlight.on_yank() + end, }) -- Disable conceallevel for specific file-types. vim.api.nvim_create_autocmd("FileType", { - group = augroup "fix_conceallevel", - pattern = { "latex", "tex" }, - callback = function() - vim.opt_local.conceallevel = 0 - end, + group = augroup "fix_conceallevel", + pattern = { "latex", "tex" }, + callback = function() + vim.opt_local.conceallevel = 0 + end, }) -- Resize splits if window got resized vim.api.nvim_create_autocmd("VimResized", { - group = augroup "resize_splits", - callback = function() - vim.cmd "wincmd =" - end, + group = augroup "resize_splits", + callback = function() + vim.cmd "wincmd =" + end, }) -- Wrap and enable spell-checker in text filetypes vim.api.nvim_create_autocmd("FileType", { - group = augroup "spell_conceal", - pattern = { "gitcommit", "markdown", "tex", "latex", "norg" }, - callback = function() - vim.opt_local.spell = true - vim.opt_local.conceallevel = 0 - end, + group = augroup "spell_conceal", + pattern = { "gitcommit", "markdown", "tex", "latex", "norg" }, + callback = function() + vim.opt_local.spell = true + vim.opt_local.conceallevel = 0 + end, }) -- map resizing for firenvim if vim.g.started_by_firenvim == true then - vim.keymap.set("n", "", function() - vim.o.lines = vim.o.lines + 1 - end, { expr = true, desc = "Make Display bigger" }) - vim.keymap.set("n", "", function() - vim.o.lines = vim.o.lines - 1 - end, { expr = true, desc = "Make Display smaller" }) + vim.keymap.set("n", "", function() + vim.o.lines = vim.o.lines + 1 + end, { expr = true, desc = "Make Display bigger" }) + vim.keymap.set("n", "", function() + vim.o.lines = vim.o.lines - 1 + end, { expr = true, desc = "Make Display smaller" }) end + +-- alias filetypes +vim.filetype.add { extension = { tera = 'html' } }