summaryrefslogtreecommitdiffstats
path: root/lua/core
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-06-26 11:35:24 -0400
committerSquibid <me@zacharyscheiman.com>2023-06-26 11:35:24 -0400
commit9e694c03721af13a31aedbfc365203cf66b370b4 (patch)
tree898c136e609a069b7342f5b438b8e85838a8bf7b /lua/core
parentd968ff639be3b6ecddb6ae224f3804f4eea566ba (diff)
downloadnvim-9e694c03721af13a31aedbfc365203cf66b370b4.tar.gz
nvim-9e694c03721af13a31aedbfc365203cf66b370b4.tar.bz2
nvim-9e694c03721af13a31aedbfc365203cf66b370b4.zip
add plugin configs & mess with the binds
Diffstat (limited to '')
-rw-r--r--lua/core/binds.lua44
-rw-r--r--lua/core/highlight.lua3
2 files changed, 21 insertions, 26 deletions
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', '<CMD>Glance implementations<CR>')
local treesj = require('treesj') -- treesj
map('n', '<leader>j', treesj.toggle)
--- telescope
-local telebuilt = require('telescope.builtin')
+local telebuilt = require('telescope.builtin') -- telescope
map('n', '<leader>sf', telebuilt.find_files)
map('n', '<leader>sg', telebuilt.git_files)
map('n', '<leader>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', '<leader>so', telebuilt.oldfiles)
--- intellitab
-local intellitab = require('intellitab')
+local intellitab = require('intellitab') -- intellitab
map('n', '<Tab>', intellitab.indent)
--- undo tree
-map('n', '<leader>u', '<cmd>UndotreeToggle<CR>')
+map('n', '<leader>u', '<cmd>UndotreeToggle<CR>') -- undo tree
+map('n', '<leader>f', '<cmd>SFMToggle<CR>') -- sfm
+map('n', '<leader>b', '<cmd>JABSOpen<CR>') -- switch between previous buffers
+map('n', '<leader>tt', '<cmd>TroubleToggle<CR>') -- trouble (lsp error view)
+map('n', '<leader>tc', '<cmd>TodoTrouble<CR>') -- todo trouble
+map('n', '<C-e>', '<cmd>IconPickerYank<CR>') -- icon picker
--- sfm
-map('n', '<leader>f', '<cmd>SFMToggle<CR>')
-
--- dap ui
-local dapui = require('dapui')
+local dapui = require('dapui') -- dap ui
map('n', '<leader>d', dapui.toggle)
--- switch between previous buffers
-map('n', '<leader>b', '<cmd>JABSOpen<CR>')
-
--- resizing buffers (toggleable)
-local smartsplits = require('smart-splits')
+local smartsplits = require('smart-splits') -- resizing buffers (toggleable)
map('n', '<leader>r', smartsplits.start_resize_mode)
--- trouble (lsp error view)
-map('n', '<leader>t', '<cmd>TroubleToggle<CR>')
-
--- icon picker
-map('n', '<C-e>', '<cmd>IconPickerYank<CR>')
+-- toggle term (don't use leader key in these binds)
+map({'n', 't'}, '<C-\\>', '<cmd>ToggleTerm direction=float<CR>')
+map({'n', 't'}, '<C-g>', '<cmd>lua _glow()<CR>')
--- toggle term
-map('t', '<ESC>', '<C-\\><C-n>') -- make <ESC> work in terminals
-map({'n', 't'}, '<C-\\>', '<cmd>ToggleTerm size=20<CR>')
-map({'n', 't'}, '<leader>gl', '<cmd>lua _glow()<CR>')
+-- true zen
+map('n', '<leader>zf', '<cmd>lua require("true-zen.focus").toggle()<CR>')
+map('n', '<leader>zm', '<cmd>lua require("true-zen.minimalist").toggle()<CR>')
+map('n', '<leader>za', '<cmd>lua require("true-zen.ataraxis").toggle()<CR>')
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})