aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-03-13 11:09:52 +0100
committerThomas Schmucker <ts@its1.de>2026-03-13 11:09:52 +0100
commit9f6461c5b1cb6754b130b30dfe9ba50fd1fcf9cb (patch)
treea1b8232f7bdcfdc4f8e1ea9f83e09f93905a5e63
parenta6acd2dfc29e6e3d2f4dd32803260fc74779d075 (diff)
downloaddotfiles-9f6461c5b1cb6754b130b30dfe9ba50fd1fcf9cb.tar.gz
dotfiles-9f6461c5b1cb6754b130b30dfe9ba50fd1fcf9cb.tar.bz2
dotfiles-9f6461c5b1cb6754b130b30dfe9ba50fd1fcf9cb.zip
Neovim: Autovervollständigung mit blink
-rw-r--r--nvim/lua/plugins/completion.lua46
-rw-r--r--nvim/lua/plugins/lsp.lua16
2 files changed, 61 insertions, 1 deletions
diff --git a/nvim/lua/plugins/completion.lua b/nvim/lua/plugins/completion.lua
new file mode 100644
index 0000000..4912815
--- /dev/null
+++ b/nvim/lua/plugins/completion.lua
@@ -0,0 +1,46 @@
1return {
2 {
3 "saghen/blink.cmp",
4 dependencies = { "rafamadriz/friendly-snippets" },
5 version = "1.*",
6
7 opts = {
8 keymap = { preset = "default" },
9
10 appearance = {
11 use_nvim_cmp_as_default = true,
12 nerd_font_variant = "mono",
13 },
14
15 completion = {
16 documentation = {
17 auto_show = false,
18 window = {
19 border = "rounded",
20 },
21 },
22
23 menu = {
24 border = "rounded",
25 },
26 },
27
28 signature = {
29 enabled = true,
30 window = {
31 border = "rounded",
32 },
33 },
34
35 sources = {
36 default = { "lsp", "path", "snippets", "buffer" },
37 },
38
39 fuzzy = {
40 implementation = "prefer_rust_with_warning",
41 },
42 },
43
44 opts_extend = { "sources.default" },
45 },
46}
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
index 50ec6c1..3d53350 100644
--- a/nvim/lua/plugins/lsp.lua
+++ b/nvim/lua/plugins/lsp.lua
@@ -1,9 +1,10 @@
1return { 1return {
2 { 2 {
3 "neovim/nvim-lspconfig", 3 "neovim/nvim-lspconfig",
4 dependencies = { "saghen/blink.cmp" },
4 lazy = false, 5 lazy = false,
5 config = function() 6 config = function()
6 local capabilities = vim.lsp.protocol.make_client_capabilities() 7 local capabilities = require("blink.cmp").get_lsp_capabilities(vim.lsp.protocol.make_client_capabilities())
7 8
8 vim.lsp.config.lua_ls = { 9 vim.lsp.config.lua_ls = {
9 capabilities = capabilities, 10 capabilities = capabilities,
@@ -36,6 +37,19 @@ return {
36 37
37 vim.lsp.config.clangd = { 38 vim.lsp.config.clangd = {
38 capabilities = capabilities, 39 capabilities = capabilities,
40 cmd = {
41 "clangd",
42 "--background-index",
43 "--clang-tidy",
44 "--completion-style=detailed",
45 "--header-insertion=iwyu",
46 "--header-insertion-decorators",
47 "--pch-storage=memory",
48 "--all-scopes-completion",
49 "--inlay-hints",
50 "--function-arg-placeholders",
51 "--fallback-style=llvm",
52 },
39 } 53 }
40 54
41 vim.lsp.config.prismals = { 55 vim.lsp.config.prismals = {