dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: setup nvim-cmp autocomplete
00fd0a422cd6e2d0faf8b39f31c67a82c5d6cc14
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
Browse filesCompare with HEAD
Changed files (4)
neovim/lua/general_editor_settings.lua
Modified 82 82 vim.opt.undodir
= data_path
.. '/undo/' 84 84 vim.opt.confirm
= true 85 - vim.opt.completeopt
= {
'menuone',
'noinsert',
'noselect' }
85 + vim.opt.completeopt
= {
'menu',
'menuone',
'noselect' }
87 87 vim.opt.shortmess:append
'c' neovim/lua/lsp.lua
Modified 19 19 [
'<C-d>'] = cmp.mapping(cmp.mapping.scroll_docs(
-4), {
'i',
'c' }),
20 20 [
'<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(
4), {
'i',
'c' }),
21 - [
'<C-Space>'] = cmp.mapping(cmp.mapping.complete(), {
'i',
'c' }),
21 + [
'<C-n>'] = cmp.mapping(cmp.mapping.complete(), {
'i',
'c' }),
22 22 [
'<C-y>'] = cmp.config.disable,
23 23 [
'<C-e>'] = cmp.mapping {
24 24 i = cmp.mapping.abort(),
90 90 local integrate_into_neovim = function(client, buffer_number)
91 91 print(
'LSP ' .. client.name
.. ' [' .. client.id
.. '] ' .. 'started.')
94 94 vim.lsp.handlers[
'textDocument/publishDiagnostics']
= vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
97 97 virtual_text =
false,
98 + update_in_insert =
false,
99 + severity_sort =
true,
104 101 local keys
= require 'which-key' 105 102 keys.register(keybinds_in_lsp_context, {
neovim/lua/plugins.lua
Modified 158 + local cheatsheet
= require'cheatsheet'.print
160 + cheatsheet
[[ALT+. => Goto previous usage]] 161 + cheatsheet
[[ALT+, => Goto next usage]] 162 + cheatsheet
[[CTRL+UP => Expand selection]] 163 + cheatsheet
[[CTRL+DOWN => Decrease selection]] 245 252 'RishabhRD/nvim-lsputils',
247 254 'simrat39/symbols-outline.nvim',
wezterm/wezterm.lua
Modified 1 1 local wez
= require'wezterm' 3 - font = wez.font
'BlexMono NF',
3 + font = wez.font
'JetBrainsMono Nerd Font',
5 5 color_scheme =
'nord',
6 6 default_prog = {
'nu'},
7 7 window_decorations =
'RESIZE',