|
|
|
@ -35,10 +35,10 @@ return {
|
|
|
|
|
|
|
|
|
|
-- My Plugins
|
|
|
|
|
|
|
|
|
|
["~/.config/nvim/my_packages/perproject"] = {-- {{{
|
|
|
|
|
["~/.config/nvim/my_packages/perproject"] = { -- {{{
|
|
|
|
|
opt = true,
|
|
|
|
|
after = {"nvim-lspconfig", "navigator.lua"},
|
|
|
|
|
require = {"nvim-lspconfig", "navigator.lua"},
|
|
|
|
|
after = { "nvim-lspconfig", "navigator.lua" },
|
|
|
|
|
require = { "nvim-lspconfig", "navigator.lua" },
|
|
|
|
|
config = function()
|
|
|
|
|
require("perproject").setup()
|
|
|
|
|
-- callbacks = {
|
|
|
|
@ -48,12 +48,12 @@ return {
|
|
|
|
|
-- }
|
|
|
|
|
-- })
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- treesitter
|
|
|
|
|
|
|
|
|
|
["nvim-treesitter/nvim-treesitter"] = {-- {{{
|
|
|
|
|
["nvim-treesitter/nvim-treesitter"] = { -- {{{
|
|
|
|
|
-- custom config in chadrc -> custom.configs.treesitter
|
|
|
|
|
setup = function()
|
|
|
|
|
require("core.lazy_load").on_file_open "nvim-treesitter"
|
|
|
|
@ -80,13 +80,13 @@ return {
|
|
|
|
|
config = function()
|
|
|
|
|
require("custom.plugins.configs.treesitter-context").setup()
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- autocomplete
|
|
|
|
|
|
|
|
|
|
["hrsh7th/cmp-buffer"] = {-- {{{
|
|
|
|
|
config = function ()
|
|
|
|
|
["hrsh7th/cmp-buffer"] = { -- {{{
|
|
|
|
|
config = function()
|
|
|
|
|
local disabled_ft = {
|
|
|
|
|
"guihua",
|
|
|
|
|
"clap_input",
|
|
|
|
@ -95,7 +95,7 @@ return {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
require("cmp").setup.buffer {
|
|
|
|
|
enabled = function ()
|
|
|
|
|
enabled = function()
|
|
|
|
|
for _, v in ipairs(disabled_ft) do
|
|
|
|
|
if vim.o.ft == v then return false end
|
|
|
|
|
end
|
|
|
|
@ -103,11 +103,11 @@ return {
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- snippets
|
|
|
|
|
["honza/vim-snippets"] = {-- {{{
|
|
|
|
|
module = {"cmp", "cmp_nvim_lsp"},
|
|
|
|
|
["honza/vim-snippets"] = { -- {{{
|
|
|
|
|
module = { "cmp", "cmp_nvim_lsp" },
|
|
|
|
|
event = "InsertEnter",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -117,7 +117,7 @@ return {
|
|
|
|
|
-- load default config first
|
|
|
|
|
require("plugins.configs.others").luasnip()
|
|
|
|
|
|
|
|
|
|
vim.g.my_snippets_paths = {"./custom_snippets"}
|
|
|
|
|
vim.g.my_snippets_paths = { "./custom_snippets" }
|
|
|
|
|
require("luasnip").filetype_extend("markdown", { "markdown_zk" })
|
|
|
|
|
|
|
|
|
|
-- load snippets from "honza/vim-snippets"
|
|
|
|
@ -128,7 +128,7 @@ return {
|
|
|
|
|
override_priority = 800
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- text formatting
|
|
|
|
|
|
|
|
|
@ -142,8 +142,8 @@ return {
|
|
|
|
|
["tpope/vim-surround"] = {},
|
|
|
|
|
|
|
|
|
|
["godlygeek/tabular"] = {
|
|
|
|
|
cmd = "Tabularize"
|
|
|
|
|
},-- }}}
|
|
|
|
|
lcmd = "Tabularize"
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- ["p00f/nvim-ts-rainbow"] = {
|
|
|
|
@ -153,47 +153,63 @@ return {
|
|
|
|
|
|
|
|
|
|
-- dap
|
|
|
|
|
|
|
|
|
|
["mfussenegger/nvim-dap"] = {-- {{{
|
|
|
|
|
["mfussenegger/nvim-dap"] = { -- {{{
|
|
|
|
|
lock = true,
|
|
|
|
|
module = "dap",
|
|
|
|
|
setup = function()
|
|
|
|
|
require("core.utils").load_mappings "dap"
|
|
|
|
|
require('spike.dap').setup()
|
|
|
|
|
end,
|
|
|
|
|
config = function()
|
|
|
|
|
require("custom.plugins.configs.dap").setup()
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
["rcarriga/nvim-dap-ui"] = {
|
|
|
|
|
tag = "*",
|
|
|
|
|
after = "nvim-dap",
|
|
|
|
|
config = function()
|
|
|
|
|
require('custom.plugins.configs.dapui').setup()
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
["theHamsta/nvim-dap-virtual-text"] = {
|
|
|
|
|
lock = true,
|
|
|
|
|
after = "nvim-dap"
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- User Interface / UX
|
|
|
|
|
--
|
|
|
|
|
-- allows to preview commands after they are registerd by plugin
|
|
|
|
|
-- the current registerd norm command works by first selecting a visual selection
|
|
|
|
|
-- then doing the changes, it's an enhanced multi cursor
|
|
|
|
|
["smjonas/live-command.nvim"] = {
|
|
|
|
|
cmd = require("custom.plugins.configs.live-command").get_cmds(),
|
|
|
|
|
opt = true,
|
|
|
|
|
config = function()
|
|
|
|
|
require("custom.plugins.configs.live-command").setup()
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
["folke/which-key.nvim"] = {-- {{{
|
|
|
|
|
["folke/which-key.nvim"] = { -- {{{
|
|
|
|
|
lock = true,
|
|
|
|
|
disable = false,
|
|
|
|
|
keys = {"<leader>", "<BS>", "<Space>"}
|
|
|
|
|
keys = { "<leader>", "<BS>", "<Space>", "\"", "`", "'", "z", "g" }
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- repeat operator for plugin commands
|
|
|
|
|
["tpope/vim-repeat"] = {
|
|
|
|
|
keys = {"."},
|
|
|
|
|
keys = { "." },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
["nvim-telescope/telescope.nvim"] = {
|
|
|
|
|
-- lock = true,
|
|
|
|
|
after = "vim-hardtime",
|
|
|
|
|
|
|
|
|
|
disable = false,
|
|
|
|
|
},
|
|
|
|
|
["tom-anders/telescope-vim-bookmarks.nvim"] = {
|
|
|
|
|
opt = true,
|
|
|
|
|
module = "telescope",
|
|
|
|
|
after = {"telescope.nvim", "vim-bookmarks"},
|
|
|
|
|
after = { "telescope.nvim", "vim-bookmarks" },
|
|
|
|
|
-- cmd = "Telescope",
|
|
|
|
|
-- requires = "vim-bookmarks",
|
|
|
|
|
-- after = {"vim-bookmarks", "telescope"},
|
|
|
|
@ -205,7 +221,7 @@ return {
|
|
|
|
|
["nvim-telescope/telescope-fzf-native.nvim"] = {
|
|
|
|
|
opt = true,
|
|
|
|
|
module = "telescope",
|
|
|
|
|
after = {"telescope.nvim"},
|
|
|
|
|
after = { "telescope.nvim" },
|
|
|
|
|
run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build',
|
|
|
|
|
},
|
|
|
|
|
["ibhagwan/fzf-lua"] = {
|
|
|
|
@ -218,31 +234,32 @@ return {
|
|
|
|
|
setup = function()
|
|
|
|
|
require("core.utils").load_mappings "fzf_lua"
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- Theme customization
|
|
|
|
|
["uga-rosa/ccc.nvim"] = {
|
|
|
|
|
["uga-rosa/ccc.nvim"] = { -- {{{{{{
|
|
|
|
|
commit = "427471b",
|
|
|
|
|
cmd = {"Ccc*", "<Plug>(ccc-insert)"},
|
|
|
|
|
cmd = { "Ccc*", "<Plug>(ccc-insert)" },
|
|
|
|
|
setup = function()
|
|
|
|
|
require("core.utils").load_mappings "ccc"
|
|
|
|
|
end,
|
|
|
|
|
config = function()
|
|
|
|
|
require("ccc").setup({})
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
}, -- }}}}}}
|
|
|
|
|
|
|
|
|
|
-- navigation / jumping / buffer modification
|
|
|
|
|
|
|
|
|
|
-- navigation / jumps
|
|
|
|
|
-- ["justinmk/vim-sneak"] = {
|
|
|
|
|
-- lock = true,
|
|
|
|
|
-- keys = {"s", "S"},
|
|
|
|
|
-- },
|
|
|
|
|
|
|
|
|
|
["ggandor/leap.nvim"] = {-- {{{
|
|
|
|
|
["ggandor/leap.nvim"] = { -- {{{
|
|
|
|
|
config = function()
|
|
|
|
|
require "custom.plugins.configs.leap"
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- tmux helpers
|
|
|
|
|
["christoomey/vim-tmux-navigator"] = {
|
|
|
|
@ -260,18 +277,19 @@ return {
|
|
|
|
|
-- Job management (use nvim startjob )
|
|
|
|
|
-- Run async commands (make & errors)
|
|
|
|
|
|
|
|
|
|
["skywind3000/asyncrun.vim"] = {-- {{{
|
|
|
|
|
-- TODO: replace with https://github.com/skywind3000/asynctasks.vim
|
|
|
|
|
["skywind3000/asyncrun.vim"] = { -- {{{
|
|
|
|
|
lock = true,
|
|
|
|
|
cmd = "AsyncRun",
|
|
|
|
|
setup = function()
|
|
|
|
|
require("core.utils").load_mappings "asyncrun"
|
|
|
|
|
vim.g.asyncrun_open = 8
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- Git
|
|
|
|
|
["tpope/vim-fugitive"] = {
|
|
|
|
|
cmd = {"G", "Git", "G*"}
|
|
|
|
|
cmd = { "G", "Git", "G*" }
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- session and view
|
|
|
|
@ -292,41 +310,55 @@ return {
|
|
|
|
|
-- Misc / General plugins
|
|
|
|
|
|
|
|
|
|
-- Read info files
|
|
|
|
|
["https://gitlab.com/HiPhish/info.vim.git"] = {
|
|
|
|
|
["https://gitlab.com/HiPhish/info.vim.git"] = { -- {{{{{{
|
|
|
|
|
cmd = "Info",
|
|
|
|
|
},
|
|
|
|
|
}, -- }}}}}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
["MattesGroeger/vim-bookmarks"] = {
|
|
|
|
|
["MattesGroeger/vim-bookmarks"] = { -- {{{
|
|
|
|
|
config = function()
|
|
|
|
|
require("core.utils").load_mappings "vim_bookmarks"
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- create new vim modes
|
|
|
|
|
["Iron-E/nvim-libmodal"] = {
|
|
|
|
|
["Iron-E/nvim-libmodal"] = { -- {{{
|
|
|
|
|
lock = true,
|
|
|
|
|
},
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- get rid of bad habits
|
|
|
|
|
["takac/vim-hardtime"] = {
|
|
|
|
|
-- keys = { "h", "j", "k", "l" },
|
|
|
|
|
setup = function()
|
|
|
|
|
vim.g.hardtime_default_on = 1
|
|
|
|
|
vim.g.hardtime_showmsg = 1
|
|
|
|
|
vim.g.list_of_normal_keys = {"h","j","k","l"}
|
|
|
|
|
vim.g.list_of_visual_keys = {"h","j","k","l"}
|
|
|
|
|
vim.g.hardtime_ignore_quickfix = 1
|
|
|
|
|
vim.g.hardtime_ignore_buffer_patterns = {
|
|
|
|
|
"NERD.*",
|
|
|
|
|
"netrw",
|
|
|
|
|
"TelescopePrompt",
|
|
|
|
|
"fugitive",
|
|
|
|
|
"guihua*",
|
|
|
|
|
}
|
|
|
|
|
vim.g.hardtime_maxcount = 2
|
|
|
|
|
end,
|
|
|
|
|
-- ["ja-ford/delaytrain.nvim"] = {
|
|
|
|
|
["~/src/delaytrain.nvim"] = {
|
|
|
|
|
config = function()
|
|
|
|
|
require('delaytrain').setup({
|
|
|
|
|
delay_ms = 1000, -- How long repeated usage of a key should be prevented
|
|
|
|
|
grace_period = 1, -- How many repeated keypresses are allowed
|
|
|
|
|
keys = { -- Which keys (in which modes) should be delayed
|
|
|
|
|
['nv'] = { 'h', 'j', 'k', 'l' },
|
|
|
|
|
-- ['nvi'] = { '<Left>', '<Down>', '<Up>', '<Right>' },
|
|
|
|
|
},
|
|
|
|
|
ignore_filetypes = {"qf", "NvimTree", "help", "qf", "netrw"},
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
-- ["takac/vim-hardtime"] = {-- {{{
|
|
|
|
|
-- -- keys = { "h", "j", "k", "l" },
|
|
|
|
|
-- setup = function()
|
|
|
|
|
-- vim.g.hardtime_default_on = 1
|
|
|
|
|
-- vim.g.hardtime_showmsg = 1
|
|
|
|
|
-- vim.g.list_of_normal_keys = {"h","j","k","l"}
|
|
|
|
|
-- vim.g.list_of_visual_keys = {"h","j","k","l"}
|
|
|
|
|
-- vim.g.hardtime_ignore_quickfix = 1
|
|
|
|
|
-- vim.g.hardtime_ignore_buffer_patterns = {
|
|
|
|
|
-- "NERD.*",
|
|
|
|
|
-- "netrw",
|
|
|
|
|
-- "TelescopePrompt",
|
|
|
|
|
-- "fugitive",
|
|
|
|
|
-- "guihua*",
|
|
|
|
|
-- }
|
|
|
|
|
-- vim.g.hardtime_maxcount = 2
|
|
|
|
|
-- end,
|
|
|
|
|
-- },-- }}}
|
|
|
|
|
|
|
|
|
|
-- ["chentoast/marks.nvim"] = {
|
|
|
|
|
-- opt = true,
|
|
|
|
@ -341,9 +373,9 @@ return {
|
|
|
|
|
-- LSP
|
|
|
|
|
-- ------------------
|
|
|
|
|
|
|
|
|
|
["neovim/nvim-lspconfig"] = {-- {{{
|
|
|
|
|
after = {"lua-dev.nvim", "mason.nvim", "mason-lspconfig.nvim"},
|
|
|
|
|
module = {"lspconfig"},
|
|
|
|
|
["neovim/nvim-lspconfig"] = { -- {{{
|
|
|
|
|
after = { "lua-dev.nvim", "mason.nvim", "mason-lspconfig.nvim" },
|
|
|
|
|
module = { "lspconfig" },
|
|
|
|
|
lock = false,
|
|
|
|
|
config = function()
|
|
|
|
|
require("plugins.configs.lspconfig").setup()
|
|
|
|
@ -351,16 +383,16 @@ return {
|
|
|
|
|
},
|
|
|
|
|
["williamboman/mason-lspconfig.nvim"] = {
|
|
|
|
|
lock = false,
|
|
|
|
|
requires = {"williamboman/mason.nvim", "nvim-lspconfig"},
|
|
|
|
|
requires = { "williamboman/mason.nvim", "nvim-lspconfig" },
|
|
|
|
|
-- after = "mason.nvim",
|
|
|
|
|
module = {"mson-lspconfig.nvim", "mason.nvim"},
|
|
|
|
|
module = { "mson-lspconfig.nvim", "mason.nvim" },
|
|
|
|
|
config = function()
|
|
|
|
|
require("mason-lspconfig").setup({})
|
|
|
|
|
end,
|
|
|
|
|
},
|
|
|
|
|
["ray-x/guihua.lua"] = {
|
|
|
|
|
lock = true,
|
|
|
|
|
module = {"navigator"},
|
|
|
|
|
module = { "navigator" },
|
|
|
|
|
run = "cd lua/fzy && make",
|
|
|
|
|
config = function()
|
|
|
|
|
require("guihua.maps").setup {
|
|
|
|
@ -378,7 +410,7 @@ return {
|
|
|
|
|
opt = true,
|
|
|
|
|
module = "navigator",
|
|
|
|
|
after = { "nvim-lspconfig", "base46", "ui", "mason.nvim", "mason-lspconfig.nvim", "lua-dev.nvim" },
|
|
|
|
|
requires = {"neovim/nvim-lspconfig", "ray-x/guihua.lua", "nvim-treesitter/nvim-treesitter"},
|
|
|
|
|
requires = { "neovim/nvim-lspconfig", "ray-x/guihua.lua", "nvim-treesitter/nvim-treesitter" },
|
|
|
|
|
setup = function()
|
|
|
|
|
require("core.lazy_load").on_file_open "navigator.lua"
|
|
|
|
|
require("core.utils").load_mappings "navigator"
|
|
|
|
@ -394,12 +426,12 @@ return {
|
|
|
|
|
|
|
|
|
|
["ray-x/lsp_signature.nvim"] = {
|
|
|
|
|
lock = true,
|
|
|
|
|
after = {"navigator.lua"},
|
|
|
|
|
after = { "navigator.lua" },
|
|
|
|
|
config = function()
|
|
|
|
|
require("custom.plugins.configs.lsp_signature").setup()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- side panel with symbols (replaced by Navigator :LspSymbols cmd)
|
|
|
|
|
-- ["liuchengxu/vista.vim"] = {
|
|
|
|
@ -445,7 +477,7 @@ return {
|
|
|
|
|
-- power Repl {{{
|
|
|
|
|
["hkupty/iron.nvim"] = {
|
|
|
|
|
loack = true,
|
|
|
|
|
cmd = {"Iron*"},
|
|
|
|
|
cmd = { "Iron*" },
|
|
|
|
|
setup = function()
|
|
|
|
|
require("core.utils").load_mappings "iron"
|
|
|
|
|
end,
|
|
|
|
@ -459,12 +491,12 @@ return {
|
|
|
|
|
lock = true,
|
|
|
|
|
cmd = "Repl",
|
|
|
|
|
after = "nvim-cmp",
|
|
|
|
|
config = function ()
|
|
|
|
|
config = function()
|
|
|
|
|
local autocmd = vim.api.nvim_create_autocmd
|
|
|
|
|
autocmd("FileType",{
|
|
|
|
|
autocmd("FileType", {
|
|
|
|
|
pattern = "neorepl",
|
|
|
|
|
callback = function ()
|
|
|
|
|
require('cmp').setup.buffer({enabled = false})
|
|
|
|
|
callback = function()
|
|
|
|
|
require('cmp').setup.buffer({ enabled = false })
|
|
|
|
|
|
|
|
|
|
-- custom keymap example
|
|
|
|
|
-- activate corresponding section in mappings
|
|
|
|
@ -479,28 +511,28 @@ return {
|
|
|
|
|
["folke/lua-dev.nvim"] = {
|
|
|
|
|
lock = true,
|
|
|
|
|
module = "lua-dev",
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- golang dev
|
|
|
|
|
|
|
|
|
|
["ray-x/go.nvim"] = {-- {{{
|
|
|
|
|
["ray-x/go.nvim"] = { -- {{{
|
|
|
|
|
lock = true,
|
|
|
|
|
-- after = {"nvim-lspconfig", "navigator.lua", "guihua.lua"},
|
|
|
|
|
ft = {"go"},
|
|
|
|
|
ft = { "go" },
|
|
|
|
|
opt = true,
|
|
|
|
|
config = function()
|
|
|
|
|
require("custom.plugins.configs.gonvim").setup()
|
|
|
|
|
end
|
|
|
|
|
},-- }}}
|
|
|
|
|
}, -- }}}
|
|
|
|
|
|
|
|
|
|
-- Rust dev
|
|
|
|
|
["simrat39/rust-tools.nvim"] = {-- {{{
|
|
|
|
|
["simrat39/rust-tools.nvim"] = { -- {{{
|
|
|
|
|
lock = true,
|
|
|
|
|
ft = {"rust"},
|
|
|
|
|
ft = { "rust" },
|
|
|
|
|
opt = true,
|
|
|
|
|
config = function()
|
|
|
|
|
require("custom.plugins.configs.rust-tools").setup()
|
|
|
|
|
end
|
|
|
|
|
}-- }}}
|
|
|
|
|
} -- }}}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|