From 22f4fa182c2048d1f07dcd6e5729cd946771c9f9 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Fri, 23 Jun 2023 03:49:02 -0400 Subject: refactor: added lua folder --- .config/nvim/lua/opts.lua | 53 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .config/nvim/lua/opts.lua (limited to '.config/nvim/lua/opts.lua') diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua new file mode 100644 index 0000000..547b697 --- /dev/null +++ b/.config/nvim/lua/opts.lua @@ -0,0 +1,53 @@ +local opts = { + -- clipboard = "unnamedplus", + -- textwidth = 80, + autochdir = true, + autoindent = true, + cursorline = true, + expandtab = true, + hlsearch = true, + ignorecase = true, + listchars = { tab = ">-", trail = "~", extends = ">", precedes = "<", space = "." }, + mouse = "a", + number = true, + relativenumber = true, + shiftwidth = 4, + showmatch = true, + smartcase = true, + softtabstop = 4, + tabstop = 4, + termguicolors = true, + ttimeout = true, + ttimeoutlen = 1, + ttyfast = true, +} + +-- Customize split dividers +vim.opt.fillchars = vim.opt.fillchars + { + vert = "█", + fold = "█", + diff = "█", + stl = "=", + stlnc = "=", + stl = "=" +} + +-- Use a line cursor within insert mode and a block cursor everywhere else. +-- Reference chart of values: +-- Ps = 0 -> blinking block. +-- Ps = 1 -> blinking block (default). +-- Ps = 2 -> steady block. +-- Ps = 3 -> blinking underline. +-- Ps = 4 -> steady underline. +-- Ps = 5 -> blinking bar (xterm). +-- Ps = 6 -> steady bar (xterm). +vim.g.t_SI = "\27[6 q" +vim.g.t_EI = "\27[2 q" + +if vim.env.TERM == "alacritty" then + vim.opt.ttymouse = "sgr" +end + +for x, y in pairs(opts) do + vim.opt[x] = y +end -- cgit v1.2.3