.nvim/lua/plugins/mine.lua
Ryan Manseau 567bfcc06e initial commit
added a bunch of config to try and get things closer to my doom emacs
setup. still not perfect.
2023-05-25 10:18:01 -07:00

179 lines
4.1 KiB
Lua

return {
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.json" },
{ "UtkarshVerma/molokai.nvim" },
{
"xiyaowong/transparent.nvim",
},
{
"neovim/nvim-lspconfig",
init = function()
local keys = require("lazyvim.plugins.lsp.keymaps").get()
keys[#keys + 1] = { "K", false }
keys[#keys + 1] = { "gm", vim.lsp.buf.hover, desc = "Hover" }
keys[#keys + 1] = { "gM", vim.lsp.buf.signature_help, desc = "Signature Help", has = "signatureHelp" }
end,
},
{
"ggandor/leap.nvim",
keys = function() -- function overwrites keybinds
return {
{
"gl",
function()
require("leap").leap({
target_windows = vim.tbl_filter(function(win)
return vim.api.nvim_win_get_config(win).focusable
end, vim.api.nvim_tabpage_list_wins(0)),
})
end,
mode = { "n", "x", "o" },
desc = "Leap anywhere",
},
}
end,
config = false, -- remove lazyvim config, i only want the above binding
},
{
"ggandor/flit.nvim",
opts = {
labeled_modes = "", -- Disable labels
},
},
{
"echasnovski/mini.surround",
opts = {
mappings = {
add = "s", -- Add surrounding in Normal and Visual modes
delete = "ds", -- Delete surrounding
replace = "cs", -- Replace surroundng
find = "", -- Find surrounding (to the right)
find_left = "", -- Find surrounding (to the left)
highlight = "", -- Highlight surroundng
update_n_lines = "", -- Update `n_lines`
},
},
},
{
"folke/which-key.nvim",
opts = function(_, opts)
opts.defaults["gz"] = nil
end,
},
{
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-cmdline" },
lazy = false,
config = function(_, opts)
local cmp = require("cmp")
cmp.setup(opts)
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ "/", "?" }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = "buffer" },
},
})
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
}, {
{ name = "cmdline" },
}),
})
end,
},
{
"folke/noice.nvim",
-- enabled = false,
opts = {
cmdline = {
view = "cmdline",
},
presets = {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
},
popupmenu = {
enabled = true, -- enables the Noice popupmenu UI
backend = "cmp", -- backend to use to show regular cmdline completions
kind_icons = {}, -- set to `false` to disable icons
},
},
},
{
"echasnovski/mini.indentscope",
opts = {
draw = {
delay = 0,
animation = require("mini.indentscope").gen_animation.none(),
priority = 2,
},
},
config = function(_, opts)
require("mini.indentscope").setup(opts)
end,
},
{
"RRethy/vim-illuminate",
keys = function()
return {}
end,
config = function(_, opts)
require("illuminate").configure(opts)
-- why doesn't this work
-- vim.cmd("hi link IlluminatedWordRead Visual")
end,
},
{
"TimUntersberger/neogit",
dependencies = { "nvim-lua/plenary.nvim" },
-- lazy = false,
event = "VeryLazy",
cmd = "Neogit",
-- keys = {
-- {
-- "<leader>gg",
-- "<CMD>Neogit<CR>",
-- -- function()
-- -- require("neogit").open()
-- -- end,
-- desc = "Neogit status",
-- },
-- },
-- config = function()
-- local neogit = require("neogit")
-- neogit.setup({})
-- end,
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "molokai",
},
},
{
"akinsho/bufferline.nvim",
enabled = false,
},
}