mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nvim): refactored config structure
This commit is contained in:
parent
76a64639a2
commit
7bbf5ee03b
29 changed files with 23 additions and 81 deletions
65
.config/nvim/after/plugin/symbols-outline.lua
Normal file
65
.config/nvim/after/plugin/symbols-outline.lua
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
require "symbols-outline".setup({
|
||||
highlight_hovered_item = true,
|
||||
show_guides = true,
|
||||
auto_preview = false,
|
||||
position = 'left',
|
||||
relative_width = true,
|
||||
width = 25,
|
||||
auto_close = false,
|
||||
show_numbers = false,
|
||||
show_relative_numbers = false,
|
||||
show_symbol_details = true,
|
||||
preview_bg_highlight = 'Pmenu',
|
||||
autofold_depth = nil,
|
||||
auto_unfold_hover = true,
|
||||
fold_markers = { '', '' },
|
||||
wrap = false,
|
||||
keymaps = { -- These keymaps can be a string or a table for multiple keys
|
||||
close = { "<Esc>", "q" },
|
||||
goto_location = "<Cr>",
|
||||
focus_location = "o",
|
||||
hover_symbol = "<C-space>",
|
||||
toggle_preview = "K",
|
||||
rename_symbol = "<leader>rn",
|
||||
code_actions = "a",
|
||||
fold = "h",
|
||||
unfold = "l",
|
||||
fold_all = "W",
|
||||
unfold_all = "E",
|
||||
fold_reset = "R",
|
||||
},
|
||||
lsp_blacklist = {},
|
||||
symbol_blacklist = {},
|
||||
-- symbols = {
|
||||
-- File = { icon = "", hl = "@text.uri" },
|
||||
-- Module = { icon = "", hl = "@namespace" },
|
||||
-- Namespace = { icon = "", hl = "@namespace" },
|
||||
-- Package = { icon = "", hl = "@namespace" },
|
||||
-- Class = { icon = "𝓒", hl = "@type" },
|
||||
-- Method = { icon = "ƒ", hl = "@method" },
|
||||
-- Property = { icon = "", hl = "@method" },
|
||||
-- Field = { icon = "", hl = "@field" },
|
||||
-- Constructor = { icon = "", hl = "@constructor" },
|
||||
-- Enum = { icon = "ℰ", hl = "@type" },
|
||||
-- Interface = { icon = "ﰮ", hl = "@type" },
|
||||
-- Function = { icon = "", hl = "@function" },
|
||||
-- Variable = { icon = "", hl = "@constant" },
|
||||
-- Constant = { icon = "", hl = "@constant" },
|
||||
-- String = { icon = "𝓐", hl = "@string" },
|
||||
-- Number = { icon = "#", hl = "@number" },
|
||||
-- Boolean = { icon = "⊨", hl = "@boolean" },
|
||||
-- Array = { icon = "", hl = "@constant" },
|
||||
-- Object = { icon = "⦿", hl = "@type" },
|
||||
-- Key = { icon = "🔐", hl = "@type" },
|
||||
-- Null = { icon = "NULL", hl = "@type" },
|
||||
-- EnumMember = { icon = "", hl = "@field" },
|
||||
-- Struct = { icon = "𝓢", hl = "@type" },
|
||||
-- Event = { icon = "🗲", hl = "@type" },
|
||||
-- Operator = { icon = "+", hl = "@operator" },
|
||||
-- TypeParameter = { icon = "𝙏", hl = "@parameter" },
|
||||
-- Component = { icon = "", hl = "@function" },
|
||||
-- Fragment = { icon = "", hl = "@constant" },
|
||||
-- },
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<leader><leader>', function() vim.cmd("SymbolsOutline") end, { desc = "Open symbols outline" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue