Change some defaults and the completion window looks
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 30s Details

This commit is contained in:
Yannick Reiß 2025-02-03 15:00:49 +01:00
parent 443a0cb897
commit c8be7d19a7
2 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,9 @@ cmp.setup({
},
-- Add borders to the windows
view = {
entries = "custom",
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
@ -105,6 +108,9 @@ cmp.setup.cmdline({ "/", "?" }, {
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(":", {
view = {
entries = { name = "wildmenu", separator = ":" },
},
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },

View File

@ -16,6 +16,7 @@ vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.relativenumber = true
vim.g.mapleader = ","
vim.cmd("set clipboard+=unnamedplus")
vim.cmd("autocmd! CursorHold,CursorHoldI *.md write")
@ -36,7 +37,7 @@ vim.cmd("colorscheme slate")
vim.keymap.set("n", "<M-+>", ":colo tokyonight-day<CR>")
vim.keymap.set("n", "<M-->", ":colo tokyonight-night<CR>")
vim.opt.mouse = ""
-- vim.opt.mouse = ""
-- set copy mode
vim.keymap.set("n", "<leader>ll", ":set nonumber<cr>")