From 33fe27fd3dfbe21cf1ca9b4ab2b9c960e0ef9dd4 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 20 Aug 2023 23:38:05 +0300 Subject: nvim: nvim-ufo, bunch of fixes --- .config/nvim/lua/core/options.lua | 97 +++++++++++++++++++-------------------- 1 file changed, 48 insertions(+), 49 deletions(-) (limited to '.config/nvim/lua/core/options.lua') diff --git a/.config/nvim/lua/core/options.lua b/.config/nvim/lua/core/options.lua index 3299e83..1a45b8f 100644 --- a/.config/nvim/lua/core/options.lua +++ b/.config/nvim/lua/core/options.lua @@ -1,75 +1,74 @@ local opts = { - -- this might not be needed anymore - termguicolors = true, + -- this might not be needed anymore + termguicolors = true, - -- copy indent on a new line - autoindent = true, + -- copy indent on a new line + autoindent = true, - -- :h tabstop, 2. point - -- use appropriate number of spaces to insert a - expandtab = true, - shiftwidth = 4, - softtabstop = 4, - tabstop = 8, + -- :h tabstop, 2. point + -- use appropriate number of spaces to insert a + expandtab = true, + shiftwidth = 4, + softtabstop = 4, + tabstop = 8, - -- use english for spellchecking - spelllang = "en_gb", + -- use english for spellchecking + spelllang = "en_gb", - -- tab completion, zsh style - wildmode = "longest:full,full", + -- tab completion, zsh style + wildmode = "longest:full,full", - -- put one space for join (not two) - joinspaces = false, + -- put one space for join (not two) + joinspaces = false, - -- keep n lines above/below cursor while scrolling - scrolloff = 4, + -- keep n lines above/below cursor while scrolling + scrolloff = 4, - -- line numbers - number = true, + -- line numbers + number = true, - -- manual folding - foldmethod = "marker", + -- manual folding + foldcolumn = "0", + foldlevel = 99, + foldlevelstart = 99, + foldenable = true, - -- set the terminal title - title = true, + -- set the terminal title + title = true, - -- wrap using 'breakat' character - linebreak = true, + -- wrap using 'breakat' character + linebreak = true, - -- new split panes will split to below and right - splitbelow = true, - splitright = true, + -- new split panes will split to below and right + splitbelow = true, + splitright = true, - -- use relative line numbers - relativenumber = true, + -- use relative line numbers + relativenumber = true, - -- we are already using a cursorline, don't clobber linter messages - showmode = false, + -- we are already using a cursorline, don't clobber linter messages + showmode = false, - -- jump to the matching bracket briefly - showmatch = true, + -- jump to the matching bracket briefly + showmatch = true, - -- persistent undo - undofile = true, + -- persistent undo + undofile = true, - -- lower case searches ignore case, upper case searches do not - ignorecase = true, - smartcase = true, + -- lower case searches ignore case, upper case searches do not + ignorecase = true, + smartcase = true, - -- https://stackoverflow.com/a/3445040/ - -- switch case labels - cinoptions = "l1", + -- https://stackoverflow.com/a/3445040/ + -- switch case labels + cinoptions = "l1", } for opt, val in pairs(opts) do - vim.o[opt] = val + vim.o[opt] = val end --- set other options --- local colorscheme = require("helpers.colorscheme") --- vim.cmd.colorscheme(colorscheme) - -- interact with system clipboard vim.opt.clipboard:append('unnamedplus') @@ -90,7 +89,7 @@ vim.opt.diffopt = { -- menu: use a popup menu to show the possible completions -- preview: show extra information -vim.opt.completeopt = {"menu", "menuone", "noselect"} +vim.opt.completeopt = { "menu", "menuone", "noselect" } if vim.fn.executable("rg") then vim.o.grepprg = "rg --vimgrep --no-heading --smart-case" -- cgit v1.2.3-70-g09d2