diff --git a/src/.config/nvim/digraphs.vim b/src/.config/nvim/digraphs.vim index 5ba3be6..1af062d 100644 --- a/src/.config/nvim/digraphs.vim +++ b/src/.config/nvim/digraphs.vim @@ -1,27 +1,30 @@ " see :help digraphs " these digraphs are reminiscent of canadian french keyboard layout -call digraph_setlist([ - \["'a", 'à'], - \["'e", 'è'], - \["'u", 'ù'], - \["/e", 'é'], - \["}a", 'ä'], - \["}e", 'ë'], - \["}i", 'ï'], - \["}o", 'ö'], - \["}u", 'ü'], - \["}y", 'ÿ'], - \["]c", 'ç'], - \["[a", 'â'], - \["[e", 'ê'], - \["[i", 'î'], - \["[o", 'ô'], - \["[u", 'û'], - \]) -" misc funny digraphs -call digraph_setlist([ - \["++", '✝'], - \["+-", '†'], - \["m-", '—'], - \]) +if exists("*digraph_setlist") + call digraph_setlist([ + \["'a", 'à'], + \["'e", 'è'], + \["'u", 'ù'], + \["/e", 'é'], + \["}a", 'ä'], + \["}e", 'ë'], + \["}i", 'ï'], + \["}o", 'ö'], + \["}u", 'ü'], + \["}y", 'ÿ'], + \["]c", 'ç'], + \["[a", 'â'], + \["[e", 'ê'], + \["[i", 'î'], + \["[o", 'ô'], + \["[u", 'û'], + \]) + + " misc funny digraphs + call digraph_setlist([ + \["++", '✝'], + \["+-", '†'], + \["m-", '—'], + \]) +end