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 22:44:29 +00:00
|
|
|
|
2022-11-08 23:03:55 +00:00
|
|
|
-- Enable termguicolors
|
|
|
|
o.termguicolors = true
|
|
|
|
|
2022-11-08 22:44:29 +00:00
|
|
|
-- Use space for leader key
|
|
|
|
g.mapleader = " "
|
2022-11-08 23:42:19 +00:00
|
|
|
|
|
|
|
-- 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"
|
|
|
|
vim.g.neovide_transparency = 0.85
|
|
|
|
end
|