force keymap to be loaded when on_attach is not called it may releated to #130

neovim_0.6
ray-x 2 years ago
parent 92f56ffe4b
commit ff57a1f916

@ -33,7 +33,7 @@ _NgConfigValues = {
transparency = 50, -- 0 ~ 100 blur the main window, 100: fully transparent, 0: opaque, set to nil to disable it
lsp_signature_help = true, -- if you would like to hook ray-x/lsp_signature plugin in navigator
-- setup here. if it is nil, navigator will not init signature help
signature_help_cfg = {debug=false}, -- if you would like to init ray-x/lsp_signature plugin in navigator, pass in signature help
signature_help_cfg = { debug = false }, -- if you would like to init ray-x/lsp_signature plugin in navigator, pass in signature help
lsp = {
code_action = {
enable = true,
@ -224,7 +224,7 @@ M.setup = function(cfg)
-- print("loading navigator")
require('navigator.lazyloader').init()
require('navigator.lspclient.clients').setup(_NgConfigValues)
-- require("navigator.lspclient.mapping").setup(_NgConfigValues)
require('navigator.lspclient.mapping').setup(_NgConfigValues)
require('navigator.reference')
require('navigator.definition')
require('navigator.hierarchy')

@ -172,7 +172,7 @@ local function set_mapping(user_opts)
elseif fmtkey then
del_keymap('n', fmtkey)
end
if user_opts.cap.document_range_formatting then
if user_opts.cap and user_opts.cap.document_range_formatting then
log('formatting enabled', user_opts.cap)
end

Loading…
Cancel
Save