fix nvim lsp_keymap function call
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user