Add docs for icons (#289)

pull/292/head
Harrison Katz 8 months ago committed by GitHub
parent e5ba624f85
commit 4d6b1b804f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -275,13 +275,14 @@ require'navigator'.setup({
lsp_signature_help = true, -- if you would like to hook ray-x/lsp_signature plugin in navigator lsp_signature_help = true, -- if you would like to hook ray-x/lsp_signature plugin in navigator
-- setup here. if it is nil, navigator will not init signature help -- setup here. if it is nil, navigator will not init signature help
signature_help_cfg = nil, -- if you would like to init ray-x/lsp_signature plugin in navigator, and pass in your own config to signature help signature_help_cfg = nil, -- if you would like to init ray-x/lsp_signature plugin in navigator, and pass in your own config to signature help
icons = { icons = { -- refer to lua/navigator.lua for more icons config
-- requires nerd fonts or nvim-web-devicons
icons = true,
-- Code action -- Code action
code_action_icon = "🏏", -- note: need terminal support, for those not support unicode, might crash code_action_icon = "🏏", -- note: need terminal support, for those not support unicode, might crash
-- Diagnostics -- Diagnostics
diagnostic_head = '🐛', diagnostic_head = '🐛',
diagnostic_head_severity_1 = "🈲", diagnostic_head_severity_1 = "🈲",
-- refer to lua/navigator.lua for more icons setups
}, },
mason = false, -- set to true if you would like use the lsp installed by williamboman/mason mason = false, -- set to true if you would like use the lsp installed by williamboman/mason
lsp = { lsp = {

@ -160,27 +160,35 @@ _NgConfigValues = {
mason = false, -- set to true if you would like use the lsp installed by williamboman/mason mason = false, -- set to true if you would like use the lsp installed by williamboman/mason
mason_disabled_for = {}, -- disable mason for specified lspclients mason_disabled_for = {}, -- disable mason for specified lspclients
icons = { icons = {
-- requires Nerd Font or nvim-web-devicons pre-installed
icons = true, -- set to false to use system default ( if you using a terminal does not have nerd/icon) icons = true, -- set to false to use system default ( if you using a terminal does not have nerd/icon)
-- Code action
-- Code Action (gutter, floating window)
code_action_icon = '🏏', code_action_icon = '🏏',
-- code lens
-- Code Lens (gutter, floating window)
code_lens_action_icon = '👓', code_lens_action_icon = '👓',
-- Diagnostics
diagnostic_head = '🐛', -- Diagnostics (gutter)
diagnostic_head = '🐛', -- prefix for other diagnostic_* icons
diagnostic_err = '📛', diagnostic_err = '📛',
diagnostic_warn = '👎', diagnostic_warn = '👎',
diagnostic_info = [[👩]], diagnostic_info = [[👩]],
diagnostic_hint = [[💁]], diagnostic_hint = [[💁]],
-- Diagnostics (floating window)
diagnostic_head_severity_1 = '🈲', diagnostic_head_severity_1 = '🈲',
diagnostic_head_severity_2 = '☣️', diagnostic_head_severity_2 = '☣️',
diagnostic_head_severity_3 = '👎', diagnostic_head_severity_3 = '👎',
diagnostic_head_description = '👹', diagnostic_head_description = '👹', -- suffix for severities
diagnostic_virtual_text = '🦊', diagnostic_virtual_text = '🦊', -- floating text preview (set to empty to disable)
diagnostic_file = '🚑', diagnostic_file = '🚑', -- icon in floating window, indicates the file contains diagnostics
-- Values
value_changed = '📝', -- Values (floating window)
value_definition = '🐶🍡', -- it is easier to see than 🦕 value_definition = '🐶🍡', -- identifier defined
value_changed = '📝', -- identifier modified
-- Formatting for Side Panel
side_panel = { side_panel = {
section_separator = '󰇜', section_separator = '󰇜',
line_num_left = '', line_num_left = '',
@ -190,21 +198,27 @@ _NgConfigValues = {
bracket_left = '', bracket_left = '',
bracket_right = '', bracket_right = '',
}, },
-- Treesitter -- Treesitter
-- Note: many more node.type or kind may be available
match_kinds = { match_kinds = {
var = '', -- "👹", -- Vampaire var = '', -- variable -- "👹", -- Vampaire
method = 'ƒ ', -- "🍔", -- mac const = '󱀍 ',
['function'] = '󰡱 ', -- "🤣", -- Fun method = 'ƒ ', -- method -- "🍔", -- mac
parameter = '', -- Pi -- function is a keyword so wrap in ['key'] syntax
associated = '🤝', ['function'] = '󰡱 ', -- function -- "🤣", -- Fun
namespace = '🚀', parameter = '', -- param/arg -- Pi
type = '󰉿', parameters = '', -- param/arg -- Pi
field = '🏈', required_parameter = '', -- param/arg -- Pi
module = '📦', associated = '🤝', -- linked/related
flag = '🎏', namespace = '🚀', -- namespace
type = '󰉿', -- type definition
field = '🏈', -- field definition
module = '📦', -- module
flag = '🎏', -- flag
}, },
treesitter_defult = '🌲', treesitter_defult = '🌲', -- default symbol when unknown node.type or kind
doc_symbols = '', doc_symbols = '', -- document
}, },
} }

Loading…
Cancel
Save