dotfiles/neovim/.config/nvim/lua/warrenhood/settings.lua

44 lines
745 B
Lua
Raw Normal View History

2022-11-07 18:12:08 +00:00
local o = vim.o
local g = vim.g
-- General stuff
o.number = true
o.relativenumber = true
2022-11-10 00:08:11 +00:00
o.autoindent = true
2022-11-07 18:12:08 +00:00
2022-11-10 00:08:11 +00:00
o.tabstop = 4
o.shiftwidth = 4
o.softtabstop = 4
o.smartindent = true
o.expandtab = true
2022-11-07 18:12:08 +00:00
-- Make clipboard work with neovim
o.clipboard = 'unnamedplus'
-- Case insensitive search
o.ignorecase = true
o.smartcase = true
2022-11-07 18:45:09 +00:00
-- Enable mouse
o.mouse = 'a'
2022-11-08 23:03:55 +00:00
-- Enable termguicolors
o.termguicolors = true
-- Use space for leader key
g.mapleader = " "
-- Disable netrw
g.loaded_netrw = 1
g.loaded_netrwPlugin = 1
2022-11-10 19:49:34 +00:00
-- Timeout length (Time in milliseconds to wait for a mapped sequence to complete.)
2022-11-13 02:33:32 +00:00
o.timeoutlen = 500
2022-11-10 19:49:34 +00:00
2022-11-15 01:27:54 +00:00
-- Gui font (Neovide)
if vim.g.neovide then
vim.o.guifont = "Mononoki NF"
2022-11-15 14:50:20 +00:00
vim.g.neovide_transparency = 0.95
2022-11-15 01:27:54 +00:00
end