dotfiles/home/.config/nvim/lua/settings.lua
Marko Korhonen 6751e7b356
Refactor settings.lua
- Remove all options that matched the defaults in NeoVim
- Remove clipboard=unnamedplus and learded to use registers :)
- set some modern NeoVim settings, f.ex laststatus=3 and cmdheight=0
2022-09-03 00:56:33 +03:00

40 lines
627 B
Lua

local o = vim.o
local g = vim.g
------ Appearance ------
-- True colors
o.termguicolors = true
-- Floating window transparency
o.winblend = 10
-- Diff settings
o.diffopt = 'filler,internal,algorithm:histogram,indent-heuristic'
-- Allow switching buffers with unsaved changes
o.hidden = true
-- Show line numbers
o.number = true
-- Blinking cursor
o.guicursor = 'a:blinkon1'
-- Enable global statusline
o.laststatus = 3
-- Hide cmdline
o.cmdheight = 0
------ Misc -------
-- Use suda by default
g.suda_smart_edit = 1
-- Case insensitive search
o.ignorecase = true
o.smartcase = true
-- Set leader
g.mapleader = " "