nvim: add variable values DAP plugin
This commit is contained in:
parent
9776ecd7d2
commit
e996dfedf0
2 changed files with 31 additions and 15 deletions
|
@ -209,8 +209,10 @@ M.lspconfig = function()
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
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
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Add table
Reference in a new issue