Update everything, improve autocomplete and snippets.

This commit is contained in:
Dan Chadwick
2024-11-11 12:05:28 -05:00
parent 63ae70fc67
commit a088a7565a
8 changed files with 107 additions and 109 deletions

View File

@@ -1,4 +1,6 @@
-- Pull in core keybindings --
require("dan.core")
-- Lazy VIM --
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
@@ -13,16 +15,18 @@ if not vim.loop.fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup("plugins")
-- SET NEOVIM THEME --
vim.cmd.colorscheme('catppuccin')
-- XDEBUG --
local dap = require('dap')
require('telescope').load_extension('dap')
dap.adapters.php = {
type = "executable",
command = "node",
args = { os.getenv("HOME") .. "/vscode-php-debug/out/phpDebug.js" }
}
dap.configurations.php = {
{
type = "php",
@@ -42,7 +46,6 @@ dap.configurations.php = {
}
}
}
vim.keymap.set('n', '<leader>?', function() dap.continue() end)
vim.keymap.set('n', '<leader>N', function() dap.step_over() end)
vim.keymap.set('n', '<leader>n', function() dap.step_into() end)
@@ -51,29 +54,8 @@ vim.keymap.set('n', '<leader>b', function() dap.toggle_breakpoint() end)
vim.keymap.set('n', '<leader>B', function() dap.set_breakpoint() end)
vim.keymap.set('n', '<leader>dr', function() dap.repl.open() end)
vim.keymap.set('n', '<leader>dl', function() 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>db', function()
local widgets = require('dap.ui.widgets')
widgets.centered_float(widgets.scopes)
end)
-- dap.listeners.after.event_initialized["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