From 9f20c1f313e20102dd83adeaf091284be1fd82d0 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Wed, 11 Sep 2024 14:49:39 +0200 Subject: config --- nvim/lua/config/options.lua | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 nvim/lua/config/options.lua (limited to 'nvim/lua/config/options.lua') diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua new file mode 100644 index 0000000..1629194 --- /dev/null +++ b/nvim/lua/config/options.lua @@ -0,0 +1,39 @@ +local opt = vim.opt + +-- Indent +opt.softtabstop = 2 +opt.shiftwidth = 2 +opt.expandtab = true +opt.smartindent = true +opt.wrap = false + +-- Appearance +opt.number = true +opt.cursorline = true +opt.termguicolors = true +opt.showmode = true +opt.colorcolumn = "100" +opt.signcolumn = "yes" +opt.cmdheight = 1 +opt.scrolloff = 10 +opt.completeopt = "menuone,noinsert,noselect" + +-- Search +opt.incsearch = true +opt.hlsearch = false +opt.ignorecase = true +opt.smartcase = true + +-- Behaviuor +opt.hidden = true +opt.errorbells = false +opt.swapfile = false +opt.backup = false +opt.backspace = "indent,eol,start" +opt.splitright = true +opt.splitbelow = true +opt.autochdir = false +opt.mouse = "a" +opt.clipboard = "unnamedplus" +opt.modifiable = true +opt.encoding = "UTF-8" -- cgit v1.2.3