diff options
author | davidpkj <davidpenkow1@gmail.com> | 2022-12-03 22:26:26 +0100 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2022-12-03 22:26:26 +0100 |
commit | 5d4a749b7c51649bcd3953cd1686856408d08121 (patch) | |
tree | d0ddab7d5ee206e9b4403d4f177d942ec1608aa0 /neovim/.config/nvim/lua/settings.lua | |
parent | 4f7ccffecdfa36c5e531654b8eec44199935d497 (diff) |
Merge in dotfiles
Diffstat (limited to 'neovim/.config/nvim/lua/settings.lua')
-rw-r--r-- | neovim/.config/nvim/lua/settings.lua | 53 |
1 files changed, 53 insertions, 0 deletions
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 = " " + |