replaced symbols-outline for outline.nvim
This commit is contained in:
parent
0a4f9cec56
commit
cfd0733f64
|
@ -122,8 +122,6 @@ map('', '<leader>h', ':nohls<CR>', optsWithDesc("clear highlighting"))
|
||||||
--open file browser with leader+t
|
--open file browser with leader+t
|
||||||
map('n', '<leader>t', ':NvimTreeToggle<CR>', optsWithDesc("toggle file browser"))
|
map('n', '<leader>t', ':NvimTreeToggle<CR>', optsWithDesc("toggle file browser"))
|
||||||
--open terminal with ctrl-\
|
--open terminal with ctrl-\
|
||||||
--open symbols-outline with leader+o
|
|
||||||
map('n', '<leader>o', ':SymbolsOutline<CR>', optsWithDesc("toggle LSP symbol outline"))
|
|
||||||
--telescope stuff
|
--telescope stuff
|
||||||
-- setup leader-f prefix in whitch-key
|
-- setup leader-f prefix in whitch-key
|
||||||
wk.register {
|
wk.register {
|
||||||
|
|
|
@ -180,24 +180,43 @@ require('lazy').setup({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'simrat39/symbols-outline.nvim',
|
|
||||||
|
"hedyhli/outline.nvim",
|
||||||
|
lazy = true,
|
||||||
|
cmd = { "Outline", "OutlineOpen" },
|
||||||
|
keys = { -- Example mapping to toggle outline
|
||||||
|
{ "<leader>o", "<cmd>Outline<CR>", desc = "Toggle outline" },
|
||||||
|
},
|
||||||
opts = {
|
opts = {
|
||||||
highlight_hovered_item = true,
|
outline_items = {
|
||||||
show_guides = true,
|
-- Show extra details with the symbols (lsp dependent) as virtual next
|
||||||
auto_preview = false,
|
show_symbol_details = true,
|
||||||
position = 'right',
|
-- Show corresponding line numbers of each symbol on the left column as
|
||||||
relative_width = true,
|
-- virtual text, for quick navigation when not focused on outline.
|
||||||
width = 30,
|
-- Why? See this comment:
|
||||||
auto_close = false,
|
-- https://github.com/simrat39/symbols-outline.nvim/issues/212#issuecomment-1793503563
|
||||||
show_numbers = false,
|
show_symbol_lineno = true,
|
||||||
show_relative_numbers = false,
|
-- Whether to highlight the currently hovered symbol and all direct parents
|
||||||
show_symbol_details = true,
|
highlight_hovered_item = true,
|
||||||
preview_bg_highlight = 'Pmenu',
|
-- Whether to automatically set cursor location in outline to match
|
||||||
autofold_depth = nil,
|
-- location in code when focus is in code. If disabled you can use
|
||||||
auto_unfold_hover = true,
|
-- `:OutlineFollow[!]` from any window or `<C-g>` from outline window to
|
||||||
fold_markers = { '', '' },
|
-- trigger this manually.
|
||||||
wrap = false,
|
auto_set_cursor = true,
|
||||||
}
|
-- Autocmd events to automatically trigger these operations.
|
||||||
|
auto_update_events = {
|
||||||
|
-- Includes both setting of cursor and highlighting of hovered item.
|
||||||
|
-- The above two options are respected.
|
||||||
|
-- This can be triggered manually through `follow_cursor` lua API,
|
||||||
|
-- :OutlineFollow command, or <C-g>.
|
||||||
|
follow = { 'CursorMoved' },
|
||||||
|
-- Re-request symbols from the provider.
|
||||||
|
-- This can be triggered manually through `refresh_outline` lua API, or
|
||||||
|
-- :OutlineRefresh command.
|
||||||
|
items = { 'InsertLeave', 'WinEnter', 'BufEnter', 'BufWinEnter', 'TabEnter', 'BufWritePost' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'stevearc/dressing.nvim',
|
'stevearc/dressing.nvim',
|
||||||
|
|
29
zsh/.zshrc
29
zsh/.zshrc
|
@ -13,15 +13,6 @@
|
||||||
|
|
||||||
|
|
||||||
#set important shell variables
|
#set important shell variables
|
||||||
#fancy way of testing if a command exists
|
|
||||||
ruby --version &>/dev/null && export PATH="$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin/"
|
|
||||||
#test that these nonstandard paths exist before adding to PATH.
|
|
||||||
testPath="$HOME/.local/bin"
|
|
||||||
[ -d "$testPath" ] && export PATH="$PATH:$testPath"
|
|
||||||
export PATH="$PATH:/opt"
|
|
||||||
testPath="$HOME/.cargo/bin"
|
|
||||||
[ -d "$testPath" ] && export PATH="$PATH:$testPath"
|
|
||||||
export PATH="$PATH:/opt"
|
|
||||||
#set default editor and pager.
|
#set default editor and pager.
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export VISUAL=nvim
|
export VISUAL=nvim
|
||||||
|
@ -36,6 +27,13 @@
|
||||||
export TIMEFMT="%J %*U user %*S system %P cpu %*E total"
|
export TIMEFMT="%J %*U user %*S system %P cpu %*E total"
|
||||||
export PIPENV_VENV_IN_PROJECT=true
|
export PIPENV_VENV_IN_PROJECT=true
|
||||||
export POETRY_VIRTUALENVS_IN_PROJECT=true
|
export POETRY_VIRTUALENVS_IN_PROJECT=true
|
||||||
|
#test that these nonstandard paths exist before adding to PATH.
|
||||||
|
testPath="$HOME/.local/bin"
|
||||||
|
[ -d "$testPath" ] && export PATH="$PATH:$testPath"
|
||||||
|
export PATH="$PATH:/opt"
|
||||||
|
testPath="$HOME/.cargo/bin"
|
||||||
|
[ -d "$testPath" ] && export PATH="$PATH:$testPath"
|
||||||
|
export PATH="$PATH:/opt"
|
||||||
|
|
||||||
#prompt
|
#prompt
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
|
@ -184,7 +182,12 @@
|
||||||
testPath="$HOME/.fzf.zsh"
|
testPath="$HOME/.fzf.zsh"
|
||||||
[ -f "$testPath" ] && source $testPath
|
[ -f "$testPath" ] && source $testPath
|
||||||
|
|
||||||
#pyenv
|
#check for existence of pyenv before setting it up.
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
if (($+commands[pyenv])); then
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
eval "$(pyenv init -)"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
eval "$(pyenv init -)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#fancy way of testing if a command exists
|
||||||
|
ruby --version &>/dev/null && export PATH="$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin/"
|
||||||
|
|
Loading…
Reference in a new issue