diff --git a/init.lua b/init.lua index a9adab0..8f239de 100644 --- a/init.lua +++ b/init.lua @@ -10,7 +10,7 @@ require("config.autocmd") require("config.binds") -- Colorcheme -vim.cmd.colorscheme("catppuccin") +vim.cmd.colorscheme("catppuccin-nvim") -- Line numbers vim.opt.cursorline = true diff --git a/lua/plugins/completion/lspconfig.lua b/lua/plugins/completion/lspconfig.lua index 5beb2dd..0207f02 100644 --- a/lua/plugins/completion/lspconfig.lua +++ b/lua/plugins/completion/lspconfig.lua @@ -57,9 +57,15 @@ vim.lsp.enable({ vim.o.winborder = "rounded" +vim.api.nvim_set_hl(0, "BlinkCmpMenuBorder", { fg = "#89b4fa" }) + require("blink.cmp").build():pwait() require("blink.cmp").setup({ + fuzzy = { implementation = "rust" }, + appearance = { use_nvim_cmp_as_default = true }, + + keymap = { preset = "default" }, signature = { enabled = false, @@ -86,10 +92,6 @@ require("blink.cmp").setup({ }, }, - -- Keymaps - keymap = { - [""] = { "select_next", "snippet_forward", "fallback" }, - }, sources = { default = { "lsp", -- (Equivalent to cmp-nvim-lsp) @@ -97,14 +99,6 @@ require("blink.cmp").setup({ "buffer", -- (Equivalent to cmp-buffer) "path", -- (Equivalent to cmp-path) }, - providers = { - -- lazydev = { - -- name = "LazyDev", - -- module = "lazydev.integrations.blink", - -- -- make lazydev completions top priority (see `:h blink.cmp`) - -- score_offset = 100, - -- }, - }, }, }) diff --git a/lua/plugins/ui/catppuccin.lua b/lua/plugins/ui/catppuccin.lua index 2ac2449..6affe3f 100644 --- a/lua/plugins/ui/catppuccin.lua +++ b/lua/plugins/ui/catppuccin.lua @@ -4,21 +4,22 @@ vim.pack.add({ }) require("catppuccin").setup({ + flavour = "mocha", transparent_background = true, -- disables setting the background color. float = { transparent = true, -- enable transparent floating windows solid = true, -- use solid styling for floating windows, see |winborder| }, + show_end_of_buffer = true, -- shows the '~' characters after the end of buffers + term_colors = false, auto_integrations = true, integrations = { + cmp = true, blink_cmp = { style = "bordered", }, }, - show_end_of_buffer = true, -- shows the '~' characters after the end of buffers - term_colors = true, }) - require("vimade").setup({ recipe = { "minimalist", { animate = true } }, fadelevel = 0.6,