add custom plugins
This commit is contained in:
parent
f9230250d9
commit
6d7321588e
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
'maxmx03/solarized.nvim',
|
||||
lazy = false,
|
||||
priority = 999,
|
||||
config = function()
|
||||
vim.o.background = 'dark' -- or 'light'
|
||||
vim.cmd.colorscheme 'solarized'
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'zbirenbaum/copilot.lua',
|
||||
config = function()
|
||||
require('copilot').setup {}
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'BlinkCmpMenuOpen',
|
||||
callback = function()
|
||||
vim.b.copilot_suggestion_hidden = true
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
'ldelossa/nvim-dap-projects',
|
||||
dependencies = {
|
||||
'mfussenegger/nvim-dap',
|
||||
},
|
||||
config = function()
|
||||
local dap_projects = require 'nvim-dap-projects'
|
||||
dap_projects.search_project_config()
|
||||
end
|
||||
}
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
return {
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
local harpoon = require 'harpoon'
|
||||
harpoon:setup {}
|
||||
|
||||
local conf = require('telescope.config').values
|
||||
local function toggle_telescope(harpoon_files)
|
||||
local finder = function()
|
||||
local paths = {}
|
||||
for _, item in ipairs(harpoon_files.items) do
|
||||
table.insert(paths, item.value)
|
||||
end
|
||||
|
||||
return require('telescope.finders').new_table {
|
||||
results = paths,
|
||||
}
|
||||
end
|
||||
|
||||
require('telescope.pickers')
|
||||
.new({}, {
|
||||
prompt_title = 'Harpoon',
|
||||
finder = finder(),
|
||||
previewer = conf.file_previewer {},
|
||||
sorter = conf.generic_sorter {},
|
||||
attach_mappings = function(prompt_bufnr, map)
|
||||
map('i', '<C-d>', function()
|
||||
local state = require 'telescope.actions.state'
|
||||
local selected_entry = state.get_selected_entry()
|
||||
local current_picker = state.get_current_picker(prompt_bufnr)
|
||||
|
||||
table.remove(harpoon_files.items, selected_entry.index)
|
||||
current_picker:refresh(finder())
|
||||
end)
|
||||
return true
|
||||
end,
|
||||
})
|
||||
:find()
|
||||
end
|
||||
|
||||
vim.keymap.set('n', '<leader>a', function()
|
||||
harpoon:list():add()
|
||||
end, { desc = 'Harpoon: [a]dd to list' })
|
||||
vim.keymap.set('n', '<C-e>', function()
|
||||
toggle_telescope(harpoon:list())
|
||||
end, { desc = 'Harpoon: open list' })
|
||||
end
|
||||
}
|
||||
|
|
@ -2,4 +2,14 @@
|
|||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
vim.g.have_nerd_font = true
|
||||
vim.o.relativenumber = true
|
||||
|
||||
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
|
||||
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
|
||||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
|
||||
require('guess-indent').setup {}
|
||||
|
||||
return {}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
'nvimdev/lspsaga.nvim',
|
||||
config = function()
|
||||
require('lspsaga').setup({
|
||||
lightbulb = {
|
||||
enabled = true,
|
||||
sign = true,
|
||||
virtual_text = false,
|
||||
sign_priority = 20,
|
||||
},
|
||||
})
|
||||
end,
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite
|
||||
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins
|
||||
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
|
||||
---@module 'render-markdown'
|
||||
---@type render.md.UserConfig
|
||||
opts = {},
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
'chentoast/marks.nvim',
|
||||
keys = function(_, keys)
|
||||
local marks = require 'marks'
|
||||
return {
|
||||
{ 'm', marks.set, { desc = '[m]arks set' } },
|
||||
{ 'gn', marks.next, { desc = 'marks: [g]o to [n]ext mark' } },
|
||||
{ '<leader>mp', marks.preview, { desc = '[m]arks: [p]review' } },
|
||||
{ '<leader>md', marks.delete_buf, { desc = '[m]arks: [d]elete all marks' } },
|
||||
unpack(keys),
|
||||
}
|
||||
end,
|
||||
opts = {},
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^5', -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
'fguisso/sfer.nvim',
|
||||
}
|
||||
Loading…
Reference in New Issue