nvim: Refactor plugins
This commit is contained in:
parent
8209624989
commit
8af57fc937
3 changed files with 572 additions and 665 deletions
76
neovim/lua/plugins/etc.lua
Normal file
76
neovim/lua/plugins/etc.lua
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
return {
|
||||
-- Theme
|
||||
'rktjmp/lush.nvim',
|
||||
|
||||
-- tpope extended universe
|
||||
"tpope/vim-abolish",
|
||||
"tpope/vim-commentary",
|
||||
"tpope/vim-endwise",
|
||||
"tpope/vim-repeat",
|
||||
{ "kylechui/nvim-surround", config = true },
|
||||
{
|
||||
"tpope/vim-fugitive",
|
||||
keys = {
|
||||
{ "<Space>G", ":Git<Space>", mode = "n" },
|
||||
},
|
||||
},
|
||||
|
||||
-- etc.
|
||||
"MarcWeber/vim-addon-local-vimrc",
|
||||
"qpkorr/vim-bufkill",
|
||||
{
|
||||
"almo7aya/openingh.nvim",
|
||||
keys = {
|
||||
{ "<Leader>gh", "V:OpenInGHFile<CR>", mode = {"n"} },
|
||||
{ "<Leader>gh", ":OpenInGHFile<CR>", mode = {"v"} },
|
||||
},
|
||||
},
|
||||
{
|
||||
"chrisbra/unicode.vim",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"junegunn/fzf",
|
||||
},
|
||||
keys = {
|
||||
{ "<C-G><C-F>", "<Plug>(UnicodeFuzzy)<cr>", mode = "i" },
|
||||
},
|
||||
init = function()
|
||||
vim.g.Unicode_no_default_mappings = 1
|
||||
end,
|
||||
},
|
||||
{
|
||||
"junegunn/vim-easy-align",
|
||||
keys = {
|
||||
{ "ga", "<Plug>(EasyAlign)", mode = "x" },
|
||||
{ "ga", "<Plug>(EasyAlign)", mode = "n" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"ntpeters/vim-better-whitespace",
|
||||
init = function()
|
||||
vim.g.better_whitespace_enabled = 1
|
||||
vim.g.better_whitespace_filetypes_blacklist = { 'diff' }
|
||||
vim.g.strip_whitespace_on_save = 1
|
||||
vim.g.strip_whitespace_confirm = 0
|
||||
vim.g.better_whitespace_operator = ''
|
||||
end,
|
||||
},
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
opts = {
|
||||
map_cr = true,
|
||||
enable_moveright = true,
|
||||
enable_check_bracket_line = false,
|
||||
check_ts = true,
|
||||
},
|
||||
config = function(_plugin, opts)
|
||||
local npairs = require("nvim-autopairs")
|
||||
local conds = require("nvim-autopairs.conds")
|
||||
npairs.setup(opts)
|
||||
|
||||
-- Allow Lisp tick-quotes. The non-Rust rule happens to be the
|
||||
-- first one.
|
||||
npairs.get_rules("'")[1].not_filetypes = { "clojure", "lisp", "scheme" }
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue