Added nvim dap and blink completion.

This commit is contained in:
rocketdebris 2026-06-21 14:33:44 -04:00
parent 0bd0090ae8
commit 4eb88a2417
3 changed files with 91 additions and 3 deletions

View file

@ -9,16 +9,22 @@ require("mason-lspconfig").setup({
"clangd",
"ols",
"ts_ls",
"vue_ls"
"vue_ls",
"phpactor",
},
})
require("mason-nvim-dap").setup({
ensure_installed = { "php" },
automatic_setup = true,
handlers = {},
})
-- My user settings:
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
--vim.opt.expandtab = true
vim.opt.expandtab = true
vim.opt.autoindent = true
vim.opt.foldmethod = "indent"
vim.opt.foldenable = false
@ -47,10 +53,30 @@ vim.keymap.set("n", "<Leader>;", function() harpoon:list():select(4) end)
local lspconfig = vim.lsp.config
local lspenable = vim.lsp.enable
lspconfig("ts_ls", {
filetypes = {'js', 'ts', 'vue'},
filetypes = {'javascript', 'typescript', 'vue', 'typescriptreact', 'javascriptreact'},
})
lspconfig("phpactor", {
cmd = {'phpactor', 'language-server'},
filetypes = {'php'},
})
lspenable("pylsp")
lspenable("clangd")
lspenable("ols")
lspenable("ts_ls")
lspenable("vue_ls")
lspenable("glsl_analyzer")
lspenable("phpactor")
local dap = require('dap')
dap.configurations.php = {
{
type = 'php',
request = 'launch',
name = 'Listen for Apache Prestashop',
port = 9003,
pathMappings = {
["/home/bnilsen/var/www/html/prestashop"] = vim.fn.getcwd()
}
}
}