added a load of nonsense and fixed the flake
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
vim.pack.add({
|
||||
{ src = "https://github.com/neovim/nvim-lspconfig", name = "lspconfig" },
|
||||
{ src = "https://github.com/saghen/blink.cmp", name = "blink" },
|
||||
{ src = "https://github.com/folke/lazydev.nvim", name = "lazydev" },
|
||||
})
|
||||
|
||||
vim.lsp.config("lua_ls", {
|
||||
@@ -41,10 +42,6 @@ vim.lsp.enable({
|
||||
vim.o.pumborder = "rounded"
|
||||
|
||||
require("blink.cmp").setup({
|
||||
-- Snippet configuration
|
||||
-- snippets = {
|
||||
-- preset = "luasnip", -- Tells blink.cmp to use LuaSnip
|
||||
-- },
|
||||
|
||||
fuzzy = { implementation = "lua" },
|
||||
|
||||
@@ -67,11 +64,11 @@ require("blink.cmp").setup({
|
||||
},
|
||||
sources = {
|
||||
default = {
|
||||
-- "lazydev",
|
||||
"lsp", -- (Equivalent to cmp-nvim-lsp)
|
||||
"snippets", -- (Handled by the snippets config, replaces cmp_luasnip source)
|
||||
"buffer", -- (Equivalent to cmp-buffer)
|
||||
"path", -- (Equivalent to cmp-path)
|
||||
-- "cmdline", -- Generally configured separately, but often included by default
|
||||
},
|
||||
providers = {
|
||||
-- lazydev = {
|
||||
@@ -83,3 +80,10 @@ require("blink.cmp").setup({
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "lua",
|
||||
callback = function()
|
||||
require("lazydev").setup()
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user