Added pastify and powershell debug

This commit is contained in:
2025-11-11 10:33:26 +01:00
parent 8c0f3ec5b4
commit 47ffc1a523
8 changed files with 370 additions and 7 deletions

View File

@@ -672,6 +672,7 @@ require('lazy').setup({
},
},
},
powershell_es = {},
}
-- Ensure the servers and tools above are installed
@@ -995,6 +996,7 @@ require('lazy').setup({
require 'kickstart.plugins.autopairs',
require 'kickstart.plugins.neo-tree',
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
require 'kickstart.plugins.pastify',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.

View File

@@ -1,6 +1,7 @@
{
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
"azure-functions.nvim": { "branch": "main", "commit": "6b368d5d5b1c7e205085a7e1b1c7eef3004a550c" },
"baleia.nvim": { "branch": "main", "commit": "880e97c02edf3148ba2bdc6305ac03eb3c3711e0" },
"blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" },
"catppuccin": { "branch": "main", "commit": "76a8d0515024cc55d8bd26fc13f1af88faef3ebf" },
"conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" },
@@ -22,6 +23,7 @@
"nvim-dap": { "branch": "master", "commit": "a479e25ed5b5d331fb46ee4b9e160ff02ac64310" },
"nvim-dap-cs": { "branch": "main", "commit": "16e5debe8cb7fb73c8799d20969ee00883586602" },
"nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" },
"nvim-dap-powershell": { "branch": "master", "commit": "0d41457342a98da1fdf5707aae6573a57a949025" },
"nvim-dap-python": { "branch": "master", "commit": "261ce649d05bc455a29f9636dc03f8cdaa7e0e2c" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
@@ -31,6 +33,7 @@
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-web-devicons": { "branch": "master", "commit": "c2599a81ecabaae07c49ff9b45dcd032a8d90f1a" },
"pastify.nvim": { "branch": "main", "commit": "4a1d1e03c3ae725ee4af796deca8c7c169ef626e" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"roslyn.nvim": { "branch": "main", "commit": "8c949b1485aea6f56a7acc24c2362517e6002f2b" },
"schemastore.nvim": { "branch": "main", "commit": "29e3e76967d32d434836d72380b4acea07bd0f50" },

View File

@@ -42,6 +42,22 @@ return {
}
end,
},
{
'Willem-J-an/nvim-dap-powershell',
dependencies = {
'nvim-lua/plenary.nvim',
'mfussenegger/nvim-dap',
'rcarriga/nvim-dap-ui',
{
'm00qek/baleia.nvim',
lazy = true,
tag = 'v1.4.0',
},
},
config = function()
require('dap-powershell').setup()
end,
},
},
keys = {
-- Basic debugging keymaps, feel free to change to your liking!

View File

@@ -0,0 +1,32 @@
vim.api.nvim_set_keymap('v', '<leader>p', ':PastifyAfter<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>p', ':PastifyAfter<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>P', ':Pastify<CR>', { noremap = true, silent = true })
local function get_assets_dir()
-- Get the absolute path of the current buffer
local buf_path = vim.api.nvim_buf_get_name(0)
if buf_path == '' then
-- Fallback to current working directory if buffer has no file
buf_path = vim.loop.cwd()
end
-- Extract directory name
local dir = vim.fn.fnamemodify(buf_path, ':p:h')
-- Append "assets"
local assets_dir = dir .. '/assets'
return assets_dir
end
return {
'TobinPalmer/pastify.nvim',
cmd = { 'Pastify', 'PastifyAfter' },
config = function()
require('pastify').setup {
opts = {
apikey = '', -- Needed if you want to save online.
local_path = get_assets_dir,
},
}
end,
}