let $CONFIG = stdpath('config') let $SCR_PLUGINS = $CONFIG . '/lua/plugins.lua' let $SCR_INIT = $CONFIG . '/init.vim' if has('win32') source $VIMRUNTIME/mswin.vim endif set termguicolors lua require('plugins') filetype plugin indent on set tabstop=2 softtabstop=0 shiftwidth=2 expandtab smarttab autoindent set incsearch ignorecase smartcase hlsearch set wildmode=longest,list,full wildmenu set ruler laststatus=2 showcmd showmode " set list listchars=trail: set fillchars+=vert:\ set wrap breakindent set encoding=utf-8 set textwidth=0 set hidden set number set title set mouse=a set cursorline set updatetime=300 set emoji set noshowcmd set noshowmode syntax on nnoremap ]b :BufferLineCycleNext nnoremap [b :BufferLineCyclePrev nnoremap bp :BufferLinePick nnoremap bcc :BufferLinePickClose nnoremap bcl :BufferLineCloseLeft nnoremap bcr :BufferLineCloseRight augroup packer_user_config autocmd! autocmd BufWritePost $SCR_PLUGINS source | PackerCompile augroup end augroup init_refresh autocmd! autocmd BufWritePost $SCR_INIT source augroup end augroup telescope autocmd! autocmd QuickFixCmdPost qf :Telescope quickfix augroup end if exists('g:fvim_loaded') nnoremap :set guifont=+ nnoremap :set guifont=- FVimCursorSmoothMove v:true FVimCursorSmoothBlink v:true FVimBackgroundComposition 'transparent' FVimBackgroundOpacity 0.90 FVimBackgroundAltOpacity 0.85 FVimCustomTitleBar v:false FVimFontLigature v:true set guifont=JetBrains\ Mono:h12.5 endif nnoremap :NvimTreeToggle let g:scrollview_current_only = 1 nnoremap vv e $SCR_INIT nnoremap vp e $SCR_PLUGINS " Telescope binds nnoremap F Telescope resume nnoremap fr Telescope resume nnoremap ff Telescope find_files nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap fh Telescope help_tags nnoremap fq Telescope quickfix nnoremap fc Telescope command_history nnoremap fs Telescope search_history command CDC cd %:p:h let g:lt_location_list_toggle_map = 'l' let g:lt_quickfix_list_toggle_map = 'q' " machine-specific settings source $CONFIG/local.vim