From 797f02d13142043ffa85348013b0e91866a3d2e4 Mon Sep 17 00:00:00 2001 From: Luke Else Date: Tue, 14 Mar 2023 23:14:53 +0000 Subject: [PATCH] Updated dap config to allow for rust debugging --- .vscode/settings.json | 5 +++++ nvim/after/plugin/dap.lua | 2 +- nvim/after/plugin/lsp.lua | 1 - scripts/install.sh | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..50f57ec --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "Lua.diagnostics.globals": [ + "vim" + ] +} \ No newline at end of file diff --git a/nvim/after/plugin/dap.lua b/nvim/after/plugin/dap.lua index 52321e2..4603040 100644 --- a/nvim/after/plugin/dap.lua +++ b/nvim/after/plugin/dap.lua @@ -14,7 +14,7 @@ local lldb = { program = function() return vim.fn.input( 'Path to executable: ', - vim.fn.getcwd() .. '/', + vim.fn.getcwd() .. '/target/debug/', 'file' ) end, diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index 7e0212e..eb53474 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -4,7 +4,6 @@ lsp.preset('recommended') lsp.ensure_installed({ 'rust_analyzer', - 'codelldb', }) -- Fix Undefined global 'vim' diff --git a/scripts/install.sh b/scripts/install.sh index 4fdc338..d0b9b7c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -3,7 +3,7 @@ # Update and install base packages sudo pacman -Syu sudo pacman -Sy xorg-xsetroot alacritty awesome-terminal-fonts ttf-jetbrains-mono gnome-keyring playerctl # DE Setup -sudo pacman -Sy neovim vifm neofetch fish htop networkmanager networkmanager-openvpn unzip ripgrep # Utilities +sudo pacman -Sy neovim vifm neofetch fish htop networkmanager networkmanager-openvpn unzip ripgrep lldb # Utilities sudo pacman -Sy base-devel rustup go cmake docker # Dev sudo pacman -Sy spotifyd discord # Userspace