diff options
Diffstat (limited to 'lua/plugins')
-rw-r--r-- | lua/plugins/auto-session.lua | 17 | ||||
-rw-r--r-- | lua/plugins/colorscheme.lua | 41 | ||||
-rw-r--r-- | lua/plugins/comments.lua | 5 | ||||
-rw-r--r-- | lua/plugins/copilot.lua | 7 | ||||
-rw-r--r-- | lua/plugins/easyalign.lua | 10 | ||||
-rw-r--r-- | lua/plugins/fugitive.lua | 14 | ||||
-rw-r--r-- | lua/plugins/gitignore.lua | 7 | ||||
-rw-r--r-- | lua/plugins/gitsigns.lua | 9 | ||||
-rw-r--r-- | lua/plugins/harpoon.lua | 20 | ||||
-rw-r--r-- | lua/plugins/lf.lua | 21 | ||||
-rw-r--r-- | lua/plugins/lualine.lua | 49 | ||||
-rw-r--r-- | lua/plugins/orgmode.lua | 34 | ||||
-rw-r--r-- | lua/plugins/surround.lua | 5 | ||||
-rw-r--r-- | lua/plugins/telescope.lua | 34 |
14 files changed, 273 insertions, 0 deletions
diff --git a/lua/plugins/auto-session.lua b/lua/plugins/auto-session.lua new file mode 100644 index 0000000..e120c7f --- /dev/null +++ b/lua/plugins/auto-session.lua @@ -0,0 +1,17 @@ +return { + "rmagatti/auto-session", + dependencies = { "nvim-telescope/telescope.nvim" }, + config = function() + require("auto-session").setup({ + session_lens = { + bufftypes_to_ignore = {}, + load_on_setup = true, + theme_conf = { border = true }, + previewer = true, + } + }) + vim.keymap.set("n", "<C-s>", require("auto-session.session-lens").search_session, { + noremap = true, + }) + end, +} diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua new file mode 100644 index 0000000..e69ffd8 --- /dev/null +++ b/lua/plugins/colorscheme.lua @@ -0,0 +1,41 @@ +return { -- No nonsense, very stoic + "aktersnurra/no-clown-fiesta.nvim", + dependencies = { + { "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function() + local configs = require("nvim-treesitter.configs") + configs.setup({ + ensure_installed = { + "c", "go", "python", "yaml", "json", "lua", "vim", "graphql" + }, + ignore_install = { + "javascript", "typescript" + }, + sync_install = false, + highlight = {enable = true}, + indent = {enable = false}, + additional_vim_regex_highlighting = false, + }) + end, + }, + }, + lazy = false, + priority = 1000, + config = function() + require("no-clown-fiesta").setup({ + transparent = true, + styles = { + -- You can set any of the style values specified for `:h nvim_set_hl` + type = { bold = true }, + lsp = { underline = true }, + }, + }) + vim.cmd.colorscheme('no-clown-fiesta') + vim.api.nvim_set_hl(0,"LineNr",{fg="#727272"}) + vim.api.nvim_set_hl(0,"Visual",{bg="#171717"}) + vim.api.nvim_set_hl(0,"VertSplit",{bg="none",fg="#727272"}) + vim.api.nvim_set_hl(0,"WinSeparator",{bg="none",fg="#727272"}) + vim.api.nvim_set_hl(0,"StatusLine",{bg="none",fg="#727272"}) + end, +} diff --git a/lua/plugins/comments.lua b/lua/plugins/comments.lua new file mode 100644 index 0000000..5da4b3e --- /dev/null +++ b/lua/plugins/comments.lua @@ -0,0 +1,5 @@ +return { + 'tpope/vim-commentary', + event = { 'BufReadPre', 'BufNewFile' }, +} + diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua new file mode 100644 index 0000000..f53bb48 --- /dev/null +++ b/lua/plugins/copilot.lua @@ -0,0 +1,7 @@ +return { + "github/copilot.vim", + event = "VeryLazy", + build = function() + vim.cmd([[Copilot setup]]) + end, +} diff --git a/lua/plugins/easyalign.lua b/lua/plugins/easyalign.lua new file mode 100644 index 0000000..fcf254b --- /dev/null +++ b/lua/plugins/easyalign.lua @@ -0,0 +1,10 @@ +return { + "junegunn/vim-easy-align", + event = { "BufRead", "BufNewFile" }, + config = function() + -- Start interactive EasyAlign in visual mode (e.g., vipga) + vim.api.nvim_set_keymap("x", "ga", "<Plug>(EasyAlign)", {}) + -- Start interactive EasyAlign for a motion/text object (e.g., gaip) + vim.api.nvim_set_keymap("n", "ga", "<Plug>(EasyAlign)", {}) + end, +} diff --git a/lua/plugins/fugitive.lua b/lua/plugins/fugitive.lua new file mode 100644 index 0000000..12a6385 --- /dev/null +++ b/lua/plugins/fugitive.lua @@ -0,0 +1,14 @@ +return { + "tpope/vim-fugitive", + dependencies = "tpope/vim-rhubarb", + -- Only load when using one of the following commands: + keys = { + { "<leader>gs", "<cmd>G<CR>" }, -- G.it S.tatus + { "<leader>gd", "<cmd>G difftool<CR>" }, -- G.it D.iff + { "<leader>gm", "<cmd>Gvdiffsplit!<CR>" }, -- G.it M.erge + { "<leader>gc", "<cmd>G commit<CR>" }, -- G.it C.ommit + { "<leader>gu", "<cmd>G push<CR>" }, -- G.it push U.pstream + { "<leader>gp", "<cmd>G pull<CR>" }, -- G.it P.ull + { "<leader>gf", "<cmd>G fetch<CR>" }, -- G.it F.etch + }, +} diff --git a/lua/plugins/gitignore.lua b/lua/plugins/gitignore.lua new file mode 100644 index 0000000..08188a3 --- /dev/null +++ b/lua/plugins/gitignore.lua @@ -0,0 +1,7 @@ +return { + "antonk52/gitignore-grabber.nvim", + dependencies = { + { "nvim-telescope/telescope.nvim" }, + }, + cmd = "Gitignore", +} diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua new file mode 100644 index 0000000..ef8f427 --- /dev/null +++ b/lua/plugins/gitsigns.lua @@ -0,0 +1,9 @@ +return { + "lewis6991/gitsigns.nvim", + -- Only enable if git is installed + cond = function() + return vim.fn.executable("git") == 1 + end, + event = { "BufReadPre", "BufNewFile" }, + config = true, +} diff --git a/lua/plugins/harpoon.lua b/lua/plugins/harpoon.lua new file mode 100644 index 0000000..a6d4535 --- /dev/null +++ b/lua/plugins/harpoon.lua @@ -0,0 +1,20 @@ +return { + "theprimeagen/harpoon", + branch = "harpoon2", + dependencies = {"nvim-lua/plenary.nvim"}, + config = function() + local harpoon = require("harpoon") + harpoon:setup() + + vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end ) + vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end ) + + vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1)end ) + vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2)end ) + vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3)end ) + vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4)end ) + + vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end) + vim.keymap.set("n", "<C-S-P>", function() harpoon:list():next() end) + end, +} diff --git a/lua/plugins/lf.lua b/lua/plugins/lf.lua new file mode 100644 index 0000000..1ad7090 --- /dev/null +++ b/lua/plugins/lf.lua @@ -0,0 +1,21 @@ +return { + "lmburns/lf.nvim", + lazy = false, + dependencies = { + { "akinsho/toggleterm.nvim", version = "*", config = true }, + }, + config = function() + vim.g.lf_netrw = 1 + require("lf").setup({ + border = "rounded", + winblend = 20, + focus_on_open = true, + highlights = { -- highlights passed to toggleterm + Normal = {link = "Normal"}, + NormalFloat = {link = 'Normal'}, + FloatBorder = {guifg = "#111a1f", guibg = "#bada55"}, + }, + }) + vim.api.nvim_set_keymap("n", "<leader>lf", "<cmd>Lf<cr>", { noremap = true, silent = true }) + end, +} diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua new file mode 100644 index 0000000..e41d998 --- /dev/null +++ b/lua/plugins/lualine.lua @@ -0,0 +1,49 @@ +return { + "nvim-lualine/lualine.nvim", + dependencies = "nvim-tree/nvim-web-devicons", + event = { "BufReadPre", "BufNewFile" }, + config = function() + require("lualine").setup({ + options = { + theme = "no-clown-fiesta", + icons_enabled = true, + section_separators = { left = "", right = "" }, + component_separators = { left = "", right = "" }, + globalstatus = false, + ignore_focus = {}, + always_divide_middle = true, + refresh = { + statusline = 500, + tabline = 500, + winbar = 500, + }, + }, + sections = { + lualine_a = { "mode" }, + lualine_b = { "branch" }, + lualine_c = { "filename" }, + lualine_x = { "filetype" }, + lualine_y = { "progress" }, + lualine_z = { "location" }, + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = { "filename" }, + lualine_x = { "location" }, + lualine_y = {}, + lualine_z = {}, + }, + tabline = {}, + winbar = {}, + extensions = {'fugitive'}, + }) + -- Remove duplicate information that clutters the bottom of the screen + -- "-- INSERT --" on the left: + vim.opt.showmode = false + -- "100%" linenr/col on the right: + vim.opt.ruler = false + -- commands on the right: + vim.opt.showcmd = false + end, +} diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua new file mode 100644 index 0000000..d6f3ac0 --- /dev/null +++ b/lua/plugins/orgmode.lua @@ -0,0 +1,34 @@ +return { + 'nvim-orgmode/orgmode', + dependencies = { + { -- Nicely formatted bullet Headings + "akinsho/org-bullets.nvim", + dependencies = "nvim-treesitter/nvim-treesitter", + config = true, + }, + }, + event = 'VeryLazy', + ft = { 'org' }, + config = function() + -- This is bound to org-modern: + -- local Menu = require("org-modern.menu") + -- Setup orgmode + require('orgmode').setup({ + org_agenda_files = '~/Dropbox/org/**/*', + org_default_notes_file = '~/Dropbox/org/index.org', + emacs_config = { + -- executable_path = '/opt/homebrew/bin/emacs', + config_path = '$HOME/.config/emacs/early-init.el', + }, + }) + vim.opt.conceallevel = 2 + vim.opt.concealcursor = 'v' + + -- NOTE: If you are using nvim-treesitter with `ensure_installed = "all"` option + -- add `org` to ignore_install + -- require('nvim-treesitter.configs').setup({ + -- ensure_installed = 'all', + -- ignore_install = { 'org' }, + -- }) + end, +} diff --git a/lua/plugins/surround.lua b/lua/plugins/surround.lua new file mode 100644 index 0000000..aef9e72 --- /dev/null +++ b/lua/plugins/surround.lua @@ -0,0 +1,5 @@ +return { + "tpope/vim-surround", + dependencies = "tpope/vim-repeat", + event = { "BufReadPre", "BufNewFile" }, +} diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..f0efe69 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,34 @@ +return { + "nvim-telescope/telescope.nvim", + branch = "0.1.x", + dependencies = { + "nvim-lua/plenary.nvim", + }, + keys = { -- LazyLoad telescope when it's actually needed + + -- P.roject F.iles + { "<leader>pv", '<cmd>lua require("telescope.builtin").find_files()<cr>' }, + + -- P.roject S.earch + { "<leader>ps", '<cmd>lua require("telescope.builtin").grep_string({search = vim.fn.input("Grep > ")})<cr>' }, + + + -- F.ind Q.uickfix + { "<leader>qf", '<cmd>lua require("telescope.builtin").quickfix()<cr>' }, + + -- F.ind G.it (files known to git / not ignored or untracked) + { "<C-p>", '<cmd>lua require("telescope.builtin").git_files()<cr>' }, + + -- F.ind B.ranch + { "<leader>fb", '<cmd>lua require("telescope.builtin").grep_branches()<cr>' }, + }, + cmd = { + "Telescope", + "TelescopeFindFiles", + "TelescopeFindHelp", + "TelescopeQuickfix", + "TelescopeGitFiles", + "TelescopeGitCommits", + "TelescopeGrepBranches", + }, +} |