summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@scu.edu>2023-01-03 16:33:09 -0800
committerLouie Shprung <lshprung@scu.edu>2023-01-03 16:33:09 -0800
commitaffe302e2134608ec9073874d5522ae5e42972f3 (patch)
tree99ec32396097478ac11d981210bd8c27bc500c6b /lua
parentc4ef53a113a16da8cb9336b554caecec0a0d0c7e (diff)
Add JABS for buffer switching
Diffstat (limited to 'lua')
-rw-r--r--lua/user/jabs.lua27
-rw-r--r--lua/user/keymaps.lua9
-rw-r--r--lua/user/plugins.lua3
3 files changed, 35 insertions, 4 deletions
diff --git a/lua/user/jabs.lua b/lua/user/jabs.lua
new file mode 100644
index 0000000..136796d
--- /dev/null
+++ b/lua/user/jabs.lua
@@ -0,0 +1,27 @@
+require 'jabs'.setup {
+ -- Options for the main window
+ position = {'left', 'bottom'},
+
+ -- Default symbols
+ symbols = {
+ current = "C",
+ split = "S",
+ alternate = "A",
+ hidden = "H",
+ locked = "L",
+ ro = "R",
+ edited = "E",
+ terminal = "T",
+ default_file = "D",
+ terminal_symbol = ">_"
+ },
+
+ -- Keymaps
+ keymap = {
+ close = "X",
+ h_split = "h",
+ v_split = "v"
+ },
+
+ use_devicons = false
+}
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua
index 4da531c..adb6470 100644
--- a/lua/user/keymaps.lua
+++ b/lua/user/keymaps.lua
@@ -87,11 +87,12 @@ keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts)
]]
-- Buffer Options
-keymap("n", "<leader>bd", ":b#<CR>:bd#<CR>", opts) --Close buffer without closing window
+keymap("n", "<leader>bd", ":b#<CR>:bd#<CR>", opts) --Close buffer without closing window ('b'uffer 'd'elete)
+keymap("n", "<leader>bl", ":JABSOpen<CR>", opts) --Open buffer switcher ('b'uffer 'l'ist)
-- Toggle GUI colors
-keymap("n", "<leader>g", ":set termguicolors!<CR>:TSToggle highlight<CR>", opts)
+keymap("n", "<leader>g", ":set termguicolors!<CR>:TSToggle highlight<CR>", opts) -- ('g'ui)
-- Workspace Options
-keymap("n", "<leader>wsh", ":split<CR>", opts) --Horizontal split workspace
-keymap("n", "<leader>wsv", ":vs<CR>", opts) --Vertical split workspace
+keymap("n", "<leader>wsh", ":split<CR>", opts) --Horizontal split workspace ('s'plit 'h'orizontal)
+keymap("n", "<leader>wsv", ":vs<CR>", opts) --Vertical split workspace ('s'plit 'v'ertical)
diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua
index b13b028..ad9ba8e 100644
--- a/lua/user/plugins.lua
+++ b/lua/user/plugins.lua
@@ -14,6 +14,9 @@ return packer.startup(function(use)
-- Colorschemes
--use "lunarvim/colorschemes" -- Additional colorschemes
+ -- Buffers
+ use 'matbme/JABS.nvim'
+
-- cmp plugins
use "hrsh7th/nvim-cmp" -- The completion plugin
use "hrsh7th/cmp-buffer" -- Buffer completions