diff --git a/lua/crentist/autocmd.lua b/lua/crentist/autocmd.lua index c7f2069..3ce134b 100644 --- a/lua/crentist/autocmd.lua +++ b/lua/crentist/autocmd.lua @@ -4,6 +4,8 @@ local augroup = vim.api.nvim_create_augroup local CrentistGroup = augroup('Crentist', {}) local OnSaveGroup = augroup('CrentistOnSave', {}) +local builtin = require('telescope.builtin') + autocmd('LspAttach', { group = CrentistGroup, callback = function(e) @@ -13,7 +15,7 @@ autocmd('LspAttach', { vim.keymap.set("n", "vws", function() vim.lsp.buf.workspace_symbol() end, opts) vim.keymap.set("n", "vd", function() vim.diagnostic.open_float() end, opts) vim.keymap.set("n", "vca", function() vim.lsp.buf.code_action() end, opts) - vim.keymap.set("n", "vrr", function() vim.lsp.buf.references() end, opts) + vim.keymap.set("n", "vrr", function() builtin.lsp_references() end, opts) vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts) vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts) diff --git a/lua/crentist/remap.lua b/lua/crentist/remap.lua index a143d81..9700893 100644 --- a/lua/crentist/remap.lua +++ b/lua/crentist/remap.lua @@ -35,3 +35,6 @@ vim.keymap.set("n", "x", "source %") vim.keymap.set("n", "x", ":.lua") vim.keymap.set("v", "x", ":lua") +vim.keymap.set("n", "", "cnext") +vim.keymap.set("n", "", "cprev") +