;; Key mappings for lsp. (module config.lsp.keymaps {autoload {nvim aniseed.nvim}}) (defn on-attach [bufnr] (let [opts {:noremap true :silent true}] (nvim.buf_set_keymap bufnr :n :gD "lua vim.lsp.buf.declaration()" opts) (nvim.buf_set_keymap bufnr :n :gd "lua vim.lsp.buf.definition()" opts) (nvim.buf_set_keymap bufnr :n :gI "lua vim.lsp.buf.implementation()" opts) (nvim.buf_set_keymap bufnr :n :gr "lua vim.lsp.buf.references()" opts) (nvim.buf_set_keymap bufnr :n :gl "lua vim.diagnostic.open_float()" opts) (nvim.buf_set_keymap bufnr :n :gs "lua vim.lsp.buf.signature_help()" opts)))