Add vdebug

This commit is contained in:
Eugen Wissner 2025-01-04 02:21:11 +01:00
parent a8c4ea36cc
commit 1aaa41fc42
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
15 changed files with 30 additions and 40 deletions

View File

@ -0,0 +1 @@
vim.bo.expandtab = true

View File

@ -1 +0,0 @@
setlocal et

View File

@ -0,0 +1,3 @@
vim.bo.expandtab = true
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2

View File

@ -1,4 +0,0 @@
setlocal et
setlocal ts=2
setlocal sts=2
setlocal sw=2

View File

@ -0,0 +1,3 @@
vim.bo.expandtab = true
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2

View File

@ -1,4 +0,0 @@
setlocal et
setlocal ts=2
setlocal sts=2
setlocal sw=2

View File

@ -0,0 +1,3 @@
vim.bo.expandtab = true
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2

View File

@ -1,4 +0,0 @@
setlocal et
setlocal ts=2
setlocal sts=2
setlocal sw=2

View File

@ -0,0 +1,3 @@
vim.bo.expandtab = true
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2

View File

@ -1,3 +0,0 @@
setlocal expandtab
setlocal tabstop=2
setlocal shiftwidth=2

View File

@ -0,0 +1,3 @@
vim.bo.expandtab = true
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2

View File

@ -1,4 +0,0 @@
setlocal et
setlocal ts=2
setlocal sts=2
setlocal sw=2

View File

@ -83,6 +83,7 @@ require('packer').startup(function()
'nvim-lua/plenary.nvim' 'nvim-lua/plenary.nvim'
} }
} }
use 'vim-vdebug/vdebug'
-- nvim-cmp -- nvim-cmp
use 'dcampos/nvim-snippy' use 'dcampos/nvim-snippy'
@ -93,8 +94,6 @@ require('packer').startup(function()
use 'hrsh7th/cmp-buffer' use 'hrsh7th/cmp-buffer'
end) end)
local configuration = read_configuration()
-- --
-- ALE -- ALE
-- --
@ -195,11 +194,11 @@ nvim_lsp['hls'].setup {
nvim_lsp['intelephense'].setup { nvim_lsp['intelephense'].setup {
on_attach = default_on_attach, on_attach = default_on_attach,
flags = { flags = {
debounce_text_changes = 150, debounce_text_changes = 150
}, },
init_options = { init_options = {
licenceKey = configuration.intelephenseKey, licenceKey = os.getenv('HOME') .. '/Documents/Schluessel/intelephense.key',
storagePath = '/tmp/intelephense', storagePath = '/tmp/intelephense'
}, },
capabilities = capabilities, capabilities = capabilities,
settings = { settings = {
@ -368,4 +367,9 @@ dap.configurations.cpp = {
}, },
} }
--
-- Vdebug
--
vim.g.vdebug_options = { port = '9000' }
EOF EOF

View File

@ -29,12 +29,3 @@ function default_on_attach(client, bufnr)
nnoremap('gr', vim.lsp.buf.references, "Find references") nnoremap('gr', vim.lsp.buf.references, "Find references")
nnoremap('<space>f', function() vim.lsp.buf.format { async = true } end, "Format file") nnoremap('<space>f', function() vim.lsp.buf.format { async = true } end, "Format file")
end end
function read_configuration()
local configuration = {}
local chunk, err = loadfile(os.getenv('HOME') .. '/.config/nvim/config', 't', configuration)
if chunk then
chunk()
end
return configuration
end

View File

@ -4,7 +4,11 @@ if [ -x /opt/homebrew/bin/brew ]
then then
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)"
PATH="$HOMEBREW_PREFIX/opt/bison/bin:/usr/local/bin:$PATH" PATH="/usr/local/bin:$PATH"
for tool in flex bison
do
PATH="$HOMEBREW_PREFIX/opt/$tool/bin:$PATH"
done
for tool in libtool coreutils grep gnu-sed findutils make for tool in libtool coreutils grep gnu-sed findutils make
do do
PATH="$HOMEBREW_PREFIX/opt/$tool/libexec/gnubin:$PATH" PATH="$HOMEBREW_PREFIX/opt/$tool/libexec/gnubin:$PATH"
@ -14,11 +18,6 @@ else
export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
fi fi
if [ -d /opt/homebrew/opt/php@8.3 ]
then
PATH="/opt/homebrew/opt/php@8.3/bin:/opt/homebrew/opt/php@8.3/sbin:$PATH"
fi
if [ -d "$HOME/Android/Sdk" ] if [ -d "$HOME/Android/Sdk" ]
then then
export ANDROID_HOME="$HOME/Android/Sdk" export ANDROID_HOME="$HOME/Android/Sdk"