" auto toggle relativenumber set number! relativenumber! augroup numbertoggle autocmd! autocmd BufEnter,FocusGained,InsertLeave * set relativenumber autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber augroup END " Tab options set tabstop=4 softtabstop=4 set shiftwidth=4 set expandtab set smartindent set signcolumn=yes set noerrorbells set nobackup set nowrap set undodir=~/.vim/undodir set undofile set updatetime=500 let mapleader = " " lua require("adopi") " smartsearch set smartcase ignorecase set incsearch " toggle nu column augroup vimrc-incsearch-highlight autocmd! autocmd CmdlineEnter /,\? :set hlsearch autocmd CmdlineLeave /,\? :set nohlsearch augroup END command! LogPath :lua print(vim.inspect(vim.lsp.get_log_path())) nnoremap ps :lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For >")}) " Find files using Telescope command-line sugar. nnoremap ff Telescope find_files nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap fh Telescope help_tags