kickstart.nvim/lua/custom/configs/settings.lua

50 lines
859 B
Lua
Raw Normal View History

2023-05-23 16:37:59 +02:00
local global = vim.g
local o = vim.o
2023-06-06 16:14:20 +02:00
local opt = vim.opt
2023-05-23 16:37:59 +02:00
-- Copilot
global.copilot_assume_mapped = true
-- Editor options
o.relativenumber = true
o.syntax = 'on'
o.autoindent = true
o.cursorline = true
o.expandtab = true
o.shiftwidth = 2
o.tabstop = 2
o.encoding = 'utf-8'
o.ruler = true
o.title = true
o.hidden = true
o.wildmenu = true
o.showcmd = true
o.showmatch = true
o.inccommand = 'split'
o.splitbelow = true -- open new vertical split bottom
o.splitright = true -- open new horizontal split right
o.smartindent = true
o.wrap = false
-- Highlight search
o.hlsearch = true
o.incsearch = true
-- No vim backup files
o.backup = false
o.swapfile = false
-- Scrolling settings
o.scrolloff = 8
o.colorcolumn = '80'
2023-05-24 23:16:13 +02:00
o.timeoutlen = 500
2023-05-23 16:37:59 +02:00
2023-06-06 16:14:20 +02:00
-- Spell check
opt.spelllang = 'en_us'
2023-06-21 23:59:55 +02:00
opt.spell = true
-- Markdown
global.mkdp_browser = '/usr/bin/firefox'
2023-06-06 16:14:20 +02:00