diff options
Diffstat (limited to 'dot_config/nvim/lua/plugins/trash')
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/autopairs.luaa | 7 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/crates.luaa | 17 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/grapple.luaa | 14 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/leetcode.luaa | 12 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/mini-pairs.luaa | 1 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/neck.luaa | 1 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/neogit.luaa | 9 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/neorg.luaa | 24 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/neorg.luaaa | 24 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/neotest.luaa | 82 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/noice.luaa | 23 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/nvim-surround.luaa | 10 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/orgmode.luaa | 19 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/persistence.luaa | 8 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/scroll.luaa | 38 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/trash/tabout.luaa | 31 |
16 files changed, 320 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/trash/autopairs.luaa b/dot_config/nvim/lua/plugins/trash/autopairs.luaa new file mode 100644 index 0000000..2db00d8 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/autopairs.luaa @@ -0,0 +1,7 @@ +return { + 'windwp/nvim-autopairs', + event = "InsertEnter", + config = true + -- use opts = {} for passing setup options + -- this is equivalent to setup({}) function +} diff --git a/dot_config/nvim/lua/plugins/trash/crates.luaa b/dot_config/nvim/lua/plugins/trash/crates.luaa new file mode 100644 index 0000000..f72a23f --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/crates.luaa @@ -0,0 +1,17 @@ +return { + "saecki/crates.nvim", + tag = "stable", + config = function() + require("crates").setup({ + lsp = { + enabled = true, + on_attach = function(client, bufnr) + -- the same on_attach function as for your other lsp's + end, + actions = true, + completion = true, + hover = true, + }, + }) + end, +} diff --git a/dot_config/nvim/lua/plugins/trash/grapple.luaa b/dot_config/nvim/lua/plugins/trash/grapple.luaa new file mode 100644 index 0000000..2d80958 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/grapple.luaa @@ -0,0 +1,14 @@ +return { + "cbochs/grapple.nvim", + opts = { + scope = "git", -- also try out "git_branch" + }, + event = { "BufReadPost", "BufNewFile" }, + cmd = "Grapple", + keys = { + { "<leader>m", "<cmd>Grapple toggle<cr>", desc = "Grapple tag" }, + { "<leader>M", "<cmd>Grapple toggle_tags<cr>", desc = "Grapple open tags window" }, + { "<leader>n", "<cmd>Grapple cycle_tags next<cr>", desc = "Grapple cycle next tag" }, + { "<leader>p", "<cmd>Grapple cycle_tags prev<cr>", desc = "Grapple cycle previous tag" }, + }, +} diff --git a/dot_config/nvim/lua/plugins/trash/leetcode.luaa b/dot_config/nvim/lua/plugins/trash/leetcode.luaa new file mode 100644 index 0000000..a057b2d --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/leetcode.luaa @@ -0,0 +1,12 @@ +return { + "kawre/leetcode.nvim", + build = ":TSUpdate html", -- if you have `nvim-treesitter` installed + dependencies = { + -- include a picker of your choice, see picker section for more details + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + }, + opts = { + -- configuration goes here + }, +} diff --git a/dot_config/nvim/lua/plugins/trash/mini-pairs.luaa b/dot_config/nvim/lua/plugins/trash/mini-pairs.luaa new file mode 100644 index 0000000..ed48bfc --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/mini-pairs.luaa @@ -0,0 +1 @@ +return { 'echasnovski/mini.pairs', version = '*' , opts = {}} diff --git a/dot_config/nvim/lua/plugins/trash/neck.luaa b/dot_config/nvim/lua/plugins/trash/neck.luaa new file mode 100644 index 0000000..4b1eaf7 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/neck.luaa @@ -0,0 +1 @@ +return {"shortcuts/no-neck-pain.nvim", version = "*"} diff --git a/dot_config/nvim/lua/plugins/trash/neogit.luaa b/dot_config/nvim/lua/plugins/trash/neogit.luaa new file mode 100644 index 0000000..b44d866 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/neogit.luaa @@ -0,0 +1,9 @@ +return { + "NeogitOrg/neogit", + dependencies = { + "nvim-lua/plenary.nvim", -- required + "sindrets/diffview.nvim", -- optional - Diff integration + "ibhagwan/fzf-lua", + }, + config = true, +} diff --git a/dot_config/nvim/lua/plugins/trash/neorg.luaa b/dot_config/nvim/lua/plugins/trash/neorg.luaa new file mode 100644 index 0000000..abe7685 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/neorg.luaa @@ -0,0 +1,24 @@ +return { + "nvim-neorg/neorg", + lazy = false, + version = "*", + config = function() + require("neorg").setup { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/notes", + }, + default_workspace = "notes", + }, + }, + }, + } + + vim.wo.foldlevel = 99 + vim.wo.conceallevel = 2 + end, + } diff --git a/dot_config/nvim/lua/plugins/trash/neorg.luaaa b/dot_config/nvim/lua/plugins/trash/neorg.luaaa new file mode 100644 index 0000000..abe7685 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/neorg.luaaa @@ -0,0 +1,24 @@ +return { + "nvim-neorg/neorg", + lazy = false, + version = "*", + config = function() + require("neorg").setup { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/notes", + }, + default_workspace = "notes", + }, + }, + }, + } + + vim.wo.foldlevel = 99 + vim.wo.conceallevel = 2 + end, + } diff --git a/dot_config/nvim/lua/plugins/trash/neotest.luaa b/dot_config/nvim/lua/plugins/trash/neotest.luaa new file mode 100644 index 0000000..4b75efb --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/neotest.luaa @@ -0,0 +1,82 @@ +return { + "nvim-neotest/neotest", + dependencies = { + "nvim-neotest/nvim-nio", + "nvim-lua/plenary.nvim", + "antoinemadec/FixCursorHold.nvim", + "nvim-treesitter/nvim-treesitter", + }, + keys = { + { "<leader>t", "", desc = "+test" }, + { + "<leader>tt", + function() + require("neotest").run.run(vim.fn.expand("%")) + end, + desc = "Run File (Neotest)", + }, + { + "<leader>tT", + function() + require("neotest").run.run(vim.uv.cwd()) + end, + desc = "Run All Test Files (Neotest)", + }, + { + "<leader>tr", + function() + require("neotest").run.run() + end, + desc = "Run Nearest (Neotest)", + }, + { + "<leader>tl", + function() + require("neotest").run.run_last() + end, + desc = "Run Last (Neotest)", + }, + { + "<leader>ts", + function() + require("neotest").summary.toggle() + end, + desc = "Toggle Summary (Neotest)", + }, + { + "<leader>to", + function() + require("neotest").output.open({ enter = true, auto_close = true }) + end, + desc = "Show Output (Neotest)", + }, + { + "<leader>tO", + function() + require("neotest").output_panel.toggle() + end, + desc = "Toggle Output Panel (Neotest)", + }, + { + "<leader>tS", + function() + require("neotest").run.stop() + end, + desc = "Stop (Neotest)", + }, + { + "<leader>tw", + function() + require("neotest").watch.toggle(vim.fn.expand("%")) + end, + desc = "Toggle Watch (Neotest)", + }, + }, + config = function() + require("neotest").setup({ + adapters = { + require("rustaceanvim.neotest"), + }, + }) + end, +} diff --git a/dot_config/nvim/lua/plugins/trash/noice.luaa b/dot_config/nvim/lua/plugins/trash/noice.luaa new file mode 100644 index 0000000..99ad716 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/noice.luaa @@ -0,0 +1,23 @@ +return { + 'folke/noice.nvim', + dependencies = {'MunifTanjim/nui.nvim'}, + event = "BufReadPost", + opts = { + lsp = { + progress = { + enabled = false, + }, + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, + }, + }, + presets = { + bottom_search = true, + command_palette = true, + long_message_to_split = false, + inc_rename = true, + }, + }, +} diff --git a/dot_config/nvim/lua/plugins/trash/nvim-surround.luaa b/dot_config/nvim/lua/plugins/trash/nvim-surround.luaa new file mode 100644 index 0000000..c9bd7a2 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/nvim-surround.luaa @@ -0,0 +1,10 @@ +return { + 'kylechui/nvim-surround', + version = '*', + opts = { + keymaps = { + visual = "gS", + visual_line = "gS", + }, + } +} diff --git a/dot_config/nvim/lua/plugins/trash/orgmode.luaa b/dot_config/nvim/lua/plugins/trash/orgmode.luaa new file mode 100644 index 0000000..ff383ff --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/orgmode.luaa @@ -0,0 +1,19 @@ +return { + 'nvim-orgmode/orgmode', + event = 'VeryLazy', + ft = { 'org' }, + config = function() + -- Setup orgmode + require('orgmode').setup({ + org_agenda_files = '~/orgfiles/**/*', + org_default_notes_file = '~/orgfiles/refile.org', + }) + + -- 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/dot_config/nvim/lua/plugins/trash/persistence.luaa b/dot_config/nvim/lua/plugins/trash/persistence.luaa new file mode 100644 index 0000000..e3b73fd --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/persistence.luaa @@ -0,0 +1,8 @@ +-- Lua +return { + "folke/persistence.nvim", + event = "BufReadPre", -- this will only start session saving when an actual file was opened + opts = { + -- add any custom options here + } +} diff --git a/dot_config/nvim/lua/plugins/trash/scroll.luaa b/dot_config/nvim/lua/plugins/trash/scroll.luaa new file mode 100644 index 0000000..120d141 --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/scroll.luaa @@ -0,0 +1,38 @@ +return { + "declancm/cinnamon.nvim", + version = "*", -- use latest release + config = function() + local cinnamon = require("cinnamon") + + cinnamon.setup() + + -- Centered scrolling: + vim.keymap.set("n", "<C-U>", function() + cinnamon.scroll("<C-U>zz") + end) + vim.keymap.set("n", "<C-D>", function() + cinnamon.scroll("<C-D>zz") + end) + + -- LSP: + vim.keymap.set("n", "gd", function() + cinnamon.scroll(vim.lsp.buf.definition) + end) + vim.keymap.set("n", "gD", function() + cinnamon.scroll(vim.lsp.buf.declaration) + end) + + -- Flash.nvim integration: + local flash = require("flash") + local jump = require("flash.jump") + + flash.setup({ + action = function(match, state) + cinnamon.scroll(function() + jump.jump(match, state) + jump.on_jump(state) + end) + end, + }) + end, +} diff --git a/dot_config/nvim/lua/plugins/trash/tabout.luaa b/dot_config/nvim/lua/plugins/trash/tabout.luaa new file mode 100644 index 0000000..cbc469a --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/tabout.luaa @@ -0,0 +1,31 @@ +return { + { + 'abecodes/tabout.nvim', + lazy = false, + config = function() + require('tabout').setup { + tabkey = '<Tab>', -- key to trigger tabout, set to an empty string to disable + backwards_tabkey = '<S-Tab>', -- key to trigger backwards tabout, set to an empty string to disable + act_as_tab = true, -- shift content if tab out is not possible + act_as_shift_tab = false, -- reverse shift content if tab out is not possible (if your keyboard/terminal supports <S-Tab>) + default_tab = '<C-t>', -- shift default action (only at the beginning of a line, otherwise <TAB> is used) + default_shift_tab = '<C-d>', -- reverse shift default action, + enable_backwards = true, -- well ... + completion = false, -- if the tabkey is used in a completion pum + tabouts = { + { open = "'", close = "'" }, + { open = '"', close = '"' }, + { open = '`', close = '`' }, + { open = '(', close = ')' }, + { open = '[', close = ']' }, + { open = '{', close = '}' } + }, + ignore_beginning = true, --[[ if the cursor is at the beginning of a filled element it will rather tab out than shift the content ]] + exclude = {} -- tabout will ignore these filetypes + } + end, + opt = true, -- Set this to true if the plugin is optional + event = 'InsertCharPre', -- Set the event to 'InsertCharPre' for better compatibility + priority = 1000, + }, +} |
