Update nvim config
This commit is contained in:
parent
2c989c5def
commit
84f5fadb05
4 changed files with 44 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
||||
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
version = "*",
|
||||
|
|
@ -10,6 +9,9 @@ return {
|
|||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function ()
|
||||
require('neo-tree').setup {}
|
||||
require('neo-tree').setup {
|
||||
vim.keymap.set('n', '<leader>sn', require('neo-tree').show, { desc = '[S]how [N]eotree' }),
|
||||
vim.keymap.set('n', '<leader>fn', require('neo-tree').float, { desc = '[F]loat [N]eotree' })
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ return {
|
|||
ensure_installed = {
|
||||
-- Update this to ensure that you have the debuggers for the langs you want
|
||||
'delve',
|
||||
'c',
|
||||
'cpp'
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -52,6 +54,30 @@ return {
|
|||
dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ')
|
||||
end)
|
||||
|
||||
-- LLVM (Low Level Virtual Machine)
|
||||
dap.adapters.lldb = {
|
||||
type = 'executable',
|
||||
command = 'lldb-vscode', -- adjust as needed, must be absolute path
|
||||
--args: string[], -- arguments for the command
|
||||
name = 'lldb'
|
||||
}
|
||||
|
||||
dap.configurations.cpp = {
|
||||
{
|
||||
name = "Launch",
|
||||
type = "lldb",
|
||||
request = "launch",
|
||||
program = function()
|
||||
return vim.fn.input('Path to executable: ' .. vim.fn.getcwd() .. '/' .. 'file')
|
||||
end,
|
||||
stopOnEntry = false,
|
||||
args = {},
|
||||
runInTerminal = true,
|
||||
},
|
||||
}
|
||||
dap.configurations.c = dap.configurations.cpp
|
||||
dap.configurations.rust = dap.configurations.cpp
|
||||
|
||||
-- Dap UI setup
|
||||
-- For more information, see |:help nvim-dap-ui|
|
||||
dapui.setup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue