summaryrefslogtreecommitdiff
path: root/plugin/10_options.lua
diff options
context:
space:
mode:
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-01-20 15:55:27 -0500
committerMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-01-20 15:55:27 -0500
commitaa5717f00fd14430c80939a68d7107c26de6e554 (patch)
tree784e99d9b018e0554369c41cb33e2e195e28d3c6 /plugin/10_options.lua
first commit
Diffstat (limited to 'plugin/10_options.lua')
-rw-r--r--plugin/10_options.lua53
1 files changed, 53 insertions, 0 deletions
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 ) : '' %}"
+