Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed May 4, 2024
1 parent f2ceade commit 9ccd256
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ Blazingly fast, minimal lsp auto-completion and snippet plugin for neovim.
-- the default completetopt set by epo
vim.opt.completeopt = "menu,menuone,noselect,popup"

-- default settings
require('epo').setup({
-- fuzzy match
fuzzy = false,
-- increase this value can aviod trigger complete when delete character.
debounce = 50,
-- when completion confrim auto show a signature help floating window.
signature = false,
-- border for lsp signature popup, :h nvim_open_win
signature_border = 'rounded',
-- lsp kind formatting, k is kind string "Field", "Struct", "Keyword" etc.
kind_format = function(k)
return k:lower():sub(1, 1)
end
})
-- use default settings
require('epo').setup()
```

options in setup param with default value

```lua
-- fuzzy match
fuzzy = false,
-- increase this value can aviod trigger complete when delete character.
debounce = 50,
-- when completion confrim auto show a signature help floating window.
signature = false,
-- border for lsp signature popup, :h nvim_open_win
signature_border = 'rounded',
-- lsp kind formatting, k is kind string "Field", "Struct", "Keyword" etc.
kind_format = function(k)
return k:lower():sub(1, 1)
end
```

You may want to pass the capabilities to your lsp
Expand Down
1 change: 1 addition & 0 deletions lua/epo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ local function register_cap()
end

local function setup(opt)
opt = opt or {}
match_fuzzy = opt.fuzzy or false
debounce_time = opt.debounce_time or 50
signature = opt.signature or false
Expand Down

0 comments on commit 9ccd256

Please sign in to comment.