fix nvim lsp_keymap function call

This commit is contained in:
2022-02-03 00:29:57 -07:00
parent d159f1d56a
commit 7aad7782e2
3 changed files with 6 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
local M = {}
function M.attach(client, bufnr)
function M.custom_attach(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
@@ -28,6 +28,8 @@ function M.attach(client, bufnr)
buf_set_keymap('n', '<leader>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
buf_set_keymap('n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
print("Language Server attached!")
end
return M