nvim: add missing plugin files

This commit is contained in:
Daniel Lundin 2022-03-24 14:51:10 +01:00
parent 23e867f546
commit 13f8f0732a
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,14 @@
require("dap")
local map = require('dln.utils').map
local silent = { silent = true }
vim.fn.sign_define("DapStopped", { text = "", texthl = "", linehl = "debugPC", numhl = "" })
vim.fn.sign_define("DapBreakpoint", { text = "🧘", texthl = "", linehl = "debugPC", numhl = "" })
map("n", "DD", ":lua require 'dap'.toggle_breakpoint()<CR>", silent)
map("n", "Dc", ":lua require 'dap'.continue()<CR>", silent)
map("n", "Di", ":lua require 'dap'.step_into()<CR>", silent)
map("n", "Do", ":lua require 'dap'.step_over()<CR>", silent)
map("n", "DO", ":lua require 'dap'.step_out()<CR>", silent)
map("n", "Dr", ":lua require 'dap'.repl.toggle({height = 5})<CR>", silent)
map("n", "Dh", ":lua require 'dap.ui.widgets'.hover()<CR>", silent)

View file

@ -0,0 +1,13 @@
local null_ls = require("null-ls")
local builtins = require("null-ls.builtins")
null_ls.setup({
sources = {
require("null-ls").builtins.formatting.prettierd,
require("null-ls").builtins.formatting.protolint,
require("null-ls").builtins.formatting.stylua,
require("null-ls").builtins.diagnostics.eslint,
require("null-ls").builtins.completion.spell,
},
debug = true,
})

View file

@ -0,0 +1,6 @@
local dapgo = require('dap-go')
local map = require('dln.utils').map
local silent = { silent=true }
dapgo.setup()
map("n", "<leader>y", ":lua require('dap-go').debug_test()<CR>", silent)