Skip to content

Commit

Permalink
Fix SPC ! binding for multiple visual lines
Browse files Browse the repository at this point in the history
  • Loading branch information
suonlight committed Nov 1, 2021
1 parent e4b2438 commit aaa5891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions nvim/fnl/dotfiles/init.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
:tpope/vim-commentary {}
:tpope/vim-endwise {}
:pechorin/any-jump.vim {}
:nvim-treesitter/nvim-treesitter {:do ":TSUpdate"} ; We recommend updating the parsers on update

; search files/keyword
:nvim-lua/popup.nvim {}
Expand Down Expand Up @@ -115,7 +116,7 @@
)

;; default
(cmd colorscheme :onedark)
(ex colorscheme :onedark)
(set nvim.o.termguicolors true)
(set nvim.o.clipboard :unnamed)
(set nvim.o.autoindent true)
Expand Down Expand Up @@ -442,8 +443,8 @@
(noremap :n :<C-k> "<cmd>TmuxNavigateUp<CR>")
(noremap :n :<C-l> "<cmd>TmuxNavigateRight<CR>")

(noremap :n :<Leader>! "yy:let cliptext = getreg('*') | :VimuxPromptCommand(cliptext)<CR><CR>")
(noremap :v :<Leader>! "y:let cliptext = getreg('*') | :VimuxPromptCommand(cliptext)<CR><CR>")
(noremap :n :<Leader>! "yy:let cliptext = getreg('*') | :VimuxRunCommand(cliptext)<CR><CR>")
(noremap :v :<Leader>! "y:let cliptext = getreg('*') | :VimuxRunCommand(cliptext)<CR><CR>")

(noremap :n :<Leader>0 "<cmd>NvimTreeFindFile<CR>")
(noremap :n :<f5> ":TestNearest<CR>:TmuxNavigateDown<CR>")
Expand Down
2 changes: 1 addition & 1 deletion nvim/fnl/dotfiles/macros.fnl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
:cmd
:ex
(fn [name ...]
`((. nvim.ex ,(tostring name)) ,...))

Expand Down

0 comments on commit aaa5891

Please sign in to comment.