Compare commits

2 Commits

Author SHA1 Message Date
Nina Chlóe Kassandra Reiß 5f052bf9ae Make menu look nicer
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 2m45s
2026-06-18 12:20:25 +02:00
Nina Chlóe Kassandra Reiß 5df773756e Purge TabNine 2026-06-18 12:07:14 +02:00
2 changed files with 12 additions and 10 deletions
+10 -6
View File
@@ -2,7 +2,7 @@
-- noinsert: only insert text when selection confirmed -- noinsert: only insert text when selection confirmed
-- noselect: force to select from suggestion -- noselect: force to select from suggestion
-- preview: show more details -- preview: show more details
vim.opt.completeopt = { "menu", "menuone" } vim.opt.completeopt = { "menu", "menuone", "preview" }
-- shortmess is used to reduce verbocity -- shortmess is used to reduce verbocity
-- vim.opt.shortmess = vim.opt.shortmess + { c = true } -- vim.opt.shortmess = vim.opt.shortmess + { c = true }
@@ -18,11 +18,17 @@ cmp.setup({
-- Add borders to the windows -- Add borders to the windows
view = { view = {
entries = "custom", entries = { name = "custom", selection_order = "near_cursor" },
}, },
window = { window = {
completion = cmp.config.window.bordered(), completion = cmp.config.window.bordered({
documentation = cmp.config.window.bordered(), border = "rounded",
winhighlight = "Normal:CmpPmenu,FloatBorder:CmpBorder,CursorLine:CmpSel,Search:None",
}),
documentation = cmp.config.window.bordered({
border = "rounded",
winhighlight = "Normal:CmpDoc,FloatBorder:CmpBorderDoc,CursorLine:CmpSel,Search:None",
}),
}, },
-- experimental settings -- experimental settings
@@ -62,7 +68,6 @@ cmp.setup({
{ name = "buffer", keyword_length = 2 }, { name = "buffer", keyword_length = 2 },
{ name = "calc" }, { name = "calc" },
{ name = "lua-latex-symbols", option = { cache = true } }, { name = "lua-latex-symbols", option = { cache = true } },
{ name = "cmp_tabnine", keyword_length = 20 },
-- { name = "fuzzy_buffer", keyword_length = 4 }, -- { name = "fuzzy_buffer", keyword_length = 4 },
}), }),
@@ -79,7 +84,6 @@ cmp.setup({
lualatexsymbols = "󰿈", lualatexsymbols = "󰿈",
spell = "󰘝", spell = "󰘝",
fuzzy_buffer = "", fuzzy_buffer = "",
cmp_tabnine = "🖳",
} }
item.menu = menu_icon[entry.source.name] item.menu = menu_icon[entry.source.name]
return item return item
+2 -4
View File
@@ -103,10 +103,8 @@ return {
wiki_dirs = { wiki_dirs = {
-- neowiki.nvim supports both absolute and relative paths -- neowiki.nvim supports both absolute and relative paths
{ name = "Personal", path = "~/.wiki" }, { name = "Personal", path = "~/.wiki" },
{ name = "RiscVar", path = "~/Documents/HSRM/riscvar.wiki" }, { name = "Ada/Spark", path = "~/science/ada_spark_wiki" },
{ name = "Ada/Spark", path = "~/Documents/Science/ada_spark_wiki" }, { name = "FPGA Book", path = "~/science/FPGA_Design" },
{ name = "FPGA Book", path = "~/Documents/Science/FPGA_Design" },
{ name = "Spark-Shell", path = "~/Documents/Programming/spark/spark_shell/spark_shell.wiki" },
}, },
}, },
keys = { keys = {