From 6932873ac0c36c501ae49faa0294af40ad01ada1 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 13:39:50 +1100 Subject: [PATCH 01/17] Simplify termguicolors handling --- dot-config/vim/init.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index a8e0cc6..ed3e6bd 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -18,11 +18,10 @@ if !isdirectory($XDG_CACHE_HOME .. '/vim/pack') PackUpdate endif -if has('gui_running') || has('termguicolors') - if $COLORTERM == 'truecolor' - &t_8f = "\[38:2:%lu:%lu:%lum" - &t_8b = "\[48:2:%lu:%lu:%lum" - endif +# If both Vim and the terminal it's running in support true colour, use it. +# Otherwise we just fall back to 256-colour mode, or even the old 16-colour +# mode if necessary! +if has('termguicolors') && $COLORTERM == 'truecolor' set termguicolors endif From 30a4a8995504a73346538678ea864f5dea964d81 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 13:41:00 +1100 Subject: [PATCH 02/17] Skip feature detection for stuff that always works if Vim9 script does --- dot-config/vim/init.vim | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index ed3e6bd..3b7c3e9 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -37,19 +37,16 @@ nnoremap :Files silent! packadd! editorconfig -if exists('+belloff') - set belloff+=ctrlg -endif +set belloff+=ctrlg set completeopt+=menuone set linebreak showbreak=↩ set modelines=5 +set relativenumber set showcmd set wildmode=longest,full -if has('patch-8.2.4325') - set wildoptions+=pum -endif +set wildoptions+=pum # This is a window-local setting but I like 2 by default. :) set conceallevel=2 @@ -59,13 +56,6 @@ set tabstop=2 shiftwidth=2 if exists('+breakindent') set breakindent breakindentopt=sbr endif - -if exists('+relativenumber') - set relativenumber -else - set number -endif - for dir_name in ['backup', 'swap', 'undo'] EnsureDir($XDG_STATE_HOME .. '/vim/' .. dir_name) endfor From 17915a2130826c11f6e53220380d6c76d18e2321 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 13:42:46 +1100 Subject: [PATCH 03/17] Group together completion settings in init.vim --- dot-config/vim/init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index 3b7c3e9..40341c3 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -39,12 +39,12 @@ silent! packadd! editorconfig set belloff+=ctrlg -set completeopt+=menuone - set linebreak showbreak=↩ set modelines=5 set relativenumber set showcmd + +set completeopt+=menuone set wildmode=longest,full set wildoptions+=pum From 23adaca6b2f8a110e6966faff34e9ee8889db03c Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 13:43:26 +1100 Subject: [PATCH 04/17] Make sure +linebreak is available before using it --- dot-config/vim/init.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index 40341c3..fedf4ab 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -39,8 +39,13 @@ silent! packadd! editorconfig set belloff+=ctrlg -set linebreak showbreak=↩ set modelines=5 + +if has('linebreak') + set breakindent breakindentopt=sbr + set linebreak showbreak=↩ +endif + set relativenumber set showcmd @@ -53,9 +58,6 @@ set conceallevel=2 set tabstop=2 shiftwidth=2 -if exists('+breakindent') - set breakindent breakindentopt=sbr -endif for dir_name in ['backup', 'swap', 'undo'] EnsureDir($XDG_STATE_HOME .. '/vim/' .. dir_name) endfor From 66dc71d9b3d594e9bf2f5c951b18a18ba41faa48 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 13:44:02 +1100 Subject: [PATCH 05/17] Comments explaining decisions in my init.vim --- dot-config/vim/init.vim | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index fedf4ab..d0fdc6a 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -25,6 +25,9 @@ if has('termguicolors') && $COLORTERM == 'truecolor' set termguicolors endif +# Colour scheme and corresponding settings. gruvbox8 happens to work on pretty +# much any setup (GUI vim, true-colour terminal, 256 colours, even a 2-colour +# term if necessary!) so we don't need to mess around too much here. set background=dark g:gruvbox_transp_bg = 1 g:gruvbox_italicize_strings = 0 @@ -32,13 +35,22 @@ g:gruvbox_filetype_hi_groups = 1 g:gruvbox_plugin_hi_groups = 1 colorscheme gruvbox8 +# I like being able to drop out of Insert mode without reaching for the Escape +# key in the corner. Some folks use jk instead but I find jj nice and quick. inoremap jj + +# lotabout/skim.vim's fuzzy file finder! It's basically a copy of fzf.vim, but +# it uses skim as the backend instead of fzf. Rust versions of command-line +# tools my beloved nnoremap :Files silent! packadd! editorconfig set belloff+=ctrlg +# I like to explicitly set 'modelines' to the default 5 because some +# distributions change it to zero in the global config, and I want modelines +# to work. set modelines=5 if has('linebreak') @@ -56,14 +68,27 @@ set wildoptions+=pum # This is a window-local setting but I like 2 by default. :) set conceallevel=2 +# I like small indents. This setup supports both vim-sleuth and editorconfig, +# so files with different indent schemes will automatically be handled +# correctly, but this default is what I like personally. Also, I *vastly* +# prefer tabs over spaces for indentation, for the simple reason that if +# someone else needs a bigger indent size than I do, they can just change +# their editor's tabstop setting rather than having to reindent the whole +# file. set tabstop=2 shiftwidth=2 for dir_name in ['backup', 'swap', 'undo'] EnsureDir($XDG_STATE_HOME .. '/vim/' .. dir_name) endfor +# Try to save backup and swap files alongside the original file, but if that's +# not possible (directory not writable, for example), then fall back to the +# appropriate XDG directory instead. set backupdir=.,$XDG_STATE_HOME/vim/backup set directory=.,$XDG_STATE_HOME/vim/swap + +# I like persistent undo! If Vim was built with it, then persist undo files +# for eveything in the XDG state home. :) if exists('+undofile') set undofile set undodir=$XDG_STATE_HOME/vim/undo @@ -85,6 +110,10 @@ g:ale_set_balloons = 1 nmap (ale_previous_wrap) nmap (ale_next_wrap) +# Get the correct filetype icons and matching colours when viewing a directory +# in Fern. As the name implies, this requires Nerd Fonts support, either by +# using a patched font or by having your setup substitute an icon font when +# necessary. g:fern#renderer = 'nerdfont' augroup glyphPalette autocmd! @@ -97,9 +126,17 @@ g:mucomplete#can_complete = { } } +# Configure a statusline and tabline using vim-crystalline. I tried a bunch of +# different statusline plugins and this one, which is basically just a utility +# library for writing your *own* statusline functions, worked the best for my +# purposes. Very quick, naturally very configurable, I could tell the modified +# buffer + to appear in red, all that good stuff. Yay! import "./statusline.vim" statusline.Init() +# Set up LSP client support. My lsp.vim module both tells yegappan/lsp which +# LSP servers it can connect to and provides a way to install those servers if +# necessary. import "./lsp.vim" lsp.Configure() From e82917918fb5d7437a60d6a6832c3583235a3d80 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 13:44:52 +1100 Subject: [PATCH 06/17] Always load Editorconfig the same way :) --- dot-config/vim/init.vim | 4 +++- dot-config/vim/plugins.vim | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index d0fdc6a..d400502 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -44,7 +44,9 @@ inoremap jj # tools my beloved nnoremap :Files -silent! packadd! editorconfig +# We will always have Editorconfig available as an optional package, either +# because it was bundled with Vim or because Minpac installed it that way. +packadd! editorconfig set belloff+=ctrlg diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index 25e8f2d..521f94e 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -16,8 +16,11 @@ minpac#add('prabirshrestha/async.vim') minpac#add('lifepillar/vim-gruvbox8') +# If this Vim doesn't already provide Editorconfig as part of its runtime, +# install it ourselves, using exactly the same package name and type (opt, so +# that it can be loaded with :packadd). if !isdirectory($VIMRUNTIME .. '/pack/dist/opt/editorconfig') - minpac#add('editorconfig/editorconfig-vim') + minpac#add('editorconfig/editorconfig-vim', {name: 'editorconfig', type: 'opt'}) endif minpac#add('direnv/direnv.vim') From e03f91a06aac4e364899791d5a36c1ca782f87ec Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 13:51:13 +1100 Subject: [PATCH 07/17] Uninstall a bunch of plugins I'm not actively using --- dot-config/vim/init.vim | 8 -------- dot-config/vim/plugins.vim | 17 ----------------- 2 files changed, 25 deletions(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index d400502..4126a02 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -96,16 +96,8 @@ if exists('+undofile') set undodir=$XDG_STATE_HOME/vim/undo endif -# This setup installs both tpope/vim-sensible and tpope/vim-sleuth, so we -# don't also need vim-polyglot to provide that same functionality. -g:polyglot_disabled = ['sensible', 'autoindent'] - g:csv_no_conceal = 1 -g:vim_svelte_plugin_use_typescript = 1 - -g:LatexBox_Folding = 1 - g:markdown_folding = 1 g:ale_set_balloons = 1 diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index 521f94e..ccb04eb 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -26,15 +26,12 @@ endif minpac#add('direnv/direnv.vim') minpac#add('godlygeek/tabular') minpac#add('jamessan/vim-gnupg') -minpac#add('junegunn/vim-easy-align') minpac#add('lifepillar/vim-mucomplete') minpac#add('lotabout/skim') minpac#add('lotabout/skim.vim') minpac#add('mhinz/vim-signify') -minpac#add('sjl/vitality.vim') minpac#add('tpope/vim-apathy') minpac#add('tpope/vim-commentary') -minpac#add('tpope/vim-dadbod') minpac#add('tpope/vim-endwise') minpac#add('tpope/vim-eunuch') minpac#add('tpope/vim-fugitive') @@ -63,15 +60,6 @@ minpac#add('lambdalisue/fern-git-status.vim') minpac#add('lambdalisue/fern-ssh') minpac#add('alvan/vim-closetag') -minpac#add('LaTeX-Box-Team/LaTeX-Box') -minpac#add('vhda/verilog_systemverilog.vim') -minpac#add('sheerun/vim-polyglot') - -minpac#add('eipipuz/factor.vim') - -minpac#add('ehamberg/vim-cute-python') -minpac#add('Glench/Vim-Jinja2-Syntax') -minpac#add('tweekmonster/braceless.vim') minpac#add('vito-c/jq.vim') minpac#add('NoahTheDuke/vim-just') @@ -80,17 +68,12 @@ minpac#add('fladson/vim-kitty') minpac#add('fpob/nette.vim') -minpac#add('leafOfTree/vim-svelte-plugin') - if executable('task') minpac#add('farseer90718/vim-taskwarrior') endif minpac#add('pedrohdz/vim-yaml-folds') -minpac#add('alx741/yesod.vim') -minpac#add('pbrisbin/vim-syntax-shakespeare') - if has('macunix') minpac#add('rizzatti/dash.vim') # We rename this plugin to make sure it loads AFTER vim-polyglot, From 2e874407f73c465d15a3f3212a60ef9e3369ce2a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:11:02 +1100 Subject: [PATCH 08/17] Load vim-sensible first by putting it at the end of the alphabet (lol?) --- dot-config/vim/plugins.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index ccb04eb..855c2f7 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -11,7 +11,14 @@ packadd minpac minpac#init({dir: $XDG_CACHE_HOME .. '/vim'}) minpac#add('k-takata/minpac', {type: 'opt'}) -minpac#add('tpope/vim-sensible') + +# tpope/vim-sensible is a collection of default Vim settings that "everyone +# can agree on", and is an excellent starting point for anyone's Vim config. +# We'd like it to load first, before any other plugins. However somewhat +# confusingly, Vim's native 'packages' feature adds plugins from pack/*/start +# to 'runtimepath' in REVERSE alphabetical order, so we have to put +# vim-sensible at the end of the alphabet like so to get it loaded first. +minpac#add('tpope/vim-sensible', {name: 'zz-vim-sensible'}) minpac#add('prabirshrestha/async.vim') minpac#add('lifepillar/vim-gruvbox8') From 8d300606c9f19b2e494762868f20f6d6f4bc70a7 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:11:27 +1100 Subject: [PATCH 09/17] Skip fiddling with vim-marked's order, since vim-polyglot is gone --- dot-config/vim/plugins.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index 855c2f7..ac1e4b6 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -83,7 +83,5 @@ minpac#add('pedrohdz/vim-yaml-folds') if has('macunix') minpac#add('rizzatti/dash.vim') - # We rename this plugin to make sure it loads AFTER vim-polyglot, - # since it won't work properly if it's loaded first. - minpac#add('itspriddle/vim-marked', {name: 'zzvim-marked'}) + minpac#add('itspriddle/vim-marked') endif From 088e017bb8e0e6eeff0f2200b4070ff55fd1c587 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:11:46 +1100 Subject: [PATCH 10/17] Update GitHub username for vim-taskwarrior --- dot-config/vim/plugins.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index ac1e4b6..725af8b 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -76,7 +76,7 @@ minpac#add('fladson/vim-kitty') minpac#add('fpob/nette.vim') if executable('task') - minpac#add('farseer90718/vim-taskwarrior') + minpac#add('blindFS/vim-taskwarrior') endif minpac#add('pedrohdz/vim-yaml-folds') From 6d24555ec5652f289847ffdcc1e2819311f35084 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:17:22 +1100 Subject: [PATCH 11/17] Explain Minpac setup in plugins.vim --- dot-config/vim/plugins.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index 725af8b..05f610e 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -1,5 +1,9 @@ vim9script silent! packadd minpac + +# Automatically bootstrap Minpac if necessary. Once it's installed it knows +# how to manage and update itself, but Vim doesn't know how to install it +# without our help. ;) if !exists('g:loaded_minpac') silent !git clone https://github.com/k-takata/minpac.git $XDG_CACHE_HOME/vim/pack/minpac/opt/minpac augroup minpac @@ -9,6 +13,9 @@ if !exists('g:loaded_minpac') endif packadd minpac +# Minpac is told to install into the XDG cache home because if we do blow away +# that directory, it can and will simply reinstall everything I've configured +# it to install the next time Vim is launched. minpac#init({dir: $XDG_CACHE_HOME .. '/vim'}) minpac#add('k-takata/minpac', {type: 'opt'}) From b0adb689885191d3f8917502e3d09a6cd1a11761 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:18:02 +1100 Subject: [PATCH 12/17] Explain project support in plugins.vim --- dot-config/vim/plugins.vim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index 05f610e..e0d9c6b 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -30,14 +30,18 @@ minpac#add('prabirshrestha/async.vim') minpac#add('lifepillar/vim-gruvbox8') -# If this Vim doesn't already provide Editorconfig as part of its runtime, -# install it ourselves, using exactly the same package name and type (opt, so -# that it can be loaded with :packadd). +# Project handling. Direnv is a tool for setting project-local environment +# variables as you cd around, and Editorconfig is a generic format telling +# text editors what your preferred indent size and stuff are for the given +# project. Both are very helpful to have integrated with Vim. +minpac#add('direnv/direnv.vim') if !isdirectory($VIMRUNTIME .. '/pack/dist/opt/editorconfig') + # If this Vim doesn't already provide Editorconfig as part of its runtime, + # install it ourselves, using exactly the same package name and type (opt, so + # that it can be loaded with :packadd). minpac#add('editorconfig/editorconfig-vim', {name: 'editorconfig', type: 'opt'}) endif -minpac#add('direnv/direnv.vim') minpac#add('godlygeek/tabular') minpac#add('jamessan/vim-gnupg') minpac#add('lifepillar/vim-mucomplete') From ca333f3abd266e6608b9b2368d6d4eab0fcdc777 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:19:41 +1100 Subject: [PATCH 13/17] Drop async.vim since nothing is using it --- dot-config/vim/plugins.vim | 1 - 1 file changed, 1 deletion(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index e0d9c6b..e4fa84d 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -26,7 +26,6 @@ minpac#add('k-takata/minpac', {type: 'opt'}) # to 'runtimepath' in REVERSE alphabetical order, so we have to put # vim-sensible at the end of the alphabet like so to get it loaded first. minpac#add('tpope/vim-sensible', {name: 'zz-vim-sensible'}) -minpac#add('prabirshrestha/async.vim') minpac#add('lifepillar/vim-gruvbox8') From 08f8c9b77bf2406be6642e57d0d88c964578ad34 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:20:32 +1100 Subject: [PATCH 14/17] Group + explain Git integration plugins --- dot-config/vim/plugins.vim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index e4fa84d..5897023 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -27,6 +27,15 @@ minpac#add('k-takata/minpac', {type: 'opt'}) # vim-sensible at the end of the alphabet like so to get it loaded first. minpac#add('tpope/vim-sensible', {name: 'zz-vim-sensible'}) +# Git support. Fugitive is a pretty famous wrapper that adds :Git commands +# when you're in a repo, and Rhubarb is a GitHub-specific support addon for +# it. (I don't personally use GitHub much, but work does, so whatever.) +# Signify marks changed lines in the current buffer with symbols in the left +# margin, which I finde very helpful. +minpac#add('tpope/vim-fugitive') +minpac#add('tpope/vim-rhubarb') +minpac#add('mhinz/vim-signify') + minpac#add('lifepillar/vim-gruvbox8') # Project handling. Direnv is a tool for setting project-local environment @@ -46,14 +55,11 @@ minpac#add('jamessan/vim-gnupg') minpac#add('lifepillar/vim-mucomplete') minpac#add('lotabout/skim') minpac#add('lotabout/skim.vim') -minpac#add('mhinz/vim-signify') minpac#add('tpope/vim-apathy') minpac#add('tpope/vim-commentary') minpac#add('tpope/vim-endwise') minpac#add('tpope/vim-eunuch') -minpac#add('tpope/vim-fugitive') minpac#add('tpope/vim-repeat') -minpac#add('tpope/vim-rhubarb') minpac#add('tpope/vim-sleuth') minpac#add('tpope/vim-surround') minpac#add('tpope/vim-unimpaired') From 93eb7fbdc6504cd4820a29fbf45b29a300749413 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:36:41 +1100 Subject: [PATCH 15/17] Group + explain Skim integration plugins --- dot-config/vim/plugins.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index 5897023..e217e04 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -50,11 +50,16 @@ if !isdirectory($VIMRUNTIME .. '/pack/dist/opt/editorconfig') minpac#add('editorconfig/editorconfig-vim', {name: 'editorconfig', type: 'opt'}) endif +# skim is a standalone fuzzy finder, kinda like fzf or fzy or selecta, but +# written in Rust. These two plugins teach Vim to integrate with it, so you +# can use skim's high performance fuzzy finding to locate stuff (files, +# buffers, colorschemes) inside Vim. Nice! +minpac#add('lotabout/skim') +minpac#add('lotabout/skim.vim') + minpac#add('godlygeek/tabular') minpac#add('jamessan/vim-gnupg') minpac#add('lifepillar/vim-mucomplete') -minpac#add('lotabout/skim') -minpac#add('lotabout/skim.vim') minpac#add('tpope/vim-apathy') minpac#add('tpope/vim-commentary') minpac#add('tpope/vim-endwise') From b2da1aa506424c41144a83bd83793bec3489abc9 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:43:19 +1100 Subject: [PATCH 16/17] Set default GPG recipient to myself (good for password-store) --- dot-config/vim/init.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index 4126a02..a344077 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -98,6 +98,10 @@ endif g:csv_no_conceal = 1 +g:GPGDefaultRecipients = [ + 'Danielle McLean ', +] + g:markdown_folding = 1 g:ale_set_balloons = 1 From e35447f53f2d5970ac073b81f76cd2e7360dbd5a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 4 Nov 2023 14:47:34 +1100 Subject: [PATCH 17/17] Drop unnecessary MUcomplete customisation --- dot-config/vim/init.vim | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index a344077..e625c12 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -118,12 +118,6 @@ augroup glyphPalette autocmd FileType fern g:glyph_palette#apply() augroup END -g:mucomplete#can_complete = { - default: { - omni: (t) => strlen(&l:omnifunc) > 0 && t =~# '\m\k\%(\k\|\.\)$' - } -} - # Configure a statusline and tabline using vim-crystalline. I tried a bunch of # different statusline plugins and this one, which is basically just a utility # library for writing your *own* statusline functions, worked the best for my