From e8bd36899b88285c94c850f0dfce0754d94cfe24 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 22 Dec 2025 17:37:13 +0100 Subject: Neovim: Neue Konfiguration --- nvim/lua/plugins/editing.lua | 20 ++++++++++++++ nvim/lua/plugins/git.lua | 7 +++++ nvim/lua/plugins/lsp.lua | 29 +++++++++++++++++++++ nvim/lua/plugins/telescope.lua | 9 +++++++ nvim/lua/plugins/treesitter.lua | 29 +++++++++++++++++++++ nvim/lua/plugins/ui.lua | 58 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 152 insertions(+) create mode 100644 nvim/lua/plugins/editing.lua create mode 100644 nvim/lua/plugins/git.lua create mode 100644 nvim/lua/plugins/lsp.lua create mode 100644 nvim/lua/plugins/telescope.lua create mode 100644 nvim/lua/plugins/treesitter.lua create mode 100644 nvim/lua/plugins/ui.lua (limited to 'nvim/lua/plugins') diff --git a/nvim/lua/plugins/editing.lua b/nvim/lua/plugins/editing.lua new file mode 100644 index 0000000..44f74c6 --- /dev/null +++ b/nvim/lua/plugins/editing.lua @@ -0,0 +1,20 @@ +return { + { "tpope/vim-repeat" }, + { "tpope/vim-surround" }, + + { + "romainl/vim-cool", + event = "VeryLazy", + }, + + { + "windwp/nvim-autopairs", + event = "InsertEnter", + config = true, + }, + + { + "windwp/nvim-ts-autotag", + event = "InsertEnter", + }, +} diff --git a/nvim/lua/plugins/git.lua b/nvim/lua/plugins/git.lua new file mode 100644 index 0000000..1fd2418 --- /dev/null +++ b/nvim/lua/plugins/git.lua @@ -0,0 +1,7 @@ +return { + { + "lewis6991/gitsigns.nvim", + event = { "BufReadPre", "BufNewFile" }, + config = true, + }, +} diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua new file mode 100644 index 0000000..e888ae0 --- /dev/null +++ b/nvim/lua/plugins/lsp.lua @@ -0,0 +1,29 @@ +return { + { + "neovim/nvim-lspconfig", + lazy = false, + config = function() + vim.lsp.config.lua_ls = { + settings = { + Lua = { + diagnostics = { + globals = { "vim" }, + }, + workspace = { + checkThirdParty = false, + library = { + vim.fn.expand("$VIMRUNTIME/lua"), + vim.fn.expand("$XDG_CONFIG_HOME") .. "/nvim/lua", + }, + }, + }, + }, + } + + vim.lsp.enable({ + "clangd", -- pkg install llvm + "lua_ls", -- pkg install lua-language-server + }) + end, + }, +} diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..7633892 --- /dev/null +++ b/nvim/lua/plugins/telescope.lua @@ -0,0 +1,9 @@ +return { + { + "nvim-telescope/telescope.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + }, + lazy = true, + }, +} diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..edcaff2 --- /dev/null +++ b/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,29 @@ +-- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md + +return { + { + "nvim-treesitter/nvim-treesitter", + branch = "main", + build = ":TSUpdate", + lazy = false, + config = function() + local treesitter = require("nvim-treesitter") + + treesitter.setup({}) + + -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/SUPPORTED_LANGUAGES.md + treesitter.install({ + "c", + "cpp", + "html", + "python", + "vim", + "vimdoc", + "javascript", + "lua", + "typescript", + "vim", + }) + end, + }, +} diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua new file mode 100644 index 0000000..10c4762 --- /dev/null +++ b/nvim/lua/plugins/ui.lua @@ -0,0 +1,58 @@ +return { + + { + "Mofiqul/vscode.nvim", + priority = 1000, -- wichtig: vor anderen UI-Plugins laden + lazy = false, + config = function() + local vscode = require("vscode") + + vscode.setup({ + style = "dark", + transparent = false, + italic_comments = true, + underline_links = true, + disable_nvimtree_bg = true, + }) + + vscode.load() + end, + }, + + { + "nvim-tree/nvim-tree.lua", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + cmd = { "NvimTreeToggle", "NvimTreeOpen" }, + keys = { + { "e", "NvimTreeToggle", desc = "Explorer toggle" }, + }, + config = function() + require("nvim-tree").setup({ + view = { + width = 30, + }, + renderer = { + highlight_git = true, + icons = { + show = { + file = true, + folder = true, + git = true, + }, + }, + }, + filters = { + dotfiles = false, + }, + }) + end, + }, + + { + "RRethy/vim-illuminate", + event = "BufReadPost", + }, + +} -- cgit v1.3