mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-11-22 14:58:25 -06:00
nvim: update smartsplit keybinding loading
This commit is contained in:
1 parent
3e9ae79508
commit
bdc89102ae
2 files changed
+16
-11
No files matched your search
@@ -1,7 +1,9 @@
|
||||
(import-macros {: tx} :config.macros)
|
||||
|
||||
|
||||
(let [smart-splits (require :smart-splits)]
|
||||
(tx :mrjones2014/smart-splits.nvim
|
||||
{:lazy false
|
||||
:config (fn []
|
||||
(let [smart-splits (require :smart-splits)]
|
||||
(when smart-splits
|
||||
;; recommended mappings
|
||||
;; resizing splits
|
||||
@@ -15,9 +17,11 @@
|
||||
(vim.keymap.set :n :<M-j> smart-splits.move_cursor_down)
|
||||
(vim.keymap.set :n :<M-k> smart-splits.move_cursor_up)
|
||||
(vim.keymap.set :n :<M-l> smart-splits.move_cursor_right) ; ; swapping buffers between windows
|
||||
(vim.keymap.set :n :<leader><leader>h smart-splits.swap_buf_left)
|
||||
(vim.keymap.set :n :<leader><leader>j smart-splits.swap_buf_down)
|
||||
(vim.keymap.set :n :<leader><leader>k smart-splits.swap_buf_up)
|
||||
(vim.keymap.set :n :<leader><leader>l smart-splits.swap_buf_right)))
|
||||
|
||||
(tx :mrjones2014/smart-splits.nvim {:lazy false})
|
||||
(vim.keymap.set :n :<leader><leader>h
|
||||
smart-splits.swap_buf_left)
|
||||
(vim.keymap.set :n :<leader><leader>j
|
||||
smart-splits.swap_buf_down)
|
||||
(vim.keymap.set :n :<leader><leader>k
|
||||
smart-splits.swap_buf_up)
|
||||
(vim.keymap.set :n :<leader><leader>l
|
||||
smart-splits.swap_buf_right))))})
|
||||
@@ -1,5 +1,5 @@
|
||||
-- [nfnl] fnl/plugins/smartsplits.fnl
|
||||
do
|
||||
local function _1_()
|
||||
local smart_splits = require("smart-splits")
|
||||
if smart_splits then
|
||||
vim.keymap.set("n", "<M-S-h>", smart_splits.resize_left)
|
||||
@@ -13,8 +13,9 @@ do
|
||||
vim.keymap.set("n", "<leader><leader>h", smart_splits.swap_buf_left)
|
||||
vim.keymap.set("n", "<leader><leader>j", smart_splits.swap_buf_down)
|
||||
vim.keymap.set("n", "<leader><leader>k", smart_splits.swap_buf_up)
|
||||
vim.keymap.set("n", "<leader><leader>l", smart_splits.swap_buf_right)
|
||||
return vim.keymap.set("n", "<leader><leader>l", smart_splits.swap_buf_right)
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
return {"mrjones2014/smart-splits.nvim", lazy = false}
|
||||
return {"mrjones2014/smart-splits.nvim", config = _1_, lazy = false}
|
||||
Reference in new issue
Block a user