nvim: add missing plugin files
This commit is contained in:
parent
23e867f546
commit
13f8f0732a
3 changed files with 33 additions and 0 deletions
14
.config/nvim/lua/plugins/dap.lua
Normal file
14
.config/nvim/lua/plugins/dap.lua
Normal 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)
|
13
.config/nvim/lua/plugins/null-ls.lua
Normal file
13
.config/nvim/lua/plugins/null-ls.lua
Normal 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,
|
||||
})
|
6
.config/nvim/lua/plugins/nvim-dap-go.lua
Normal file
6
.config/nvim/lua/plugins/nvim-dap-go.lua
Normal 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)
|
Loading…
Reference in a new issue