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 certain file types files vim.api.nvim_create_augroup('setExpandTabPython', { clear = true }) vim.api.nvim_create_autocmd('Filetype', { group = 'setExpandTabPython', pattern = { 'python', 'sent', 'toml' }, command = 'setlocal expandtab tabstop=4 shiftwidth=4', }) -- use hcl for terraform files vim.api.nvim_create_augroup('setFiletypeTerraform', { clear = true }) vim.api.nvim_create_autocmd('Filetype', { group = 'setExpandTabPython', pattern = 'terraform', command = "lua vim.api.nvim_buf_set_option(0, 'filetype', 'hcl')", })