From 42f073a1d03063175bbcffb728efabac994cb32c Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 14 May 2023 15:31:04 +0000 Subject: remove config menu from binds.lua --- lua/core/binds.lua | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'lua') diff --git a/lua/core/binds.lua b/lua/core/binds.lua index e7be853..7a7fce0 100644 --- a/lua/core/binds.lua +++ b/lua/core/binds.lua @@ -58,41 +58,6 @@ a.nvim_create_autocmd('FileType', { end }) --- custom menu for simpler neovim managment ----------------------------------- -local function configmenu() - local list = {} - local function add(name, plug) - if not plug then - table.insert(list, name) - return - end - if package.loaded[plug] then - table.insert(list, name) - end - end - - add('edit config') - add('update plugins', 'dep') - - vim.ui.select(list, { prompt = 'Config Menu' }, - function(choice) - if choice == 'edit config' then - vim.cmd'e $XDG_CONFIG_HOME/nvim/init.lua' - end - if choice == 'update plugins' then - require('dep').sync() - if package.loaded['nvim-treesitter'] then - vim.cmd'TSUpdate' - end - if package.loaded['mason'] then - require('mason.api.command').MasonUpdate() - end - end - end) -end - -map('n', '', configmenu) - -- plugin binds --------------------------------------------------------------- -- treesj local treesj = require('treesj') -- cgit v1.2.1