issue #177 add the cfg of codelens in the readme

pull/179/head
0x7a7a 2 years ago
parent 9ceeb41b6f
commit c79051c93b

@ -263,6 +263,7 @@ require'navigator'.setup({
lsp_installer = false, -- set to true if you would like use the lsp installed by williamboman/nvim-lsp-installer
lsp = {
code_action = {enable = true, sign = true, sign_priority = 40, virtual_text = true},
code_lens = true,
code_lens_action = {enable = true, sign = true, sign_priority = 40, virtual_text = true},
format_on_save = true, -- set to false to disable lsp code format on save (if you are using prettier/efm/formater etc)
disable_format_cap = {"sqls", "sumneko_lua", "gopls"}, -- a list of lsp disable format capacity (e.g. if you using efm or vim-codeformat etc), empty {} by default
@ -549,7 +550,6 @@ Use lsp_installer configs
You can delegate the lsp server setup to lsp_installer with `server:setup{opts}`
Here is an example [init_lsp_installer.lua](https://github.com/ray-x/navigator.lua/blob/master/playground/init_lsp_installer.lua)
## Usage
Please refer to lua/navigator/lspclient/mapping.lua on key mappings. Should be able to work out-of-box.

Loading…
Cancel
Save