nvim: Add telescope digraph search

Added plugin for digraph search through telescope.
When you want to enter a digraph, you can do so through the usual
method, pressing <c-k> and then entering the digraph shortcut (e.g.
`<c-k>OK` for ✓, or `<c-k>n?` for ñ) OR you simply double press
<c-k><c-k> which opens a quick telescope window to select the digraph
you want.
This commit is contained in:
Marty Oehme 2022-03-08 10:01:40 +01:00
parent 11c1383f01
commit 3c59ab0b61
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 8 additions and 0 deletions

View file

@ -157,6 +157,10 @@ map.n.nore['<leader><F8>'] =
map.n.nore['z='] =
[[:lua require 'telescope.builtin'.spell_suggest(require 'telescope.themes'.get_ivy())<cr>]]
-- PLUGIN: betterdigraphs
-- allow normal digraph insertion on c-k, telescope search on c-k c-k
map.i.nore['<C-k><C-k>'] = '<Cmd>lua require "betterdigraphs".digraphs("i")<CR>'
-- Note Searching
-- PLUGIN: Notational-FZF
-- set notational-fzf-vim keys for the NV window itself

View file

@ -165,6 +165,10 @@ require("packer").startup(function()
},
config = function() require('plug._telescope') end
}
use {
'protex/better-digraphs.nvim',
requires = {{"nvim-telescope/telescope.nvim"}}
}
-- snippeting
use {"hrsh7th/vim-vsnip", event = "InsertEnter"} -- snippet engine