From c6d9e5b8910b7fe4838a1d8cf3ab1733ebada266 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 26 May 2022 22:09:25 +0200 Subject: [PATCH 1/3] add litee --- lua/my_plugins.lua | 8 ++++++++ lua/setup/my_command_center.lua | 7 +++++++ lua/setup/my_litee.lua | 35 +++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 lua/setup/my_litee.lua diff --git a/lua/my_plugins.lua b/lua/my_plugins.lua index bbe9c72..22160ac 100644 --- a/lua/my_plugins.lua +++ b/lua/my_plugins.lua @@ -190,6 +190,14 @@ return require('packer').startup(function() 'b0o/incline.nvim', config = get_setup('incline') } + use { + 'ldelossa/litee.nvim', + requires = { + 'ldelossa/litee-calltree.nvim', + 'ldelossa/litee-symboltree.nvim' + }, + config = get_setup('my_litee') + } if packer_bootstrap then require('packer').sync() end diff --git a/lua/setup/my_command_center.lua b/lua/setup/my_command_center.lua index 9d8eb91..e2bed7f 100644 --- a/lua/setup/my_command_center.lua +++ b/lua/setup/my_command_center.lua @@ -204,6 +204,13 @@ command_center.add({ description = 'Github open PR in browser', cmd = 'Octo pr browser', }, + { + description = 'Symbols outline', + cmd = 'lua vim.lsp.buf.document_symbol()', + keybindings = { + { 'n', 's', silent_noremap }, + }, + }, }) diff --git a/lua/setup/my_litee.lua b/lua/setup/my_litee.lua new file mode 100644 index 0000000..edee230 --- /dev/null +++ b/lua/setup/my_litee.lua @@ -0,0 +1,35 @@ +-- configure the litee.nvim library +require('litee.lib').setup({ + tree = { + icon_set = "codicons" + }, + panel = { + orientation = "left", + panel_size = 30 + } +}) +-- configure litee-calltree.nvim +require('litee.calltree').setup({ + map_resize_keys = false, + on_open = 'panel' +}) +-- configure litee-symboltree.nvim +require('litee.symboltree').setup({ + map_resize_keys = false, + on_open = 'panel', + keymaps = { + expand = '', + collapse = 'zc', + collapse_all = 'zM', + jump = '', + jump_split = 's', + jump_vsplit = 'v', + jump_tab = 't', + hover = 'i', + details = 'd', + close = 'X', + close_panel_pop_out = '', + help = '?', + hide = 'H', + }, +}) From 5b4878f76d8072366b4c0e738f865836e4b57da8 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 27 May 2022 10:19:03 +0200 Subject: [PATCH 2/3] replace octo with litee gh --- lua/my_plugins.lua | 12 ++---------- lua/setup/my_litee.lua | 3 +++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/lua/my_plugins.lua b/lua/my_plugins.lua index 22160ac..da74d5e 100644 --- a/lua/my_plugins.lua +++ b/lua/my_plugins.lua @@ -177,15 +177,6 @@ return require('packer').startup(function() 'gbprod/yanky.nvim', config = get_setup('yanky') }) - use { - 'pwntester/octo.nvim', - requires = { - 'nvim-lua/plenary.nvim', - 'nvim-telescope/telescope.nvim', - 'kyazdani42/nvim-web-devicons', - }, - config = get_setup('octo') - } use { 'b0o/incline.nvim', config = get_setup('incline') @@ -194,7 +185,8 @@ return require('packer').startup(function() 'ldelossa/litee.nvim', requires = { 'ldelossa/litee-calltree.nvim', - 'ldelossa/litee-symboltree.nvim' + 'ldelossa/litee-symboltree.nvim', + 'ldelossa/gh.nvim' }, config = get_setup('my_litee') } diff --git a/lua/setup/my_litee.lua b/lua/setup/my_litee.lua index edee230..d8be21a 100644 --- a/lua/setup/my_litee.lua +++ b/lua/setup/my_litee.lua @@ -33,3 +33,6 @@ require('litee.symboltree').setup({ hide = 'H', }, }) + +require('litee.gh').setup({}) + From d9f90a1f4b3033edf656f1c75995b6b15dc7d57d Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 27 May 2022 10:19:24 +0200 Subject: [PATCH 3/3] remove stylua because of the lsp serverr --- lua/setup/lspinstall.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/lua/setup/lspinstall.lua b/lua/setup/lspinstall.lua index d56732c..7f04354 100644 --- a/lua/setup/lspinstall.lua +++ b/lua/setup/lspinstall.lua @@ -171,7 +171,6 @@ null_ls.setup({ null_ls.builtins.code_actions.gitsigns, null_ls.builtins.formatting.autopep8, null_ls.builtins.formatting.prettier, - null_ls.builtins.formatting.stylua, null_ls.builtins.diagnostics.flake8, null_ls.builtins.formatting.isort, null_ls.builtins.formatting.cmake_format,