diff --git a/lua/custom/plugins/colorscheme.lua b/lua/custom/plugins/colorscheme.lua new file mode 100644 index 00000000..f04e2738 --- /dev/null +++ b/lua/custom/plugins/colorscheme.lua @@ -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, +} diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua new file mode 100644 index 00000000..0c4d482c --- /dev/null +++ b/lua/custom/plugins/copilot.lua @@ -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, +} diff --git a/lua/custom/plugins/dap-projects.lua b/lua/custom/plugins/dap-projects.lua new file mode 100644 index 00000000..48d52805 --- /dev/null +++ b/lua/custom/plugins/dap-projects.lua @@ -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 +} diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua new file mode 100644 index 00000000..7fbd87b2 --- /dev/null +++ b/lua/custom/plugins/harpoon.lua @@ -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', '', 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', 'a', function() + harpoon:list():add() + end, { desc = 'Harpoon: [a]dd to list' }) + vim.keymap.set('n', '', function() + toggle_telescope(harpoon:list()) + end, { desc = 'Harpoon: open list' }) + end +} diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..7cdfafbc 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -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', '', '', { desc = 'Move focus to the left window' }) +vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) +vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) +vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) + +require('guess-indent').setup {} + return {} diff --git a/lua/custom/plugins/lspsaga.lua b/lua/custom/plugins/lspsaga.lua new file mode 100644 index 00000000..21d87495 --- /dev/null +++ b/lua/custom/plugins/lspsaga.lua @@ -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', + }, +} diff --git a/lua/custom/plugins/markdown.lua b/lua/custom/plugins/markdown.lua new file mode 100644 index 00000000..76aed403 --- /dev/null +++ b/lua/custom/plugins/markdown.lua @@ -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 = {}, +} diff --git a/lua/custom/plugins/marks.lua b/lua/custom/plugins/marks.lua new file mode 100644 index 00000000..d0827a28 --- /dev/null +++ b/lua/custom/plugins/marks.lua @@ -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' } }, + { 'mp', marks.preview, { desc = '[m]arks: [p]review' } }, + { 'md', marks.delete_buf, { desc = '[m]arks: [d]elete all marks' } }, + unpack(keys), + } + end, + opts = {}, +} diff --git a/lua/custom/plugins/rustaceanvim.lua b/lua/custom/plugins/rustaceanvim.lua new file mode 100644 index 00000000..46c4c82f --- /dev/null +++ b/lua/custom/plugins/rustaceanvim.lua @@ -0,0 +1,5 @@ +return { + 'mrcjkb/rustaceanvim', + version = '^5', -- Recommended + lazy = false, -- This plugin is already lazy +} diff --git a/lua/custom/plugins/sarif.lua b/lua/custom/plugins/sarif.lua new file mode 100644 index 00000000..004970f0 --- /dev/null +++ b/lua/custom/plugins/sarif.lua @@ -0,0 +1,3 @@ +return { + 'fguisso/sfer.nvim', +}