From 1d1850fa8bf8c4ae099eb01575065574be05f723 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 Oct 2021 12:26:56 +0300 Subject: nvim: tagbar -> vista --- .config/nvim/lua/mappings.lua | 3 +++ .config/nvim/lua/plugin_settings.lua | 4 ++++ .config/nvim/lua/plugins.lua | 10 +++++----- 3 files changed, 12 insertions(+), 5 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index de661e3..a7827d4 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua @@ -155,4 +155,7 @@ map('n', 'fg', "lua require('telescope.builtin').live_grep()") map('n', 'fb', "lua require('telescope.builtin').buffers()") map('n', 'fh', "lua require('telescope.builtin').help_tags()") +map('n', '', ":Vista focus") +map('n', '', ":Vista finder") + -- }}} plug mappings -- diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 3676c4b..f5caac6 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -311,6 +311,10 @@ end -- }}} nvim-lsp -- +-- vista {{{ -- +g.vista_icon_indent = {"╰ ", "│ "} +-- }}} vista -- + g["float_preview#docked"] = 0 -- highlight on yank diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 35750e9..7395895 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -53,7 +53,6 @@ return require('packer').startup(function() -- completion preview of floating window use 'ncm2/float-preview.nvim' - -- language packs use "nathom/filetype.nvim" -- i3 config filetype @@ -69,8 +68,9 @@ return require('packer').startup(function() -- https://github.com/lambdalisue/fern.vim/issues/120 use 'antoinemadec/FixCursorHold.nvim' - -- displays tags ordered by scope - use 'majutsushi/tagbar' + -- viewer & finder for lsp symbols and tags + use 'liuchengxu/vista.vim' + -- undo tree use { 'mbbill/undotree', @@ -80,8 +80,8 @@ return require('packer').startup(function() -- highlight colors use { 'norcalli/nvim-colorizer.lua', - ft = {'css', 'javascript', 'vim', 'html'}, - config = [[require('colorizer').setup {'css', 'javascript', 'vim', 'html'}]], + ft = {'css', 'javascript', 'vim', 'html', 'dosini'}, + config = [[require('colorizer').setup {'css', 'javascript', 'vim', 'html', 'dosini'}]], } -- cutlass suite, x, d, \ys etc. -- cgit v1.2.3-70-g09d2