nvim: add variable values DAP plugin

This commit is contained in:
PowerUser64 2021-09-27 19:21:36 -07:00
parent 9776ecd7d2
commit e996dfedf0
2 changed files with 31 additions and 15 deletions

View file

@ -211,6 +211,8 @@ M.lspconfig = function()
local lsp_servers = { local lsp_servers = {
clangd = 'clangd', clangd = 'clangd',
html = 'vscode-html-language-server', html = 'vscode-html-language-server',
sumneko_lua = 'lua-language-server',
bashls = 'bash-language-server',
} }
for lsp, exe in pairs(lsp_servers) do for lsp, exe in pairs(lsp_servers) do
if (vim.fn.executable(exe) == 1) then if (vim.fn.executable(exe) == 1) then

View file

@ -16,7 +16,7 @@ return require('packer').startup(function()
} }
-- Colors -- Colors
use { -- syntax highlighting use { -- treesitter: syntax highlighting and more
'nvim-treesitter/nvim-treesitter', run = ':TSUpdate', 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate',
config = function() config = function()
require("blake.lsp").treesitter() require("blake.lsp").treesitter()
@ -46,18 +46,6 @@ return require('packer').startup(function()
-- end, 0) -- end, 0)
-- end, -- 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 use { -- Default LSP configs
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
after = "nvim-lspinstall", after = "nvim-lspinstall",
@ -142,6 +130,32 @@ return require('packer').startup(function()
ft = { 'md', 'markdown', } 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 -- Conveniences
use { -- Undo tree use { -- Undo tree
'mbbill/undotree', 'mbbill/undotree',