nvim: add variable values DAP plugin
This commit is contained in:
parent
9776ecd7d2
commit
e996dfedf0
2 changed files with 31 additions and 15 deletions
|
@ -211,6 +211,8 @@ M.lspconfig = function()
|
|||
local lsp_servers = {
|
||||
clangd = 'clangd',
|
||||
html = 'vscode-html-language-server',
|
||||
sumneko_lua = 'lua-language-server',
|
||||
bashls = 'bash-language-server',
|
||||
}
|
||||
for lsp, exe in pairs(lsp_servers) do
|
||||
if (vim.fn.executable(exe) == 1) then
|
||||
|
|
|
@ -16,7 +16,7 @@ return require('packer').startup(function()
|
|||
}
|
||||
|
||||
-- Colors
|
||||
use { -- syntax highlighting
|
||||
use { -- treesitter: syntax highlighting and more
|
||||
'nvim-treesitter/nvim-treesitter', run = ':TSUpdate',
|
||||
config = function()
|
||||
require("blake.lsp").treesitter()
|
||||
|
@ -46,18 +46,6 @@ return require('packer').startup(function()
|
|||
-- end, 0)
|
||||
-- end,
|
||||
}
|
||||
use { -- DAP: Debug Adapter Protocol
|
||||
"mfussenegger/nvim-dap",
|
||||
config = function()
|
||||
require("blake.lsp").dap()
|
||||
end
|
||||
}
|
||||
use { -- DAP adapter installer
|
||||
"Pocco81/DAPInstall.nvim",
|
||||
config = function()
|
||||
require("blake.lsp").dapinstall()
|
||||
end
|
||||
}
|
||||
use { -- Default LSP configs
|
||||
"neovim/nvim-lspconfig",
|
||||
after = "nvim-lspinstall",
|
||||
|
@ -142,6 +130,32 @@ return require('packer').startup(function()
|
|||
ft = { 'md', 'markdown', }
|
||||
}
|
||||
|
||||
---- DAP (Debug Adapter Protocol)
|
||||
use { -- nvim-dap: DAP support
|
||||
"mfussenegger/nvim-dap",
|
||||
config = function()
|
||||
require("blake.lsp").dap()
|
||||
end
|
||||
}
|
||||
use { -- DAP adapter installer
|
||||
"Pocco81/DAPInstall.nvim",
|
||||
config = function()
|
||||
require("blake.lsp").dapinstall()
|
||||
end
|
||||
}
|
||||
use { -- Print Variable names while debugging
|
||||
'theHamsta/nvim-dap-virtual-text',
|
||||
config = function()
|
||||
require'nvim-dap-virtual-text'
|
||||
-- virtual text deactivated (default)
|
||||
vim.g.dap_virtual_text = true
|
||||
-- show virtual text for current frame (recommended)
|
||||
vim.g.dap_virtual_text = true
|
||||
-- request variable values for all frames (experimental)
|
||||
vim.g.dap_virtual_text = 'all frames'
|
||||
end
|
||||
}
|
||||
|
||||
-- Conveniences
|
||||
use { -- Undo tree
|
||||
'mbbill/undotree',
|
||||
|
|
Loading…
Add table
Reference in a new issue