Skip to content

Commit

Permalink
(nvim) wip: move plugin config to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
emilford committed Dec 27, 2021
1 parent d3d9e41 commit 60f30b6
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .config/nvim/lua/em/mappings/init.lua

This file was deleted.

2 changes: 2 additions & 0 deletions .config/nvim/plugin/loupe.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vim.g.LoupeCenterResults = 0
vim.g.LoupeClearHighlightMap = 0
10 changes: 10 additions & 0 deletions .config/nvim/plugin/scratch.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
vim.g.scratch_height = 20
vim.g.scratch_insert_autohide = 0
vim.g.scratch_no_mappings = 1
vim.g.scratch_persistence_file = "project-notes.txt"

-- Pneumonic: go to notes
vim.api.nvim_set_keymap("n", "gN", "<plug>(scratch-insert-clear)", {})
vim.api.nvim_set_keymap("n", "gn", "<plug>(scratch-insert-reuse)", {})
vim.api.nvim_set_keymap("x", "gN", "<plug>(scratch-selection-clear)", {})
vim.api.nvim_set_keymap("x", "gn", "<plug>(scratch-selection-reuse)", {})
3 changes: 3 additions & 0 deletions .config/nvim/plugin/splitjoin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vim.g.splitjoin_ruby_curly_braces = 0
vim.g.splitjoin_ruby_hanging_args = 0
vim.g.splitjoin_ruby_options_as_arguments = 1
2 changes: 2 additions & 0 deletions .config/nvim/plugin/vim-easy-align.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vim.api.nvim_set_keymap("v", "<enter>", "<plug>(EasyAlign)", {})
vim.api.nvim_set_keymap("n", "ga", "<plug>(EasyAlign)", {})
1 change: 1 addition & 0 deletions .config/nvim/plugin/vim-fugitive.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vim.g.fugitive_legacy_commands = 0
1 change: 1 addition & 0 deletions .config/nvim/plugin/vim-gista.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vim.g["gista#command#post#default_public"] = 0
1 change: 1 addition & 0 deletions .config/nvim/plugin/vim-markdown.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vim.g.vim_markdown_new_list_item_indent = 2
7 changes: 7 additions & 0 deletions .config/nvim/plugin/vim-test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
vim.g["test#strategy"] = "vtr"

vim.api.nvim_set_keymap("n", "tn", ":TestNearest<cr>", { silent = true })
vim.api.nvim_set_keymap("n", "tf", ":TestFile<cr>", { silent = true })
vim.api.nvim_set_keymap("n", "ta", ":TestSuite<cr>", { silent = true })
vim.api.nvim_set_keymap("n", "tl", ":TestLast<cr>", { silent = true })
vim.api.nvim_set_keymap("n", "tv", ":TestVisit<cr>", { silent = true })
5 changes: 5 additions & 0 deletions .config/nvim/plugin/vim-tmux-runner.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vim.api.nvim_set_keymap("n", "ra", ":VtrAttachToPane<cr>", { noremap = true })
vim.api.nvim_set_keymap("n", "rc", ":VtrClearRunner<cr>", { noremap = true })
vim.api.nvim_set_keymap("n", "rf", ":VtrFocusRunner<cr>", { noremap = true })
vim.api.nvim_set_keymap("n", "ro", ":VtrOpenRunner<cr>", { noremap = true })
vim.api.nvim_set_keymap("n", "rk", ":VtrKillRunner<cr>", { noremap = true })

0 comments on commit 60f30b6

Please sign in to comment.