diff options
author | Squibid <me@zacharyscheiman.com> | 2023-05-14 15:31:04 +0000 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-05-14 15:31:04 +0000 |
commit | 42f073a1d03063175bbcffb728efabac994cb32c (patch) | |
tree | 9ab9ac32e86c931e8f53c7b7763b56c31bf7e16a /lua/core | |
parent | a41ea5f1cab38ec37f7628d41a5f637c84ec24af (diff) | |
download | nvim-42f073a1d03063175bbcffb728efabac994cb32c.tar.gz nvim-42f073a1d03063175bbcffb728efabac994cb32c.tar.bz2 nvim-42f073a1d03063175bbcffb728efabac994cb32c.zip |
remove config menu from binds.lua
Diffstat (limited to 'lua/core')
-rw-r--r-- | lua/core/binds.lua | 35 |
1 files changed, 0 insertions, 35 deletions
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', '<C-m>', configmenu) - -- plugin binds --------------------------------------------------------------- -- treesj local treesj = require('treesj') |