From c959b2112fb4c82b5bfd410df21706455225bd40 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Jul 2024 17:03:56 +0100 Subject: minor additions --- lua/options.lua | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lua/options.lua (limited to 'lua/options.lua') diff --git a/lua/options.lua b/lua/options.lua new file mode 100644 index 0000000..4023cf1 --- /dev/null +++ b/lua/options.lua @@ -0,0 +1,50 @@ +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.splitbelow = true +vim.opt.splitright = true + +vim.opt.wrap = false + +vim.opt.expandtab = true +vim.opt.tabstop = 4 +vim.opt.shiftwidth = 4 + +vim.opt.clipboard = "unnamedplus" + +vim.opt.scrolloff = 999 + +vim.opt.virtualedit = "block" +vim.opt.ignorecase = true +vim.opt.termguicolors = true + +vim.g.mapleader = "," +vim.g.maplocalleader = "," +vim.opt.backup = false -- creates a backup file +vim.opt.cmdheight = 1 -- more space in the neovim command line for displaying messages +vim.opt.completeopt = { "menuone", "noselect" } +vim.opt.conceallevel = 0 -- so that `` is visible in markdown files +vim.opt.fileencoding = "utf-8" -- the encoding written to a file +vim.opt.foldmethod = "manual" -- folding, set to "expr" for treesitter based folding +vim.opt.foldexpr = "" -- set to "nvim_treesitter#foldexpr()" for treesitter based folding +vim.opt.hidden = true -- required to keep multiple buffers and open multiple buffers +vim.opt.hlsearch = true -- highlight all matches on previous search pattern +vim.opt.pumheight = 10 -- pop up menu height +vim.opt.smartcase = true -- smart case +vim.opt.swapfile = false -- creates a swapfile +vim.opt.timeoutlen = 1000 -- time to wait for a mapped sequence to complete (in milliseconds) +vim.opt.title = true -- set the title of window to the value of the titlestring +vim.opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to +vim.opt.undofile = true -- enable persistent undo +vim.opt.updatetime = 100 -- faster completion +vim.opt.writebackup = false -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited +vim.opt.cursorline = true -- highlight the current line +vim.opt.numberwidth = 4 -- set number column width to 2 {default 4} +vim.opt.signcolumn = "yes" -- always show the sign column, otherwise it would shift the text each time +vim.opt.sidescrolloff = 8 -- minimal number of screen lines to keep left and right of the cursor. +vim.opt.showcmd = false +vim.opt.ruler = false +vim.opt.laststatus = 3 + +vim.g.loaded_netrw = 1 -- disable netrw +vim.g.loaded_netrwPlugin = 1 + -- cgit v1.2.3