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

@@ -8,7 +8,6 @@ call plug#begin()
call plug#end()
source $HOME/.config/nvim/templates/general.vim
source $HOME/.config/nvim/templates/lsp_keymap.vim
set omnifunc=v:lua.vim.lsp.omnifunc
@@ -31,7 +30,9 @@ local lsp_installer = require("nvim-lsp-installer")
-- 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)
-- Register a handler that will be called for all installed servers.
-- Alternatively, you may also register handlers on specific server instances instead (see example below).
lsp_installer.on_server_ready(function(server)