From aa5717f00fd14430c80939a68d7107c26de6e554 Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Tue, 20 Jan 2026 15:55:27 -0500 Subject: first commit --- plugin/10_options.lua | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 plugin/10_options.lua (limited to 'plugin/10_options.lua') diff --git a/plugin/10_options.lua b/plugin/10_options.lua new file mode 100644 index 0000000..ce3b235 --- /dev/null +++ b/plugin/10_options.lua @@ -0,0 +1,53 @@ +vim.o.title = true +vim.opt.fillchars = { msgsep ="‾", vert="┋" } + +vim.o.autoindent = true +vim.o.expandtab = true +vim.o.shiftwidth = 4 +vim.o.tabstop = 4 +vim.o.cinoptions = "l1,:0,g0,E-s,N-s,t0,(s,J1,j1" +vim.o.virtualedit = "block" + +vim.o.splitright = true +vim.o.splitbelow = true + +vim.o.linebreak = true +vim.o.wrap = true +vim.o.smoothscroll = true + +vim.o.swapfile = false +vim.o.undofile = true +vim.o.shada = "!,'100,<50,s10,:1000,/100,@100,h,r/tmp/,rterm:,rhealth:" + +vim.o.foldlevelstart = 99 +vim.o.foldtext = "" + +vim.o.ignorecase = true +vim.o.smartcase = true +vim.o.incsearch = true +vim.o.inccommand = "split" + +vim.o.completeopt = "menu,menuone,noselect,fuzzy" +vim.o.pumheight = 10 +vim.o.pummaxwidth = 50 +vim.o.wildmode = "longest:full,full" +vim.o.wildoptions = "pum,fuzzy" +vim.opt.wildignore:append({ "*.pyc", "__pycache__", "*~", "#*#", "*.o" }) + +vim.o.spelllang = "en_us,en-academic" +vim.o.spelloptions = "camel" +vim.opt.complete:append("kspell") + +vim.o.signcolumn = "no" + +vim.o.number = true +vim.o.cursorline = true + +vim.g.tex_flavor = "latex" +vim.g.tex_no_error = 1 +vim.g.tex_comment_nospell = 1 +vim.opt.tags:append({ "tags;~", ".tags;~" }) + +vim.o.laststatus = 1 +vim.o.statusline = "%<%f %h%w%m%r %=%{% &showcmdloc == 'statusline' ? '%-10.S ' : '' %}%{% exists('b:keymap_name') ? '<'..b:keymap_name..'> ' : '' %}%{% &busy > 0 ? '◐ ' : '' %}%{% luaeval('(package.loaded[''vim.diagnostic''] and #vim.diagnostic.count() ~= 0 and vim.diagnostic.status() .. '' '') or '''' ') %}%{% v:lua.require'mo.statusline'.lsp_status() %}%{% &ruler ? ( &rulerformat == '' ? '%-14.(%l,%c%V%) %P' : &rulerformat ) : '' %}" + -- cgit v1.2.3-71-gdd5e