nvim-config/lua/settings.lua
2024-03-22 10:19:39 -07:00

45 lines
893 B
Lua

vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
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 and sent files
vim.api.nvim_create_augroup('setExpandTabPython', { clear = true })
vim.api.nvim_create_autocmd('Filetype', {
group = 'setExpandTabPython',
pattern = { 'python', 'sent' },
command = 'setlocal expandtab tabstop=4 shiftwidth=4',
})