Initial LSP setup with formatting and autocompletion

This commit is contained in:
2026-06-01 12:46:46 +04:00
commit fd3267ca21
13 changed files with 263 additions and 0 deletions

14
lua/completion.lua Normal file
View File

@@ -0,0 +1,14 @@
---@type blink.cmp.API
local cmp = require("blink.cmp")
cmp.build():pwait()
---@type blink.cmp.Config
local cmp_options = {
keymap = { preset = "default" },
completion = { menu = { auto_show = true }, documentation = { auto_show = true } },
sources = { default = { "lsp", "path", "snippets", "buffer" } },
fuzzy = { implementation = "rust" },
}
cmp.setup(cmp_options)