Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 1.35 KB

my-custom-config.md

File metadata and controls

40 lines (37 loc) · 1.35 KB

my custom lua config with Packer.nvim

use { 'jayli/vim-easycomplete', requires = {'SirVer/ultisnips'}}
vim.g.easycomplete_diagnostics_enable = 1
vim.g.easycomplete_signature_enable = 1
vim.g.easycomplete_tabnine_enable = 1
vim.g.easycomplete_tabnine_suggestion = 1
vim.g.easycomplete_cursor_word_hl = 1
vim.g.easycomplete_nerd_font = 1
vim.g.easycomplete_enable = 1
vim.keymap.set('n', 'gr', ':EasyCompleteReference<CR>')
vim.keymap.set('n', 'gd', ':EasyCompleteGotoDefinition<CR>')
vim.keymap.set('n', 'rn', ':EasyCompleteRename<CR>')
vim.keymap.set('n', 'gb', ':BackToOriginalBuffer<CR>')
vim.g.easycomplete_pum_format = {"kind", "abbr", "menu"}

With Lazy.nvim

{
  "jayli/vim-easycomplete",
  dependencies={"SirVer/ultisnips"},
  config = function()
    vim.g.easycomplete_diagnostics_enable = 1
    vim.g.easycomplete_signature_enable = 1
    vim.g.easycomplete_tabnine_enable = 1
    vim.g.easycomplete_tabnine_suggestion = 1
    vim.g.easycomplete_cursor_word_hl = 1
    vim.g.easycomplete_nerd_font = 1
    vim.g.easycomplete_enable = 1
    vim.keymap.set('n', 'gr', ':EasyCompleteReference<CR>')
    vim.keymap.set('n', 'gd', ':EasyCompleteGotoDefinition<CR>')
    vim.keymap.set('n', 'rn', ':EasyCompleteRename<CR>')
    vim.keymap.set('n', 'gb', ':BackToOriginalBuffer<CR>')
    vim.g.easycomplete_pum_format = {"kind", "abbr", "menu"}
  end
}