From 9e694c03721af13a31aedbfc365203cf66b370b4 Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 26 Jun 2023 11:35:24 -0400 Subject: add plugin configs & mess with the binds --- lua/core/binds.lua | 44 ++++++++++++++++++-------------------------- lua/core/highlight.lua | 3 +++ 2 files changed, 21 insertions(+), 26 deletions(-) (limited to 'lua/core') diff --git a/lua/core/binds.lua b/lua/core/binds.lua index 66a2af5..0783615 100644 --- a/lua/core/binds.lua +++ b/lua/core/binds.lua @@ -69,43 +69,35 @@ map('n', 'gi', 'Glance implementations') local treesj = require('treesj') -- treesj map('n', 'j', treesj.toggle) --- telescope -local telebuilt = require('telescope.builtin') +local telebuilt = require('telescope.builtin') -- telescope map('n', 'sf', telebuilt.find_files) map('n', 'sg', telebuilt.git_files) map('n', 'sp', function() - telebuilt.grep_string({ search = vim.fn.input('Find string in project > ') }); + telebuilt.grep_string({ search = vim.fn.input('Find string in project > ') }) end) map('n', 'so', telebuilt.oldfiles) --- intellitab -local intellitab = require('intellitab') +local intellitab = require('intellitab') -- intellitab map('n', '', intellitab.indent) --- undo tree -map('n', 'u', 'UndotreeToggle') +map('n', 'u', 'UndotreeToggle') -- undo tree +map('n', 'f', 'SFMToggle') -- sfm +map('n', 'b', 'JABSOpen') -- switch between previous buffers +map('n', 'tt', 'TroubleToggle') -- trouble (lsp error view) +map('n', 'tc', 'TodoTrouble') -- todo trouble +map('n', '', 'IconPickerYank') -- icon picker --- sfm -map('n', 'f', 'SFMToggle') - --- dap ui -local dapui = require('dapui') +local dapui = require('dapui') -- dap ui map('n', 'd', dapui.toggle) --- switch between previous buffers -map('n', 'b', 'JABSOpen') - --- resizing buffers (toggleable) -local smartsplits = require('smart-splits') +local smartsplits = require('smart-splits') -- resizing buffers (toggleable) map('n', 'r', smartsplits.start_resize_mode) --- trouble (lsp error view) -map('n', 't', 'TroubleToggle') - --- icon picker -map('n', '', 'IconPickerYank') +-- toggle term (don't use leader key in these binds) +map({'n', 't'}, '', 'ToggleTerm direction=float') +map({'n', 't'}, '', 'lua _glow()') --- toggle term -map('t', '', '') -- make work in terminals -map({'n', 't'}, '', 'ToggleTerm size=20') -map({'n', 't'}, 'gl', 'lua _glow()') +-- true zen +map('n', 'zf', 'lua require("true-zen.focus").toggle()') +map('n', 'zm', 'lua require("true-zen.minimalist").toggle()') +map('n', 'za', 'lua require("true-zen.ataraxis").toggle()') diff --git a/lua/core/highlight.lua b/lua/core/highlight.lua index 4cd4d55..d1f09db 100644 --- a/lua/core/highlight.lua +++ b/lua/core/highlight.lua @@ -41,3 +41,6 @@ highlight('AlphaHeader', { fg = c.blue }) -- fidget highlight('FidgetTask', { fg = c.fg }) + +-- quick fix sign +highlight('LightBulbSignTxthl', {fg = c.bright_magenta}) -- cgit v1.2.1