Add Nvim DAP
parent
8208d43753
commit
c2fc6559c4
|
@ -29,6 +29,7 @@ return require('packer').startup {
|
||||||
use 'dense-analysis/ale'
|
use 'dense-analysis/ale'
|
||||||
use 'tpope/vim-projectionist'
|
use 'tpope/vim-projectionist'
|
||||||
use 'ervandew/supertab'
|
use 'ervandew/supertab'
|
||||||
|
use 'mfussenegger/nvim-dap'
|
||||||
|
|
||||||
-- Vim improvements
|
-- Vim improvements
|
||||||
use 'wellle/targets.vim'
|
use 'wellle/targets.vim'
|
||||||
|
@ -55,7 +56,8 @@ return require('packer').startup {
|
||||||
|
|
||||||
-- Treesitter
|
-- Treesitter
|
||||||
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
|
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
|
||||||
-- use { 'npxbr/gruvbox.nvim', requires = { 'rktjmp/lush.nvim' } }
|
use 'nvim-treesitter/playground'
|
||||||
|
use 'theHamsta/nvim-dap-virtual-text'
|
||||||
|
|
||||||
-- LSP
|
-- LSP
|
||||||
-- use 'tjdevries/nlua.nvim'
|
-- use 'tjdevries/nlua.nvim'
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
-- - NeoVim DAP (Debug Adapter Protocol) config -
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
local dap = require('dap')
|
||||||
|
|
||||||
|
dap.adapters.python = {
|
||||||
|
type = 'executable';
|
||||||
|
command = 'python';
|
||||||
|
args = { '-m', 'debugpy.adapter' };
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Nvim DAP Treesitter integration
|
||||||
|
vim.g.dap_virtual_text = true
|
|
@ -1,6 +1,12 @@
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = false, -- false will disable the whole extension
|
enable = true, -- false will disable the whole extension
|
||||||
},
|
},
|
||||||
|
playground = {
|
||||||
|
enable = true,
|
||||||
|
disable = {},
|
||||||
|
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
|
||||||
|
persist_queries = false -- Whether the query persists across vim sessions
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue