diff --git a/symlinks/config/nvim/lua/init/plugins.lua b/symlinks/config/nvim/lua/init/plugins.lua index 1215302..0a1341e 100644 --- a/symlinks/config/nvim/lua/init/plugins.lua +++ b/symlinks/config/nvim/lua/init/plugins.lua @@ -29,6 +29,7 @@ return require('packer').startup { use 'dense-analysis/ale' use 'tpope/vim-projectionist' use 'ervandew/supertab' + use 'mfussenegger/nvim-dap' -- Vim improvements use 'wellle/targets.vim' @@ -55,7 +56,8 @@ return require('packer').startup { -- Treesitter 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 -- use 'tjdevries/nlua.nvim' diff --git a/symlinks/config/nvim/lua/plugin/dap.lua b/symlinks/config/nvim/lua/plugin/dap.lua new file mode 100644 index 0000000..043037d --- /dev/null +++ b/symlinks/config/nvim/lua/plugin/dap.lua @@ -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 diff --git a/symlinks/config/nvim/lua/plugin/treesitter.lua b/symlinks/config/nvim/lua/plugin/treesitter.lua index 64c0c37..dde5d7e 100644 --- a/symlinks/config/nvim/lua/plugin/treesitter.lua +++ b/symlinks/config/nvim/lua/plugin/treesitter.lua @@ -1,6 +1,12 @@ require'nvim-treesitter.configs'.setup { ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages 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 + } }