Better code completion
This commit is contained in:
parent
ffa077a90a
commit
81c80db91f
15
init.lua
15
init.lua
|
@ -170,4 +170,19 @@ if vim.g.neovide then
|
||||||
vim.g.neovide_scale_factor = 1.0
|
vim.g.neovide_scale_factor = 1.0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local tabnine = require("cmp_tabnine.config")
|
||||||
|
|
||||||
|
tabnine:setup({
|
||||||
|
max_lines = 50,
|
||||||
|
max_num_results = 5,
|
||||||
|
sort = true,
|
||||||
|
run_on_every_keystroke = true,
|
||||||
|
snippet_placeholder = "..",
|
||||||
|
ignored_file_types = {
|
||||||
|
html = true,
|
||||||
|
css = true,
|
||||||
|
},
|
||||||
|
show_prediction_strength = false,
|
||||||
|
})
|
||||||
|
|
||||||
vim.cmd("source ~/.config/nvim/viml/legacyconf.vim")
|
vim.cmd("source ~/.config/nvim/viml/legacyconf.vim")
|
||||||
|
|
|
@ -47,15 +47,16 @@ cmp.setup({
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "ultisnips", keyword_length = 1 },
|
{ name = "ultisnips", keyword_length = 1 },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
{ name = "nvim_lsp", keyword_length = 1 },
|
{ name = "nvim_lsp", keyword_length = 2 },
|
||||||
{ name = "nvim_lsp_signature_help" },
|
{ name = "nvim_lsp_signature_help" },
|
||||||
{ name = "nvim_lua", keyword_length = 1 },
|
{ name = "nvim_lua", keyword_length = 4 },
|
||||||
{ name = "buffer", keyword_length = 2 },
|
{ name = "buffer", keyword_length = 6 },
|
||||||
{ name = "calc" },
|
{ name = "calc" },
|
||||||
{ name = "lua-latex-symbols", option = { cache = true } },
|
{ name = "lua-latex-symbols", option = { cache = true } },
|
||||||
{ name = "doxygen" },
|
{ name = "doxygen" },
|
||||||
{ name = "cmp_tabnine" },
|
{ name = "cmp_tabnine", keyword_length = 5 },
|
||||||
{ name = "spell", option = { keep_all_entries = false }, keyword_length = 3 },
|
{ name = "spell", option = { keep_all_entries = false }, keyword_length = 2 },
|
||||||
|
{ name = "fuzzy_buffer", keyword_length = 3 },
|
||||||
}),
|
}),
|
||||||
|
|
||||||
-- add formatting of the different sources
|
-- add formatting of the different sources
|
||||||
|
@ -65,10 +66,13 @@ cmp.setup({
|
||||||
local menu_icon = {
|
local menu_icon = {
|
||||||
nvim_lsp = "λ",
|
nvim_lsp = "λ",
|
||||||
ultisnips = "⋗",
|
ultisnips = "⋗",
|
||||||
buffer = "b",
|
path = "🌐",
|
||||||
path = "p",
|
|
||||||
calc = "Σ",
|
calc = "Σ",
|
||||||
lualatexsymbols = "L",
|
lualatexsymbols = "𝕋",
|
||||||
|
cmp_tabnine = "⍟",
|
||||||
|
spell = "📚",
|
||||||
|
doxygen = "O₂",
|
||||||
|
fuzzy_buffer = "📄",
|
||||||
}
|
}
|
||||||
item.menu = menu_icon[entry.source.name]
|
item.menu = menu_icon[entry.source.name]
|
||||||
return item
|
return item
|
||||||
|
|
|
@ -76,4 +76,6 @@ return require("packer").startup(function(use)
|
||||||
})
|
})
|
||||||
use({ "tzachar/cmp-tabnine", run = "./install.sh", requires = "hrsh7th/nvim-cmp" })
|
use({ "tzachar/cmp-tabnine", run = "./install.sh", requires = "hrsh7th/nvim-cmp" })
|
||||||
use("f3fora/cmp-spell")
|
use("f3fora/cmp-spell")
|
||||||
|
use({ "nvim-telescope/telescope-fzf-native.nvim", run = "make" })
|
||||||
|
use({ "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } })
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -242,3 +242,27 @@ Scheduling
|
||||||
Print
|
Print
|
||||||
ISC
|
ISC
|
||||||
Sewobe
|
Sewobe
|
||||||
|
Timetable
|
||||||
|
Round
|
||||||
|
Scheduler
|
||||||
|
Traps
|
||||||
|
IVT
|
||||||
|
pid
|
||||||
|
int
|
||||||
|
status
|
||||||
|
Kindprozesses
|
||||||
|
ID
|
||||||
|
wait
|
||||||
|
exit
|
||||||
|
Thread
|
||||||
|
pthread
|
||||||
|
POSIX
|
||||||
|
pthreads
|
||||||
|
opts
|
||||||
|
waitpid
|
||||||
|
IRT
|
||||||
|
Dispatch
|
||||||
|
Latency
|
||||||
|
PDLT
|
||||||
|
SWT
|
||||||
|
Performancegewinn
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue