{ pkgs ? import { } }: let # vim customRC = '' source ${./vimrc.vim} let $COC_NO_PLUGINS = 1 autocmd BufRead,BufNewFile *.nix setf nix let g:coc_node_path = '${pkgs.nodejs}/bin/node' let g:coc_config_home = '${cocConfigHome}' let g:coc_data_home = (empty($TMPDIR) ? '/tmp' : $TMPDIR) . '/coc-data' let leader = '\\' set updatetime=300 " Color encoding. let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" set termguicolors syntax on " Semantic highlighting. autocmd CursorHold * silent call CocActionAsync('highlight') inoremap coc#pum#visible() ? coc#pum#confirm() : "\" inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" inoremap coc#refresh() nmap [d (coc-diagnostic-prev) nmap ]d (coc-diagnostic-next) nmap gd (coc-definition) nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) nmap gl (coc-openlink) nmap (coc-range-select) xmap (coc-range-select) nnoremap call CocActionAsync('doHover') nnoremap s call CocActionAsync('showSignatureHelp') nmap r (coc-rename) nmap a (coc-codeaction-cursor) xmap a (coc-codeaction-selected) nmap qf (coc-fix-current) command -nargs=0 CocShowOutput CocCommand workspace.showOutput languageserver.nix command -nargs=0 CocSemanticHighlightInfo call CocActionAsync('showSemanticHighlightInfo') " Workaround: https://github.com/EdenEast/nightfox.nvim/issues/236 lua vim.treesitter = { highlighter = { hl_map = {} } } packadd! nightfox.nvim " https://github.com/EdenEast/nightfox.nvim/issues/218 lua <