From 5d4a749b7c51649bcd3953cd1686856408d08121 Mon Sep 17 00:00:00 2001 From: davidpkj Date: Sat, 3 Dec 2022 22:26:26 +0100 Subject: Merge in dotfiles --- neovim/.config/nvim/lua/settings.lua | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 neovim/.config/nvim/lua/settings.lua (limited to 'neovim/.config/nvim/lua/settings.lua') diff --git a/neovim/.config/nvim/lua/settings.lua b/neovim/.config/nvim/lua/settings.lua new file mode 100644 index 0000000..e65dbff --- /dev/null +++ b/neovim/.config/nvim/lua/settings.lua @@ -0,0 +1,53 @@ +local g = vim.g +local o = vim.o + +-- Amount of lines to keep below and above the cursor +o.scrolloff = 10 + +-- I like it this way +o.number = true +o.cursorline = true +o.relativenumber = true +o.numberwidth = 4 + +o.signcolumn = "yes:1" +o.shortmess = o.shortmess .. "c" +o.completeopt = "menuone,noselect,noinsert" + +o.hidden = true +o.backup = false +o.undofile = true +o.swapfile = false +o.writebackup = false +o.encoding = "utf-8" +o.guicursor = "a:ver25-blinkwait50-blinkon50-blinkoff50" + +o.ruler = true +o.showcmd = true +o.showmode = true +o.laststatus = 2 + +o.smarttab = true +o.expandtab = true +o.autoindent = true +o.softtabstop = -1 +o.shiftwidth = 2 +o.tabstop = 2 + +-- Search is case insensitive unless /C or searched capitalized +o.hlsearch = true +o.incsearch = true +o.smartcase = true +o.ignorecase = true + +-- Invisible characters +o.list = true +o.listchars = "trail:·,nbsp:×,tab:->" + +-- Clipboard works with os +o.clipboard = "unnamedplus" + +-- Map leader to space +g.mapleader = " " +g.maplocalleader = " " + -- cgit v1.2.3