|
|
@ -181,13 +181,16 @@ Nondefault configuration example:
|
|
|
|
```lua
|
|
|
|
```lua
|
|
|
|
|
|
|
|
|
|
|
|
require.'navigator'.setup({
|
|
|
|
require.'navigator'.setup({
|
|
|
|
debug = false, -- log output not implemented
|
|
|
|
debug = false, -- log output
|
|
|
|
code_action_icon = " ",
|
|
|
|
code_action_icon = " ",
|
|
|
|
width = 0.75, -- number of cols for the floating window
|
|
|
|
width = 0.75, -- max width ratio (number of cols for the floating window) / (window width)
|
|
|
|
height = 0.3, -- preview window size, 0.3 by default
|
|
|
|
height = 0.3, -- max list window height, 0.3 by default
|
|
|
|
|
|
|
|
preview_height = 0.35, -- max height of preview windows
|
|
|
|
border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"}, -- border style, can be one of 'none', 'single', 'double',
|
|
|
|
border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"}, -- border style, can be one of 'none', 'single', 'double',
|
|
|
|
-- 'shadow', or a list of chars which defines the border
|
|
|
|
-- 'shadow', or a list of chars which defines the border
|
|
|
|
on_attach = nil,
|
|
|
|
on_attach = function(client, bufnr)
|
|
|
|
|
|
|
|
-- your hook
|
|
|
|
|
|
|
|
end,
|
|
|
|
-- put a on_attach of your own here, e.g
|
|
|
|
-- put a on_attach of your own here, e.g
|
|
|
|
-- function(client, bufnr)
|
|
|
|
-- function(client, bufnr)
|
|
|
|
-- -- the on_attach will be called at end of navigator on_attach
|
|
|
|
-- -- the on_attach will be called at end of navigator on_attach
|
|
|
@ -205,7 +208,7 @@ require.'navigator'.setup({
|
|
|
|
diagnostic_head = '🐛',
|
|
|
|
diagnostic_head = '🐛',
|
|
|
|
diagnostic_head_severity_1 = "🈲",
|
|
|
|
diagnostic_head_severity_1 = "🈲",
|
|
|
|
-- refer to lua/navigator.lua for more icons setups
|
|
|
|
-- refer to lua/navigator.lua for more icons setups
|
|
|
|
}
|
|
|
|
},
|
|
|
|
lsp = {
|
|
|
|
lsp = {
|
|
|
|
format_on_save = true, -- set to false to disasble lsp code format on save (if you are using prettier/efm/formater etc)
|
|
|
|
format_on_save = true, -- set to false to disasble lsp code format on save (if you are using prettier/efm/formater etc)
|
|
|
|
tsserver = {
|
|
|
|
tsserver = {
|
|
|
|