Skip to content

Commit

Permalink
bugfix for add more readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Apr 12, 2024
1 parent dcad32a commit 5545fcb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion custom-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,20 @@ vim.g.easycomplete_kind_icons = {
vim.g.easycomplete_pum_format = {"kind", "abbr", "menu"}

-- Define highlight group for fuzzy matched charactors.
-- All customizable highlight name:
-- EasyPmenu
-- EasyPmenuKind
-- EasyPmenuExtra
-- EasyFunction
-- EasySnippet
-- EasyTabNine
-- EasySnippets
vim.cmd[[
hi EasyFuzzyMatch guifg=lightblue
]]

-- Enable Tabnine, default is on, install tabnine lsp via `:InstallLspServer tn`
vim.g.easycomplete_tabnine_enable
vim.g.easycomplete_tabnine_enable = 1
-- Enable Tabnine suggestion, default is on
vim.g.easycomplete_tabnine_suggestion = 1

Expand Down
4 changes: 4 additions & 0 deletions my-custom-config.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
## my custom config with lua

```lua
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"}
```

0 comments on commit 5545fcb

Please sign in to comment.