Skip to content

Commit

Permalink
Use builtin keymaps for lsp neovim/neovim@6888607 & neovim/neovim@610…
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Apr 30, 2024
1 parent 1c9f89d commit 9cba2f9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions neovim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -395,19 +395,6 @@ vim.api.nvim_create_autocmd("TermOpen", {
vim.api.nvim_create_autocmd("FocusGained", { command = "checktime", group = general_group })
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
vim.keymap.set({ "n", "i" }, "<C-k>", function()
local cmp = require("cmp")
if cmp.visible() then
cmp.close()
end
vim.lsp.buf.signature_help()
end, { buffer = args.buf, silent = true })
vim.keymap.set(
{ "n", "v" },
"<F3>",
vim.lsp.buf.code_action,
{ buffer = args.buf, silent = true }
)
vim.keymap.set(
"n",
"gi",
Expand All @@ -426,7 +413,6 @@ vim.api.nvim_create_autocmd("LspAttach", {
set_clangd_opening_path(vim.lsp.buf.definition),
{ buffer = args.buf, silent = true }
)
vim.keymap.set("n", "<F2>", vim.lsp.buf.rename, { buffer = args.buf, silent = true })
vim.keymap.set("n", "<leader>f", function()
vim.lsp.buf.format({ async = true })
end, { buffer = args.buf, silent = true })
Expand Down

0 comments on commit 9cba2f9

Please sign in to comment.