dotfiles/nvim/.config/nvim/lua/settings/main.lua

40 lines
1.3 KiB
Lua

vim.opt.shell = 'fish'
vim.opt.grepprg = "rg --vimgrep --hidden --glob '!.git'"
vim.opt.background = 'dark'
vim.cmd [[
syntax on
filetype plugin indent on
colorscheme bsolarized2
]]
vim.opt.showmatch = true -- Show matching brackets.
vim.opt.hlsearch = true
vim.opt.ignorecase = true -- Do case insensitive matching
vim.opt.smartcase = true -- Do smart case matching
vim.opt.incsearch = true -- Incremental search
vim.opt.hidden = true -- Hide buffers when they are abandoned
vim.opt.mouse = 'a'
vim.opt.expandtab = true --Use softtabstop spaces instead of tab characters for indentation
vim.opt.shiftwidth = 4 --Indent by 4 spaces when using >>, <<, == etc.
vim.opt.softtabstop = 4 --Indent by 4 spaces when pressing <TAB>
vim.opt.tabstop = 4
vim.opt.autoindent = true --Keep indentation from previous line
vim.opt.smartindent = true --Automatically inserts indentation in some cases
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.wrap = false
vim.opt.cursorline = true
vim.opt.concealcursor = 'nc'
vim.opt.colorcolumn = "80"
vim.opt.showcmd = true -- Show (partial) command in status line.
vim.opt.laststatus = 2
vim.g.mapleader = ","
vim.opt.splitright = true
vim.opt.completeopt = "menu,menuone,preview,noinsert,noselect"