Compare commits
2 Commits
4acae3052a
...
5f052bf9ae
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f052bf9ae | |||
| 5df773756e |
+10
-6
@@ -2,7 +2,7 @@
|
||||
-- noinsert: only insert text when selection confirmed
|
||||
-- noselect: force to select from suggestion
|
||||
-- preview: show more details
|
||||
vim.opt.completeopt = { "menu", "menuone" }
|
||||
vim.opt.completeopt = { "menu", "menuone", "preview" }
|
||||
|
||||
-- shortmess is used to reduce verbocity
|
||||
-- vim.opt.shortmess = vim.opt.shortmess + { c = true }
|
||||
@@ -18,11 +18,17 @@ cmp.setup({
|
||||
|
||||
-- Add borders to the windows
|
||||
view = {
|
||||
entries = "custom",
|
||||
entries = { name = "custom", selection_order = "near_cursor" },
|
||||
},
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
completion = 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
|
||||
@@ -62,7 +68,6 @@ cmp.setup({
|
||||
{ name = "buffer", keyword_length = 2 },
|
||||
{ name = "calc" },
|
||||
{ name = "lua-latex-symbols", option = { cache = true } },
|
||||
{ name = "cmp_tabnine", keyword_length = 20 },
|
||||
-- { name = "fuzzy_buffer", keyword_length = 4 },
|
||||
}),
|
||||
|
||||
@@ -79,7 +84,6 @@ cmp.setup({
|
||||
lualatexsymbols = "",
|
||||
spell = "",
|
||||
fuzzy_buffer = "",
|
||||
cmp_tabnine = "🖳",
|
||||
}
|
||||
item.menu = menu_icon[entry.source.name]
|
||||
return item
|
||||
|
||||
+2
-4
@@ -103,10 +103,8 @@ return {
|
||||
wiki_dirs = {
|
||||
-- neowiki.nvim supports both absolute and relative paths
|
||||
{ name = "Personal", path = "~/.wiki" },
|
||||
{ name = "RiscVar", path = "~/Documents/HSRM/riscvar.wiki" },
|
||||
{ name = "Ada/Spark", path = "~/Documents/Science/ada_spark_wiki" },
|
||||
{ name = "FPGA Book", path = "~/Documents/Science/FPGA_Design" },
|
||||
{ name = "Spark-Shell", path = "~/Documents/Programming/spark/spark_shell/spark_shell.wiki" },
|
||||
{ name = "Ada/Spark", path = "~/science/ada_spark_wiki" },
|
||||
{ name = "FPGA Book", path = "~/science/FPGA_Design" },
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
|
||||
Reference in New Issue
Block a user