vim.opt.shiftwidth = 2 vim.opt.tabstop = 2 vim.opt.softtabstop = 2 vim.opt.cursorline = true vim.opt.cursorcolumn = true vim.opt.expandtab = true vim.opt.autoindent = true vim.opt.smartindent = true vim.opt.relativenumber = true vim.diagnostic.config({ virtual_text = true, virtual_lines = true, }) local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } vim.g.mapleader = "\\" map('n', '', ":ToggleTerm size=15", opts) map('n', '', ":Neotree filesystem reveal toggle", opts) map('v', '', '>gv', opts) map('v', '', 'ff', 'Telescope find_files', opts) map('n', 'gs', 'Telescope grep_string', opts) vim.cmd [[ set nobackup cnoreabbrev W! w! cnoreabbrev Q! q! cnoreabbrev Qall! qall! cnoreabbrev Wq wq cnoreabbrev Wa wa cnoreabbrev wQ wq cnoreabbrev WQ wq cnoreabbrev W w cnoreabbrev Q q cnoreabbrev Qall qall ]]