Remove unused functions

This commit is contained in:
Sonny Bakker 2025-01-03 07:31:59 +01:00
parent a791f70f5f
commit 6f512112d8

View file

@ -3,11 +3,8 @@
--use an on_attach function to only map the following keys --use an on_attach function to only map the following keys
--after the language server attaches to the current buffer --after the language server attaches to the current buffer
local on_attach = function(client, bufnr) local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
-- mappings
local opts = { buffer = bufnr, noremap = true, silent = true } local opts = { buffer = bufnr, noremap = true, silent = true }
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts) vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)