From 6c1e628a407017510b8455451c48a5e6bbf519a2 Mon Sep 17 00:00:00 2001 From: pro100ton Date: Fri, 31 Jan 2025 22:15:52 +0300 Subject: [PATCH] Add basic options --- plugin/options.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 plugin/options.lua diff --git a/plugin/options.lua b/plugin/options.lua new file mode 100644 index 0000000..36a9696 --- /dev/null +++ b/plugin/options.lua @@ -0,0 +1,26 @@ +local opt = vim.opt + +-- Command to show inline what are you trying to perform +opt.inccommand = "split" + +-- Search settings to toggle "smart case" search only if 1+ uppercase char +-- persist in search line +opt.smartcase = true +opt.ignorecase = true + +-- Enable line numbers and relative setting +opt.number = true +opt.relativenumber = true + +-- Tabulation and indentation settings +opt.shiftwidth = 2 -- Set spaces for tabs == 2 +opt.tabstop = 2 -- Set spaces for indent with == 2 +opt.expandtab = true -- use number of spaces to insert a +opt.softtabstop = 2 + +-- Disable swap files creation +opt.swapfile = false + +-- Add line at 80 symbols +opt.colorcolumn = "80" +