2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-15 12:12:58 +00:00
steffen-dotfiles/nvim/lua/options.lua

57 lines
1.3 KiB
Lua
Raw Normal View History

local set = vim.opt
local cmd = vim.cmd
local g = vim.g
-- deactivate some unneeded language providers
g.loaded_python_provider = 0
g.loaded_perl_provider = 0
-- general options
set.breakindent = true
set.cmdheight = 2
set.completeopt= { 'menu', 'menuone', 'noselect' }
set.cpoptions:append('$')
set.cursorline = true
set.foldexpr = 'nvim_treesitter#foldexpr()'
set.foldmethod = 'expr'
set.gdefault = true
set.grepprg = 'rg'
set.hidden = true
set.ignorecase = true
set.infercase = true
2022-08-18 10:55:22 +00:00
set.laststatus = 3
set.lazyredraw = true
set.list = true
set.listchars = 'extends:»,precedes:«,tab:▸ ,trail:·'
set.foldenable = false
set.showmode = false
set.swapfile = false
set.wrap = false
set.writebackup = false
set.relativenumber = true
set.scrolljump = 5
set.scrolloff = 3
set.shiftround = true
set.shiftwidth = 2
set.shortmess:append('c')
set.showbreak = '\\\\\\\\'
set.showmatch = true
set.sidescroll = 10
set.sidescrolloff = 5
set.smartcase = true
2022-08-18 10:55:22 +00:00
set.splitright = true
set.splitbelow = true
set.updatetime = 300
set.virtualedit = 'all'
set.visualbell = true
set.wildmode = { 'list:longest', 'list:full' }
-- colorscheme and default language
set.background = 'dark'
set.termguicolors = true
2021-12-05 18:06:21 +00:00
2023-08-29 18:32:13 +00:00
-- g.gruvbox_baby_background_color = 'dark'
g.gruvbox_baby_telescope_theme = 1
cmd 'colorscheme gruvbox-baby'
cmd 'language en_US.UTF-8'