From a49383f361247ae347ffeb84ae5266a500f0cf05 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 4 Jan 2025 02:21:11 +0100 Subject: [PATCH] Add vdebug --- .config/nvim/ftplugin/cpp.lua | 1 + .config/nvim/ftplugin/cpp.vim | 1 - .config/nvim/ftplugin/css.lua | 3 +++ .config/nvim/ftplugin/css.vim | 4 ---- .config/nvim/ftplugin/less.lua | 3 +++ .config/nvim/ftplugin/less.vim | 4 ---- .config/nvim/init.vim | 6 ++++++ .profile | 11 +++++------ 8 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 .config/nvim/ftplugin/cpp.lua delete mode 100644 .config/nvim/ftplugin/cpp.vim create mode 100644 .config/nvim/ftplugin/css.lua delete mode 100644 .config/nvim/ftplugin/css.vim create mode 100644 .config/nvim/ftplugin/less.lua delete mode 100644 .config/nvim/ftplugin/less.vim diff --git a/.config/nvim/ftplugin/cpp.lua b/.config/nvim/ftplugin/cpp.lua new file mode 100644 index 0000000..21934e4 --- /dev/null +++ b/.config/nvim/ftplugin/cpp.lua @@ -0,0 +1 @@ +vim.bo.expandtab = true diff --git a/.config/nvim/ftplugin/cpp.vim b/.config/nvim/ftplugin/cpp.vim deleted file mode 100644 index 0714c3e..0000000 --- a/.config/nvim/ftplugin/cpp.vim +++ /dev/null @@ -1 +0,0 @@ -setlocal et diff --git a/.config/nvim/ftplugin/css.lua b/.config/nvim/ftplugin/css.lua new file mode 100644 index 0000000..3b57b0b --- /dev/null +++ b/.config/nvim/ftplugin/css.lua @@ -0,0 +1,3 @@ +vim.bo.expandtab = true +vim.bo.tabstop = 2 +vim.bo.shiftwidth = 2 diff --git a/.config/nvim/ftplugin/css.vim b/.config/nvim/ftplugin/css.vim deleted file mode 100644 index 7df8467..0000000 --- a/.config/nvim/ftplugin/css.vim +++ /dev/null @@ -1,4 +0,0 @@ -setlocal et -setlocal ts=2 -setlocal sts=2 -setlocal sw=2 diff --git a/.config/nvim/ftplugin/less.lua b/.config/nvim/ftplugin/less.lua new file mode 100644 index 0000000..3b57b0b --- /dev/null +++ b/.config/nvim/ftplugin/less.lua @@ -0,0 +1,3 @@ +vim.bo.expandtab = true +vim.bo.tabstop = 2 +vim.bo.shiftwidth = 2 diff --git a/.config/nvim/ftplugin/less.vim b/.config/nvim/ftplugin/less.vim deleted file mode 100644 index 7df8467..0000000 --- a/.config/nvim/ftplugin/less.vim +++ /dev/null @@ -1,4 +0,0 @@ -setlocal et -setlocal ts=2 -setlocal sts=2 -setlocal sw=2 diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b22992c..72064fe 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -83,6 +83,7 @@ require('packer').startup(function() 'nvim-lua/plenary.nvim' } } + use 'vim-vdebug/vdebug' -- nvim-cmp use 'dcampos/nvim-snippy' @@ -368,4 +369,9 @@ dap.configurations.cpp = { }, } +-- +-- Vdebug +-- +vim.g.vdebug_options = { port = '9000' } + EOF diff --git a/.profile b/.profile index 3f06335..c6bf6b1 100755 --- a/.profile +++ b/.profile @@ -4,7 +4,11 @@ if [ -x /opt/homebrew/bin/brew ] then 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 do PATH="$HOMEBREW_PREFIX/opt/$tool/libexec/gnubin:$PATH" @@ -14,11 +18,6 @@ else export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh 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" ] then export ANDROID_HOME="$HOME/Android/Sdk"