let $CONFIG = stdpath('config') let $SCR_PLUGINS = $CONFIG . '/lua/plugins.lua' let $SCR_INIT = $CONFIG . '/init.vim' let $PORTAGE = '/etc/portage' let $PORTAGE_MAKE_CONFIG = $PORTAGE . '/make.conf' if has('win32') source $VIMRUNTIME/mswin.vim else nmap "+y vmap "+y nmap "+p 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 set listchars=tab:➫\ ,trail:░ hi EoLSpace ctermbg=238 guibg=#333333 match EoLSpace /\s\+$/ set completeopt=menu,menuone,preview,noinsert 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:neovide') " For some reason the scaling is off? set guifont=JetBrains\ Mono:h10.5 let g:neovide_transparency = 0.90 let g:neovide_refresh_rate = 60 let g:neovide_cursor_vfx_mode = "pixiedust" let g:neovide_confirm_quit = v:true endif if exists('g:fvim_loaded') set guifont=JetBrains\ Mono:h12.5 FVimCursorSmoothMove v:true FVimCursorSmoothBlink v:true FVimBackgroundComposition 'transparent' FVimBackgroundOpacity 0.90 FVimBackgroundAltOpacity 0.85 FVimCustomTitleBar v:false FVimFontLigature v:true nnoremap :set guifont=+ nnoremap :set guifont=- endif nnoremap :NvimTreeToggle let g:scrollview_current_only = 1 nnoremap vv e $SCR_INIT nnoremap vp e $SCR_PLUGINS nnoremap ve e $PORTAGE " Telescope binds nnoremap F Telescope resume nnoremap fr Telescope resume nnoremap ff lua require("telescope.builtin").find_files({hidden=true, no_ignore=true}) 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 function! StripSuda(p) return substitute(a:p, 'suda://', '', '') endfunction function! ChangeCurDir() execute 'cd ' . StripSuda(expand('%:p:h')) endfunction command CDC execute "cd " . StripSuda(expand('%:p:h')) let g:lt_location_list_toggle_map = 'l' let g:lt_quickfix_list_toggle_map = 'L' " unsure if I'm using this " machine-specific settings source $CONFIG/local.vim " coq popups " Disable the default popup accept operation. ino pumvisible() ? (complete_info().selected > 0 ? "\" : "\") : "" ino pumvisible() ? "\" : "\" ino pumvisible() ? "\" : "\" ino pumvisible() ? "\" : "\" " sadly could not figure out how to rebind ctrl-p here? "ino pumvisible() ? (complete_info().selected == -1 ? "\" : "\") : "\" ino pumvisible() ? "\" : "\" ino pumvisible() ? "\" : "\" autocmd QuickFixCmdPost [^l]* cwindow autocmd QuickFixCmdPost l* lwindow nno :echo "Making..." :silent make :echo "done."