Remove unused functions
This commit is contained in:
parent
a791f70f5f
commit
6f512112d8
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue