FEAT: Added virtual text to Debug Adapter Protocol and added hover
autocommand FIX: Debuggin keymaps
This commit is contained in:
@@ -25,3 +25,13 @@ vim.g.netrw_browse_split = 0
|
||||
vim.g.netrw_winsize = 25
|
||||
|
||||
vim.opt.completeopt = {'menu', 'menuone', 'noselect' }
|
||||
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
callback = function (args)
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
if client.server_capabilities.hoverProvider then
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {buffer = args.buf})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user