aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-08-12 09:19:03 +0200
committerThomas Schmucker <ts@its1.de>2026-08-12 09:19:03 +0200
commit6e5882a2fd02d30206ab9ca8aa5847b8ea09196c (patch)
tree75d3b91f9005e51b93a37b44f3ad23ce4f48bc35 /nvim/lua/plugins
parent41c676453cd32fac760ff26e092c9dc81874739f (diff)
downloaddotfiles-6e5882a2fd02d30206ab9ca8aa5847b8ea09196c.tar.gz
dotfiles-6e5882a2fd02d30206ab9ca8aa5847b8ea09196c.tar.bz2
dotfiles-6e5882a2fd02d30206ab9ca8aa5847b8ea09196c.zip
Normalize line endings
Diffstat (limited to 'nvim/lua/plugins')
-rw-r--r--nvim/lua/plugins/completion.lua92
-rw-r--r--nvim/lua/plugins/editing.lua64
-rw-r--r--nvim/lua/plugins/format.lua92
-rw-r--r--nvim/lua/plugins/git.lua32
-rw-r--r--nvim/lua/plugins/lsp.lua248
-rw-r--r--nvim/lua/plugins/telescope.lua42
-rw-r--r--nvim/lua/plugins/treesitter.lua44
7 files changed, 307 insertions, 307 deletions
diff --git a/nvim/lua/plugins/completion.lua b/nvim/lua/plugins/completion.lua
index 4912815..6e20d73 100644
--- a/nvim/lua/plugins/completion.lua
+++ b/nvim/lua/plugins/completion.lua
@@ -1,46 +1,46 @@
1return { 1return {
2 { 2 {
3 "saghen/blink.cmp", 3 "saghen/blink.cmp",
4 dependencies = { "rafamadriz/friendly-snippets" }, 4 dependencies = { "rafamadriz/friendly-snippets" },
5 version = "1.*", 5 version = "1.*",
6 6
7 opts = { 7 opts = {
8 keymap = { preset = "default" }, 8 keymap = { preset = "default" },
9 9
10 appearance = { 10 appearance = {
11 use_nvim_cmp_as_default = true, 11 use_nvim_cmp_as_default = true,
12 nerd_font_variant = "mono", 12 nerd_font_variant = "mono",
13 }, 13 },
14 14
15 completion = { 15 completion = {
16 documentation = { 16 documentation = {
17 auto_show = false, 17 auto_show = false,
18 window = { 18 window = {
19 border = "rounded", 19 border = "rounded",
20 }, 20 },
21 }, 21 },
22 22
23 menu = { 23 menu = {
24 border = "rounded", 24 border = "rounded",
25 }, 25 },
26 }, 26 },
27 27
28 signature = { 28 signature = {
29 enabled = true, 29 enabled = true,
30 window = { 30 window = {
31 border = "rounded", 31 border = "rounded",
32 }, 32 },
33 }, 33 },
34 34
35 sources = { 35 sources = {
36 default = { "lsp", "path", "snippets", "buffer" }, 36 default = { "lsp", "path", "snippets", "buffer" },
37 }, 37 },
38 38
39 fuzzy = { 39 fuzzy = {
40 implementation = "prefer_rust_with_warning", 40 implementation = "prefer_rust_with_warning",
41 }, 41 },
42 }, 42 },
43 43
44 opts_extend = { "sources.default" }, 44 opts_extend = { "sources.default" },
45 }, 45 },
46} 46}
diff --git a/nvim/lua/plugins/editing.lua b/nvim/lua/plugins/editing.lua
index b9f9283..38e651c 100644
--- a/nvim/lua/plugins/editing.lua
+++ b/nvim/lua/plugins/editing.lua
@@ -1,32 +1,32 @@
1return { 1return {
2 { 2 {
3 "tpope/vim-repeat", 3 "tpope/vim-repeat",
4 event = "VeryLazy", 4 event = "VeryLazy",
5 }, 5 },
6 6
7 { 7 {
8 "tpope/vim-surround", -- alternative: "kylechui/nvim-surround" 8 "tpope/vim-surround", -- alternative: "kylechui/nvim-surround"
9 event = "VeryLazy", 9 event = "VeryLazy",
10 }, 10 },
11 11
12 { 12 {
13 "romainl/vim-cool", 13 "romainl/vim-cool",
14 event = "VeryLazy", 14 event = "VeryLazy",
15 }, 15 },
16 16
17 { 17 {
18 "windwp/nvim-autopairs", 18 "windwp/nvim-autopairs",
19 event = "InsertEnter", 19 event = "InsertEnter",
20 config = true, 20 config = true,
21 }, 21 },
22 22
23 { 23 {
24 "windwp/nvim-ts-autotag", 24 "windwp/nvim-ts-autotag",
25 event = "InsertEnter", 25 event = "InsertEnter",
26 }, 26 },
27 27
28 { 28 {
29 "preservim/vim-markdown", 29 "preservim/vim-markdown",
30 ft = "markdown", 30 ft = "markdown",
31 }, 31 },
32} 32}
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua
index 8ca7f1b..102326c 100644
--- a/nvim/lua/plugins/format.lua
+++ b/nvim/lua/plugins/format.lua
@@ -1,46 +1,46 @@
1-- Verfügbare Formater: https://github.com/stevearc/conform.nvim/tree/master/lua/conform/formatters 1-- Verfügbare Formater: https://github.com/stevearc/conform.nvim/tree/master/lua/conform/formatters
2 2
3local clang = {} 3local clang = {}
4local gawk = { "gawk" } -- brew install gawk, pkg install gawk 4local gawk = { "gawk" } -- brew install gawk, pkg install gawk
5local jq = { "jq" } -- brew install jq, pkg install jq 5local jq = { "jq" } -- brew install jq, pkg install jq
6local prettier = { "prettier" } -- npm install -g prettier 6local prettier = { "prettier" } -- npm install -g prettier
7local ruff = { "ruff_format" } -- brew install ruff, pkg install ruff 7local ruff = { "ruff_format" } -- brew install ruff, pkg install ruff
8local shfmt = { "shfmt" } -- brew install shfmt, pkg install shfmt 8local shfmt = { "shfmt" } -- brew install shfmt, pkg install shfmt
9local stylua = { "stylua" } -- brew install stylua, pkg install stylua 9local stylua = { "stylua" } -- brew install stylua, pkg install stylua
10local xmllint = { "xmllint" } -- xmllint ist Teil von libxml2 (standardmäßig installiert unter MacOS; pkg install libxml2) 10local xmllint = { "xmllint" } -- xmllint ist Teil von libxml2 (standardmäßig installiert unter MacOS; pkg install libxml2)
11local yamlfmt = { "yamlfmt" } -- brew install yamlfmt, pkg install yamlfmt 11local yamlfmt = { "yamlfmt" } -- brew install yamlfmt, pkg install yamlfmt
12 12
13return { 13return {
14 "stevearc/conform.nvim", 14 "stevearc/conform.nvim",
15 event = { "BufReadPre", "BufNewFile" }, 15 event = { "BufReadPre", "BufNewFile" },
16 keys = { 16 keys = {
17 { 17 {
18 "<leader>cf", 18 "<leader>cf",
19 function() 19 function()
20 require("conform").format({ async = true }) 20 require("conform").format({ async = true })
21 end, 21 end,
22 desc = "Format file", 22 desc = "Format file",
23 }, 23 },
24 }, 24 },
25 opts = { 25 opts = {
26 formatters_by_ft = { 26 formatters_by_ft = {
27 awk = gawk, 27 awk = gawk,
28 bash = shfmt, 28 bash = shfmt,
29 c = clang, 29 c = clang,
30 cpp = clang, 30 cpp = clang,
31 html = prettier, 31 html = prettier,
32 javascript = prettier, 32 javascript = prettier,
33 json = jq, 33 json = jq,
34 lua = stylua, 34 lua = stylua,
35 python = ruff, 35 python = ruff,
36 sh = shfmt, 36 sh = shfmt,
37 typescript = prettier, 37 typescript = prettier,
38 xml = xmllint, 38 xml = xmllint,
39 xsd = xmllint, 39 xsd = xmllint,
40 yaml = yamlfmt, 40 yaml = yamlfmt,
41 }, 41 },
42 default_format_opts = { 42 default_format_opts = {
43 lsp_format = "fallback", 43 lsp_format = "fallback",
44 }, 44 },
45 }, 45 },
46} 46}
diff --git a/nvim/lua/plugins/git.lua b/nvim/lua/plugins/git.lua
index ed7bafe..37d5ee3 100644
--- a/nvim/lua/plugins/git.lua
+++ b/nvim/lua/plugins/git.lua
@@ -1,16 +1,16 @@
1return { 1return {
2 { 2 {
3 "lewis6991/gitsigns.nvim", 3 "lewis6991/gitsigns.nvim",
4 event = { "BufReadPre", "BufNewFile" }, 4 event = { "BufReadPre", "BufNewFile" },
5 opts = { 5 opts = {
6 current_line_blame = true, 6 current_line_blame = true,
7 current_line_blame_opts = { 7 current_line_blame_opts = {
8 delay = 250, 8 delay = 250,
9 }, 9 },
10 }, 10 },
11 config = function(_, opts) 11 config = function(_, opts)
12 require("gitsigns").setup(opts) 12 require("gitsigns").setup(opts)
13 require("config.keymaps").gitsigns() 13 require("config.keymaps").gitsigns()
14 end, 14 end,
15 }, 15 },
16} 16}
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
index b301b68..812ed24 100644
--- a/nvim/lua/plugins/lsp.lua
+++ b/nvim/lua/plugins/lsp.lua
@@ -1,124 +1,124 @@
1return { 1return {
2 { 2 {
3 "neovim/nvim-lspconfig", 3 "neovim/nvim-lspconfig",
4 dependencies = { "saghen/blink.cmp" }, 4 dependencies = { "saghen/blink.cmp" },
5 lazy = false, 5 lazy = false,
6 config = function() 6 config = function()
7 local capabilities = require("blink.cmp").get_lsp_capabilities(vim.lsp.protocol.make_client_capabilities()) 7 local capabilities = require("blink.cmp").get_lsp_capabilities(vim.lsp.protocol.make_client_capabilities())
8 8
9 vim.lsp.config.lua_ls = { 9 vim.lsp.config.lua_ls = {
10 capabilities = capabilities, 10 capabilities = capabilities,
11 settings = { 11 settings = {
12 Lua = { 12 Lua = {
13 runtime = { 13 runtime = {
14 version = "LuaJIT", 14 version = "LuaJIT",
15 }, 15 },
16 diagnostics = { 16 diagnostics = {
17 globals = { "vim" }, 17 globals = { "vim" },
18 }, 18 },
19 workspace = { 19 workspace = {
20 checkThirdParty = false, 20 checkThirdParty = false,
21 library = { 21 library = {
22 vim.env.VIMRUNTIME .. "/lua", 22 vim.env.VIMRUNTIME .. "/lua",
23 vim.fn.stdpath("config") .. "/lua", 23 vim.fn.stdpath("config") .. "/lua",
24 }, 24 },
25 }, 25 },
26 telemetry = { 26 telemetry = {
27 enable = false, 27 enable = false,
28 }, 28 },
29 }, 29 },
30 }, 30 },
31 } 31 }
32 32
33 vim.lsp.config.bashls = { 33 vim.lsp.config.bashls = {
34 capabilities = capabilities, 34 capabilities = capabilities,
35 filetypes = { "sh", "bash" }, 35 filetypes = { "sh", "bash" },
36 } 36 }
37 37
38 vim.lsp.config.clangd = { 38 vim.lsp.config.clangd = {
39 capabilities = capabilities, 39 capabilities = capabilities,
40 cmd = { 40 cmd = {
41 "clangd", 41 "clangd",
42 "--background-index", 42 "--background-index",
43 "--clang-tidy", 43 "--clang-tidy",
44 "--completion-style=detailed", 44 "--completion-style=detailed",
45 "--header-insertion=iwyu", 45 "--header-insertion=iwyu",
46 "--header-insertion-decorators", 46 "--header-insertion-decorators",
47 "--pch-storage=memory", 47 "--pch-storage=memory",
48 "--all-scopes-completion", 48 "--all-scopes-completion",
49 "--inlay-hints", 49 "--inlay-hints",
50 "--function-arg-placeholders", 50 "--function-arg-placeholders",
51 "--fallback-style=llvm", 51 "--fallback-style=llvm",
52 }, 52 },
53 } 53 }
54 54
55 vim.lsp.config.prismals = { 55 vim.lsp.config.prismals = {
56 capabilities = capabilities, 56 capabilities = capabilities,
57 } 57 }
58 58
59 vim.lsp.config.jsonls = { 59 vim.lsp.config.jsonls = {
60 capabilities = capabilities, 60 capabilities = capabilities,
61 } 61 }
62 62
63 vim.lsp.config.html = { 63 vim.lsp.config.html = {
64 capabilities = capabilities, 64 capabilities = capabilities,
65 } 65 }
66 66
67 vim.lsp.config.vtsls = { 67 vim.lsp.config.vtsls = {
68 capabilities = capabilities, 68 capabilities = capabilities,
69 settings = { 69 settings = {
70 typescript = { 70 typescript = {
71 updateImportsOnFileMove = { enabled = "always" }, 71 updateImportsOnFileMove = { enabled = "always" },
72 suggest = { 72 suggest = {
73 completeFunctionCalls = true, 73 completeFunctionCalls = true,
74 }, 74 },
75 inlayHints = { 75 inlayHints = {
76 enumMemberValues = { enabled = true }, 76 enumMemberValues = { enabled = true },
77 functionLikeReturnTypes = { enabled = true }, 77 functionLikeReturnTypes = { enabled = true },
78 parameterNames = { enabled = "all" }, 78 parameterNames = { enabled = "all" },
79 parameterTypes = { enabled = true }, 79 parameterTypes = { enabled = true },
80 propertyDeclarationTypes = { enabled = true }, 80 propertyDeclarationTypes = { enabled = true },
81 variableTypes = { enabled = false }, 81 variableTypes = { enabled = false },
82 }, 82 },
83 }, 83 },
84 javascript = { 84 javascript = {
85 suggest = { 85 suggest = {
86 completeFunctionCalls = true, 86 completeFunctionCalls = true,
87 }, 87 },
88 inlayHints = { 88 inlayHints = {
89 parameterNames = { enabled = "all" }, 89 parameterNames = { enabled = "all" },
90 }, 90 },
91 }, 91 },
92 }, 92 },
93 } 93 }
94 94
95 vim.lsp.config.basedpyright = { 95 vim.lsp.config.basedpyright = {
96 capabilities = capabilities, 96 capabilities = capabilities,
97 settings = { 97 settings = {
98 basedpyright = { 98 basedpyright = {
99 analysis = { 99 analysis = {
100 diagnosticMode = "openFilesOnly", 100 diagnosticMode = "openFilesOnly",
101 inlayHints = { 101 inlayHints = {
102 callArgumentNames = true, 102 callArgumentNames = true,
103 }, 103 },
104 typeCheckingMode = "basic", -- oder "strict" für strenger 104 typeCheckingMode = "basic", -- oder "strict" für strenger
105 autoSearchPaths = true, 105 autoSearchPaths = true,
106 useLibraryCodeForTypes = true, 106 useLibraryCodeForTypes = true,
107 }, 107 },
108 }, 108 },
109 }, 109 },
110 } 110 }
111 111
112 vim.lsp.enable({ 112 vim.lsp.enable({
113 "basedpyright", -- npm install -g basedpyright, brew install basedpyright 113 "basedpyright", -- npm install -g basedpyright, brew install basedpyright
114 "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck 114 "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck
115 "clangd", -- pkg install llvm 115 "clangd", -- pkg install llvm
116 "html", -- npm install -g vscode-langservers-extracted 116 "html", -- npm install -g vscode-langservers-extracted
117 "jsonls", -- npm install -g vscode-langservers-extracted 117 "jsonls", -- npm install -g vscode-langservers-extracted
118 "lua_ls", -- pkg install lua-language-server, brew install lua-language-server 118 "lua_ls", -- pkg install lua-language-server, brew install lua-language-server
119 "prismals", -- npm install -g @prisma/language-server 119 "prismals", -- npm install -g @prisma/language-server
120 "vtsls", -- npm install -g @vtsls/language-server 120 "vtsls", -- npm install -g @vtsls/language-server
121 }) 121 })
122 end, 122 end,
123 }, 123 },
124} 124}
diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua
index d7fd279..d4e3fd3 100644
--- a/nvim/lua/plugins/telescope.lua
+++ b/nvim/lua/plugins/telescope.lua
@@ -1,21 +1,21 @@
1return { 1return {
2 { 2 {
3 "nvim-telescope/telescope.nvim", 3 "nvim-telescope/telescope.nvim",
4 dependencies = { 4 dependencies = {
5 "nvim-lua/plenary.nvim", 5 "nvim-lua/plenary.nvim",
6 }, 6 },
7 lazy = true, 7 lazy = true,
8 opts = { 8 opts = {
9 defaults = { 9 defaults = {
10 path_display = { "smart", "truncate" }, 10 path_display = { "smart", "truncate" },
11 }, 11 },
12 }, 12 },
13 keys = { 13 keys = {
14 { "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" }, 14 { "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" },
15 { "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Live grep" }, 15 { "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Live grep" },
16 { "<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Buffers" }, 16 { "<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Buffers" },
17 { "<leader>fh", "<cmd>Telescope help_tags<cr>", desc = "Help tags" }, 17 { "<leader>fh", "<cmd>Telescope help_tags<cr>", desc = "Help tags" },
18 { "<leader>dd", "<cmd>Telescope diagnostics<cr>", desc = "Diagnostics" }, 18 { "<leader>dd", "<cmd>Telescope diagnostics<cr>", desc = "Diagnostics" },
19 }, 19 },
20 }, 20 },
21} 21}
diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua
index faa850a..954e05f 100644
--- a/nvim/lua/plugins/treesitter.lua
+++ b/nvim/lua/plugins/treesitter.lua
@@ -1,22 +1,22 @@
1-- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md 1-- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md
2 2
3-- Stelle sicher, dass die TreeSitter-CLI installiert ist: 3-- Stelle sicher, dass die TreeSitter-CLI installiert ist:
4-- MacOS: `brew install tree-sitter-cli` 4-- MacOS: `brew install tree-sitter-cli`
5-- FreeBSD: `doas pkg install tree-sitter-cli` 5-- FreeBSD: `doas pkg install tree-sitter-cli`
6 6
7return { 7return {
8 { 8 {
9 "nvim-treesitter/nvim-treesitter", 9 "nvim-treesitter/nvim-treesitter",
10 branch = "main", 10 branch = "main",
11 build = ":TSUpdate", 11 build = ":TSUpdate",
12 lazy = false, 12 lazy = false,
13 opts = {}, 13 opts = {},
14 config = function(_, opts) 14 config = function(_, opts)
15 local treesitter = require("nvim-treesitter") 15 local treesitter = require("nvim-treesitter")
16 local langs = require("config.treesitter").languages 16 local langs = require("config.treesitter").languages
17 17
18 treesitter.setup(opts) 18 treesitter.setup(opts)
19 treesitter.install(langs) 19 treesitter.install(langs)
20 end, 20 end,
21 }, 21 },
22} 22}