plugins and dap dap_config

This commit is contained in:
Markus Dieckmann 2022-09-18 15:43:22 +02:00
parent df51df316b
commit 2f532d405d
2 changed files with 108 additions and 96 deletions

View File

@ -1,8 +1,27 @@
vim.fn.sign_define('DapBreakpoint', {text='🟥', texthl='', linehl='', numhl=''})
vim.fn.sign_define('DapStopped', {text='⭐️', texthl='', linehl='', numhl=''})
local dap = require('dap') local dap = require('dap')
dap.adapters.node2 = { dap.adapters.node2 = {
type = 'executable', type = 'executable',
command = 'node', command = 'node',
args = {os.getenv('HOME') .. '/dev/microsoft/vscode-node-debug2/out/src/nodeDebug.js'}, args = {os.getenv('HOME') .. '/dev/microsoft/vscode-node-debug2/out/src/nodeDebug.js'},
} }
vim.fn.sign_define('DapBreakpoint', {text='🟥', texthl='', linehl='', numhl=''}) dap.configurations.javascript = {
vim.fn.sign_define('DapStopped', {text='⭐️', texthl='', linehl='', numhl=''}) {
name = 'Launch',
type = 'node2',
request = 'launch',
program = '${file}',
cwd = vim.fn.getcwd(),
sourceMaps = true,
protocol = 'inspector',
console = 'integratedTerminal',
},
{
-- For this to work you need to make sure the node process is started with the `--inspect` flag.
name = 'Attach to process',
type = 'node2',
request = 'attach',
processId = require'dap.utils'.pick_process,
},
}

View File

@ -1,97 +1,90 @@
require("packer").startup(function(use) require("packer").startup(function(use)
use("wbthomason/packer.nvim") use("wbthomason/packer.nvim")
use({ use({
"williamboman/mason.nvim", "williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
"WhoIsSethDaniel/mason-tool-installer.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim",
}) })
use("mfussenegger/nvim-dap") use("mfussenegger/nvim-dap")
use("jose-elias-alvarez/null-ls.nvim") use("jose-elias-alvarez/null-ls.nvim")
use({ use({
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.0", tag = "0.1.0",
requires = { { "nvim-lua/plenary.nvim" } }, requires = { { "nvim-lua/plenary.nvim" } },
}) })
use("nvim-lua/lsp-status.nvim") use("nvim-lua/lsp-status.nvim")
use("jiangmiao/auto-pairs") use("jiangmiao/auto-pairs")
use("machakann/vim-sandwich") use("machakann/vim-sandwich")
use("machakann/vim-highlightedyank") use("machakann/vim-highlightedyank")
use("bling/vim-airline") use("bling/vim-airline")
use("airblade/vim-gitgutter") use("airblade/vim-gitgutter")
use("easymotion/vim-easymotion") use("easymotion/vim-easymotion")
use({ use({
"antoinemadec/FixCursorHold.nvim", "antoinemadec/FixCursorHold.nvim",
"kosayoda/nvim-lightbulb", "kosayoda/nvim-lightbulb",
}) })
use("hrsh7th/cmp-nvim-lsp") use("hrsh7th/cmp-nvim-lsp")
use("hrsh7th/cmp-buffer") use("hrsh7th/cmp-buffer")
use("hrsh7th/cmp-path") use("hrsh7th/cmp-path")
use("hrsh7th/nvim-cmp") use("hrsh7th/nvim-cmp")
use("hrsh7th/cmp-cmdline") use("hrsh7th/cmp-cmdline")
use("saadparwaiz1/cmp_luasnip") use("saadparwaiz1/cmp_luasnip")
use("L3MON4D3/LuaSnip") use("L3MON4D3/LuaSnip")
use("kyazdani42/nvim-web-devicons") use("kyazdani42/nvim-web-devicons")
use("kyazdani42/nvim-tree.lua") use("kyazdani42/nvim-tree.lua")
use("tpope/vim-fugitive") use("tpope/vim-fugitive")
use({ use({
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
run = function() run = function()
require("nvim-treesitter.install").update({ with_sync = true }) require("nvim-treesitter.install").update({ with_sync = true })
end, end,
}) })
use("folke/tokyonight.nvim") use("folke/tokyonight.nvim")
use("simrat39/rust-tools.nvim") use("simrat39/rust-tools.nvim")
use({ use({
"akinsho/toggleterm.nvim", "akinsho/toggleterm.nvim",
tag = "v2.*", tag = "v2.*",
config = function() config = function()
require("toggleterm").setup() require("toggleterm").setup()
end, end,
}) })
use("https://git.sr.ht/~whynothugo/lsp_lines.nvim") use("https://git.sr.ht/~whynothugo/lsp_lines.nvim")
--use 'morhetz/gruvbox' --use 'morhetz/gruvbox'
use({ use({
"folke/which-key.nvim", "folke/which-key.nvim",
config = function() config = function()
require("which-key").setup({}) require("which-key").setup({})
end, end,
}) })
use("gbrlsnchs/telescope-lsp-handlers.nvim") use("gbrlsnchs/telescope-lsp-handlers.nvim")
use({ use({
"klen/nvim-test", "klen/nvim-test",
config = function() config = function()
require("nvim-test").setup() require("nvim-test").setup()
end, end,
}) })
use({ use({
"nvim-neotest/neotest", "nvim-neotest/neotest",
requires = { requires = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
"antoinemadec/FixCursorHold.nvim", "antoinemadec/FixCursorHold.nvim",
"haydenmeade/neotest-jest", "haydenmeade/neotest-jest",
"nvim-neotest/neotest-python", "nvim-neotest/neotest-python",
"nvim-neotest/neotest-plenary", "nvim-neotest/neotest-plenary",
"nvim-neotest/neotest-vim-test", "nvim-neotest/neotest-vim-test",
}, },
}) })
use({ use({
"MunifTanjim/prettier.nvim", "MunifTanjim/prettier.nvim",
requires = { requires = {
"jose-elias-alvarez/null-ls.nvim", "jose-elias-alvarez/null-ls.nvim",
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
}, },
}) })
use { use {
"folke/trouble.nvim", "folke/trouble.nvim",
requires = "kyazdani42/nvim-web-devicons", requires = "kyazdani42/nvim-web-devicons"
config = function() }
require("trouble").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
end
}
end) end)