fix lsp_keymap

This commit is contained in:
2022-02-01 12:20:31 -07:00
parent dd6604972f
commit 6028748da8
4 changed files with 39 additions and 36 deletions

View File

@@ -29,7 +29,6 @@ call plug#begin()
call plug#end()
source $HOME/.config/nvim/templates/general.vim
source $HOME/.config/nvim/templates/lsp_keymap.vim
" Theme
colorscheme OceanicNext
@@ -88,7 +87,9 @@ lua <<EOF
})
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = attach_lsp
local lsp_keymap = require('lsp_keymap')
local on_attach = lsp_keymap.attach(client, bufnr)
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
lsp_installer.on_server_ready(function(server)