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