From 3082bbae83560be01e76e2e8a3c6299b42a19ed0 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 22 Dec 2025 23:56:41 +0100 Subject: Benutze symbolische Links statt die Dateien zu kopieren --- .gitignore | 1 + install.sh | 15 ++++++++++++++- nvim/lua/plugins/lsp.lua | 1 + nvim/lua/plugins/treesitter.lua | 3 ++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8075617..98d1b49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .tmuxp.yaml newsboat/urls +nvim/lazy-lock.json diff --git a/install.sh b/install.sh index 072b4f2..8270a42 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,18 @@ #!/bin/sh +link() { + src="$1" + dst="$2" + + if [ -e "$dst" ] || [ -L "$dst" ]; then + rm -rf "$dst" + fi + + ln -sf "$src" "$dst" +} + +SCRIPT_DIR=$(cd -- "$(dirname -- "$0")" && pwd) + CONFIG=~/.config mkdir -p "$CONFIG" @@ -14,7 +27,7 @@ cp -R tmux "$CONFIG" cp -R tmuxp "$CONFIG" # nvim -cp -R nvim "$CONFIG" +link "$SCRIPT_DIR/nvim" "$CONFIG/nvim" # vit cp -R vit "$CONFIG" diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index e888ae0..19ec93d 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -21,6 +21,7 @@ return { } vim.lsp.enable({ + "bashls", -- npm install -g bash-language-server "clangd", -- pkg install llvm "lua_ls", -- pkg install lua-language-server }) diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index edcaff2..8982a2c 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -9,10 +9,11 @@ return { config = function() local treesitter = require("nvim-treesitter") - treesitter.setup({}) + -- treesitter.setup({}) -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/SUPPORTED_LANGUAGES.md treesitter.install({ + "bash", "c", "cpp", "html", -- cgit v1.3