new
This commit is contained in:
@@ -1,25 +1,27 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "73813308abc2eaeff2bc0d3f2f79270c491be9d7" },
|
||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||
"hererocks": { "branch": "master", "commit": "160228946bed9998f5e3b168bd0b66ba2690f8f3" },
|
||||
"image.nvim": { "branch": "master", "commit": "446a8a5cc7a3eae3185ee0c697732c32a5547a0b" },
|
||||
"kanagawa": { "branch": "master", "commit": "27f1e119f3a7e6d11d435a59e3262e6affda1f83" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" },
|
||||
"kanagawa": { "branch": "master", "commit": "aef7f5cec0a40dbe7f3304214850c472e2264b10" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "3946f0122255bc377d14a59b27b609fb3ab25768" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "6bdb14f230de0904229ec367b410fb817e59b072" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "d7b5feb6e769e995f7fcf44d92f49f811c51d10c" },
|
||||
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
||||
"multicursor.nvim": { "branch": "main", "commit": "0c6ceae228bf209e8b8717df9de500770c4e7022" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "4c60a198e3f92098778a32a1c76d2bd7ba46a3b5" },
|
||||
"multicursor.nvim": { "branch": "1.0", "commit": "0c6ceae228bf209e8b8717df9de500770c4e7022" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||
"nvim-dap": { "branch": "master", "commit": "881f7dc17c0b4204a1d844732f95539575350e5b" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" },
|
||||
"nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "7a2c97cccd60abc559344042fefb1d5a85b3e33b" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "106c4bcc053a5da783bf4a9d907b6f22485c2ea0" },
|
||||
"nvim-dap": { "branch": "master", "commit": "e97dc47e134ffb33da008658fecfae8f8547c528" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "2010fc6ec03e2da552b4886fceb2f7bc0fc2e9c0" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-surround": { "branch": "main", "commit": "fcfa7e02323d57bfacc3a141f8a74498e1522064" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
return{
|
||||
--{
|
||||
-- 'neovim/nvim-lspconfig'
|
||||
-- },
|
||||
{
|
||||
'hrsh7th/nvim-cmp'
|
||||
},
|
||||
{
|
||||
'L3MON4D3/LuaSnip',
|
||||
},
|
||||
{
|
||||
'saadparwaiz1/cmp_luasnip'
|
||||
},
|
||||
{
|
||||
'rafamadriz/friendly-snippets'
|
||||
}
|
||||
}
|
||||
9
lua/plugins/comment.lua
Normal file
9
lua/plugins/comment.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
opts ={
|
||||
|
||||
},
|
||||
config = function()
|
||||
require("Comment").setup()
|
||||
end
|
||||
}
|
||||
@@ -3,11 +3,11 @@ return {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
},
|
||||
{
|
||||
"L3MON4AD3/LuaSnip",
|
||||
"L3MON4D3/LuaSnip",
|
||||
version="V2.*"
|
||||
},
|
||||
{
|
||||
"saadpawaiz1/cmp_luasnip",
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
},
|
||||
{
|
||||
"rafamadriz/friendly-snippets"
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
return{
|
||||
"mfussenegger/nvim-dap",
|
||||
branch = 'master'
|
||||
}
|
||||
97
lua/plugins/debug.lua
Normal file
97
lua/plugins/debug.lua
Normal file
@@ -0,0 +1,97 @@
|
||||
return {
|
||||
"mfussenegger/nvim-dap",
|
||||
branch = "master",
|
||||
dependencies ={
|
||||
"rcarriga/nvim-dap-ui",
|
||||
"nvim-neotest/nvim-nio"
|
||||
},
|
||||
config = function()
|
||||
local dap = require("dap")
|
||||
local dapui = require("dapui")
|
||||
|
||||
require("dapui").setup()
|
||||
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.launch.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
|
||||
--MAPPINGS
|
||||
vim.keymap.set('n', '<F5>', function() require('dap').continue() end)
|
||||
vim.keymap.set('n', '<S-F5>', function() require('dap').terminate() end)
|
||||
vim.keymap.set('n', '<F10>', function() require('dap').step_over() end)
|
||||
vim.keymap.set('n', '<F11>', function() require('dap').step_into() end)
|
||||
vim.keymap.set('n', '<F12>', function() require('dap').step_out() end)
|
||||
vim.keymap.set('n', '<Leader>b', function() require('dap').toggle_breakpoint() end)
|
||||
vim.keymap.set('n', '<Leader>B', function() require('dap').set_breakpoint() end)
|
||||
vim.keymap.set('n', '<Leader>lp', function() require('dap').set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) end)
|
||||
vim.keymap.set('n', '<Leader>dr', function() require('dap').repl.open() end)
|
||||
vim.keymap.set('n', '<Leader>dl', function() require('dap').run_last() end)
|
||||
vim.keymap.set({'n', 'v'}, '<Leader>dh', function()
|
||||
require('dap.ui.widgets').hover()
|
||||
end)
|
||||
vim.keymap.set({'n', 'v'}, '<Leader>dp', function()
|
||||
require('dap.ui.widgets').preview()
|
||||
end)
|
||||
vim.keymap.set('n', '<Leader>df', function()
|
||||
local widgets = require('dap.ui.widgets')
|
||||
widgets.centered_float(widgets.frames)
|
||||
end)
|
||||
vim.keymap.set('n', '<Leader>ds', function()
|
||||
local widgets = require('dap.ui.widgets')
|
||||
widgets.centered_float(widgets.scopes)
|
||||
end)
|
||||
|
||||
dap.adapters.gdb = {
|
||||
type = "executable",
|
||||
command = "gdb",
|
||||
args = { "--interpreter=dap", "--eval-command", "set print pretty on" }
|
||||
}
|
||||
|
||||
dap.configurations.c = {
|
||||
{
|
||||
name = "Launch",
|
||||
type = "gdb",
|
||||
request = "launch",
|
||||
program = function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end,
|
||||
args = {"cube.obj"}, -- provide arguments if needed
|
||||
cwd = "${workspaceFolder}",
|
||||
stopAtBeginningOfMainSubprogram = false,
|
||||
},
|
||||
{
|
||||
name = "Select and attach to process",
|
||||
type = "gdb",
|
||||
request = "attach",
|
||||
program = function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end,
|
||||
pid = function()
|
||||
local name = vim.fn.input('Executable name (filter): ')
|
||||
return require("dap.utils").pick_process({ filter = name })
|
||||
end,
|
||||
cwd = '${workspaceFolder}'
|
||||
},
|
||||
{
|
||||
name = 'Attach to gdbserver :1234',
|
||||
type = 'gdb',
|
||||
request = 'attach',
|
||||
target = 'localhost:1234',
|
||||
program = function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end,
|
||||
cwd = '${workspaceFolder}'
|
||||
}
|
||||
}
|
||||
dap.configurations.cpp = dap.configurations.c
|
||||
end
|
||||
}
|
||||
@@ -11,10 +11,10 @@ return {
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed={
|
||||
"lua_ls",
|
||||
"ts_ls",
|
||||
"jsonls",
|
||||
"pylsp",
|
||||
"angularls"
|
||||
--"ts_ls",
|
||||
--"jsonls",
|
||||
--"pylsp",
|
||||
--"angularls"
|
||||
|
||||
}
|
||||
})
|
||||
@@ -44,18 +44,18 @@ return {
|
||||
vim.lsp.config['lua_ls'] ={
|
||||
vim.lsp.enable('lua_ls')
|
||||
}
|
||||
vim.lsp.config['ts_ls']={
|
||||
vim.lsp.enable('ts_ls')
|
||||
}
|
||||
vim.lsp.config['jsonls']={
|
||||
vim.lsp.enable('jsonls')
|
||||
}
|
||||
--vim.lsp.config['ts_ls']={
|
||||
-- vim.lsp.enable('ts_ls')
|
||||
--
|
||||
--im.lsp.config['jsonls']={
|
||||
-- vim.lsp.enable('jsonls')
|
||||
--}
|
||||
vim.lsp.config['pylsp']={
|
||||
vim.lsp.enable('pylsp')
|
||||
}
|
||||
vim.lsp.config['angularls']={
|
||||
vim.lsp.enable('angularls')
|
||||
}
|
||||
--vim.lsp.config['angularls']={
|
||||
-- vim.lsp.enable('angularls')
|
||||
--}
|
||||
vim.lsp.config['clangd']={
|
||||
vim.lsp.enable('clangd')
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ return {
|
||||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>o', builtin.treesitter, {})
|
||||
vim.keymap.set('n', '<leader>p', builtin.buffers, {})
|
||||
vim.keymap.set('n', '<leader>s', builtin.lsp_document_symbols, {})
|
||||
vim.keymap.set('n', '<leader>u', builtin.lsp_document_symbols, {})
|
||||
vim.keymap.set('n', '<leader>r', builtin.lsp_references, {})
|
||||
vim.keymap.set('n', '<leader>d', builtin.lsp_definitions, {})
|
||||
vim.keymap.set('n', '<leader>td', builtin.lsp_definitions, {})
|
||||
vim.keymap.set('n', '<leader>fc', builtin.lsp_incoming_calls, {})
|
||||
vim.keymap.set('n', '<leader>fcc', builtin.lsp_outgoing_calls, {})
|
||||
vim.keymap.set('n', '<leader>e', builtin.diagnostics, {})
|
||||
|
||||
Reference in New Issue
Block a user