40 lines
1.1 KiB
Lua
40 lines
1.1 KiB
Lua
vim.g.have_nerd_font = true -- use nerd_font
|
|
|
|
vim.opt.clipboard = "unnamedplus" -- use system keyboard for yank
|
|
|
|
vim.opt.nu = true -- set line numbers
|
|
vim.opt.relativenumber = true -- use relative line numbers
|
|
|
|
-- set tab size to 2 spaces
|
|
vim.opt.tabstop = 2
|
|
vim.opt.softtabstop = 2
|
|
vim.opt.shiftwidth = 2
|
|
vim.opt.expandtab = true
|
|
vim.opt.smartindent = true
|
|
|
|
vim.opt.wrap = false
|
|
|
|
--vim.opt.colorcolumn= 110
|
|
vim.api.nvim_set_option_value("colorcolumn", "110", {})
|
|
|
|
vim.opt.confirm = true -- confirm on quit with unsave changes
|
|
vim.opt.hlsearch = true -- highlight search
|
|
vim.opt.incsearch = true -- incremental search
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
--set shell=/usr/bin/zsh
|
|
vim.opt.shell='/usr/bin/zsh'
|
|
|
|
-- Sets colors to line numbers Above, Current and Below in this order
|
|
function LineNumberColors()
|
|
vim.api.nvim_set_hl(0, "LineNrAbove", { fg = "#51B3EC", bold = false })
|
|
vim.api.nvim_set_hl(0, "LineNr", { fg = white, bold = true })
|
|
vim.api.nvim_set_hl(0, "LineNrBelow", { fg = "#FB508F", bold = false })
|
|
end
|
|
LineNumberColors()
|
|
|
|
-- Set spell checker
|
|
vim.opt.spell = true
|
|
vim.opt.spelllang = { 'en_gb', 'nl' }
|