Initial LSP setup with formatting and autocompletion
This commit is contained in:
14
lua/completion.lua
Normal file
14
lua/completion.lua
Normal 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)
|
||||
Reference in New Issue
Block a user