nvim-config/lua/settings.lua
2023-01-10 10:56:28 -08:00

42 lines
826 B
Lua

local set = vim.opt
set.clipboard = 'unnamedplus'
set.mouse = 'a'
set.mousemodel = 'extend'
set.shortmess = 'filnxtToOfI' -- intention is to just add I
set.pumheight = 10 -- popup menu height
set.history = 100
set.termguicolors = true -- For colorizer
set.signcolumn = 'yes'
set.backup = false
set.writebackup = false
set.hidden = true
set.hlsearch = true
set.ignorecase = true
set.smartcase = true
set.scrolloff = 6
set.sidescrolloff = 8
set.number = true
set.cursorline = true
set.wrap = false
set.expandtab = false
set.shiftwidth = 4
set.tabstop = 4
-- enable expandtab for python files
vim.api.nvim_create_augroup('setExpandTabPython', { clear = true })
vim.api.nvim_create_autocmd('Filetype', {
group = 'setExpandTabPython',
pattern = { 'python' },
command = 'setlocal expandtab tabstop=4 shiftwidth=4',
})