Skip to content

Commit

Permalink
fix(plugins): install dap_repl treesitter parser only if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed May 27, 2023
1 parent 7cbedc8 commit 2c40c0e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lua/config/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,12 @@ return {
config = true,
dependencies = {
"mfussenegger/nvim-dap",
"nvim-treesitter/nvim-treesitter",
},
build = {
":TSInstall dap_repl",
":TSUpdate dap_repl",
},
build = function()
if not require("nvim-treesitter.parsers").has_parser("dap_repl") then
vim.cmd(":TSInstall dap_repl")
end
end,
},
}

0 comments on commit 2c40c0e

Please sign in to comment.