nvim: turn off digraphs when set digraph list not supported
This commit is contained in:
parent
5ea357fd2c
commit
f83df2f5a2
@ -1,6 +1,8 @@
|
|||||||
" see :help digraphs
|
" see :help digraphs
|
||||||
" these digraphs are reminiscent of canadian french keyboard layout
|
" these digraphs are reminiscent of canadian french keyboard layout
|
||||||
call digraph_setlist([
|
|
||||||
|
if exists("*digraph_setlist")
|
||||||
|
call digraph_setlist([
|
||||||
\["'a", 'à'],
|
\["'a", 'à'],
|
||||||
\["'e", 'è'],
|
\["'e", 'è'],
|
||||||
\["'u", 'ù'],
|
\["'u", 'ù'],
|
||||||
@ -19,9 +21,10 @@ call digraph_setlist([
|
|||||||
\["[u", 'û'],
|
\["[u", 'û'],
|
||||||
\])
|
\])
|
||||||
|
|
||||||
" misc funny digraphs
|
" misc funny digraphs
|
||||||
call digraph_setlist([
|
call digraph_setlist([
|
||||||
\["++", '✝'],
|
\["++", '✝'],
|
||||||
\["+-", '†'],
|
\["+-", '†'],
|
||||||
\["m-", '—'],
|
\["m-", '—'],
|
||||||
\])
|
\])
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user