feat: greek letter keyboard layout + custom brackets in nvim
This commit is contained in:
parent
9571595b6f
commit
0c1f2b4297
39 changed files with 1228 additions and 87 deletions
dotfiles/neovim/lua/my/plugins
33
dotfiles/neovim/lua/my/plugins/idris.lua
Normal file
33
dotfiles/neovim/lua/my/plugins/idris.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
local arpeggio = require("my.plugins.arpeggio")
|
||||
local lspconfig = require("my.plugins.lspconfig")
|
||||
|
||||
local M = {}
|
||||
|
||||
local idrisChords = {
|
||||
sc = "case_split",
|
||||
mc = "make_case",
|
||||
ml = "make_lemma",
|
||||
es = "expr_search",
|
||||
gd = "generate_def",
|
||||
rh = "refine_hole",
|
||||
ac = "add_clause"
|
||||
}
|
||||
|
||||
function M.setup()
|
||||
require("idris2").setup({
|
||||
server = {
|
||||
on_attach = function(client, bufnr)
|
||||
lspconfig.on_attach(client, bufnr)
|
||||
|
||||
for key, value in pairs(idrisChords) do
|
||||
arpeggio.chord("n", "i" .. key,
|
||||
":lua require('idris2.code_action')." ..
|
||||
value .. "()<CR>")
|
||||
end
|
||||
end
|
||||
},
|
||||
client = {hover = {use_split = true}}
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue