set nocompatible so ~/.config/nvim/plugins.vim so ~/.config/nvim/word_processing.vim " --Plugin Configurations let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#whitespace#enabled = 0 let g:airline_powerline_fonts = 1 let g:airline_theme='base16_bespin' " let g:formatdef_gunk = '"gunk format -"' " let g:formatters_gunk = ['gunk'] let g:go_gopls_enabled = 1 let g:pandoc#command#autoexec_command = "Pandoc! pdf --citeproc" let g:pandoc#formatting#mode = 'ha' let g:pandoc#formatting#textwidth = 100 let g:pandoc#spell#enabled = 0 let g:svelte_indent_script = 0 let g:svelte_indent_style = 0 "--My ColorScheme set background=dark set termguicolors let g:srcery_italic=1 let g:srcery_bold=1 let g:srcery_white='#FCE8C3' let g:srcery_bright_white='#FCF5E8' colorscheme srcery " General set noerrorbells set title set number set relativenumber set signcolumn=number set ruler set wrap set scrolloff=3 set clipboard+=unnamedplus set colorcolumn=81 set guicursor+=a:blinkon0 set nofoldenable set updatetime=300 set shortmess+=c set mouse=ar " Indentation and highlighting filetype on filetype plugin on filetype plugin indent on filetype indent on set shiftwidth=4 set tabstop=4 set softtabstop=0 " Searchstuff set ignorecase set smartcase set incsearch set hlsearch " Purple comments and transparent background hi Comment guifg=#b799bd ctermfg=102 hi Normal guibg=#NONE ctermbg=NONE set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} lua < noremap // :nohls noremap ; : command WQ wq command Wq q command W w command Q w nnoremap :bprev nnoremap :bnext inoremap :bprev inoremap :bnext nnoremap gf :e noremap noremap inoremap :call CocActionAsync('showSignatureHelp') noremap :call CocAction('diagnosticNext') noremap :call CocAction('diagnosticPrevious') nnoremap K :call show_documentation() let mapleader="," nnoremap w :e nnoremap E :Files nnoremap b :Buffers nnoremap d :bp:bd # nnoremap ff Telescope find_files nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap fh Telescope help_tags nmap a (coc-codeaction-selected) noremap y :VCopy vnoremap y :VCopyVisual noremap pd :Pandoc pdf --citeproc -Vmainfont="TeX Gyre Schola" \ -Vmathfont="TeX Gyre Schola Math" -Vdocumentclass="scrartcl" \ --resource-path=images --highlight-style ~/.config/pandoc/code.theme \ -Fpandoc-crossref -Fpandoc-include -Fpantable nnoremap g :GoRun nnoremap f :PrettierAsync nnoremap so :so ~/.config/nvim/init.vim nnoremap e :CocCommand explorer --toggle nnoremap lg :CocCommand workspace.showOutput coc-gunk noremap dap } p noremap vap :m '<-2gv=gv " COC nmap gd (coc-definition) nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) nmap rn (coc-rename) nnoremap o :CocList outline let g:copilot_filetypes = { \ '*': v:false, \ 'gunk': v:true, \ } """""""""""""""""""""""""""""""""""""""" " " " FILE TYPES " " " """""""""""""""""""""""""""""""""""""""" autocmd FileType html,css,scss \ setlocal ts=4 sts=4 sw=4 expandtab autocmd FileType javascript,typescript,typescriptreact,svelte \ setlocal ts=2 sts=2 sw=2 expandtab autocmd BufNewFile,BufRead *.markdown,*.text \ setlocal ts=2 sts=2 sw=2 \ set textwidth=100 colorcolumn=101 autocmd FileType sql \setlocal ts=2 sts=2 sw=2 expandtab autocmd BufNewFile,BufRead *.md.tmpl \ setlocal filetype=markdown autocmd BufNewFile,BufRead .*config,*.config,config \ setlocal filetype=gitconfig autocmd BufNewFile,BufRead *.bolt \ setlocal filetype=typescript autocmd BufNewFile,BufRead *.cql \ setlocal filetype=cql autocmd BufNewFile,BufRead *.gradle,*.groovy \ setlocal filetype=groovy autocmd BufNewFile,BufRead *.osgjs,*.osgjs.gz \ setlocal filetype=json autocmd BufNewFile,BufRead *.postcss \ setlocal filetype=css autocmd BufNewFile,BufRead *.go.tpl,*.peg,*.qtpl \ setlocal syntax=go autocmd BufNewFile,BufRead *.gunk \ setlocal filetype=gunk syntax=go autocmd BufNewFile,BufRead *.gltf \ setlocal filetype=gltf syntax=json autocmd BufNewFile,BufRead *.frag \ setlocal filetype=glsl syntax=glsl " autocmd BufWrite *.gunk " \ :Autoformat let g:coc_snippet_next = '' let g:coc_snippetnext = '' autocmd CursorHold * silent call CocActionAsync('highlight') inoremap \ pumvisible() ? coc#_select_confirm() : \ coc#expandableOrJumpable() ? \ "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" : \ check_back_space() ? "\" : \ coc#refresh() function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction inoremap coc#refresh() inoremap pumvisible() ? coc#_select_confirm() \: "\u\\=coc#on_enter()\" function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) execute 'h '.expand('') elseif (coc#rpc#ready()) call CocActionAsync('doHover') else execute '!' . &keywordprg . " " . expand('') endif endfunction function! s:doHover() if coc#rpc#ready() let diagnostics = CocAction('diagnosticList') if empty(diagnostics) call CocActionAsync('doHover') return endif let file = expand('%:p') let lnum = line('.') let cnum = col('.') for v in diagnostics if v['file'] != file \ || lnum != v['lnum'] \ || cnum < v['location']['range']['start']['character'] \ || cnum > v['location']['range']['end']['character'] call CocActionAsync('doHover') return endif endfor endif endfunction augroup mygroup autocmd! " Setup formatexpr specified filetype(s). autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') " Update signature help on jump placeholder. autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') augroup end noremap py :! clear; python %