From 8f9c77878f8742a47d34a50748023d1b552cfbf1 Mon Sep 17 00:00:00 2001 From: mirenn Date: Mon, 21 Sep 2026 23:09:33 +0200 Subject: guix primer --- nvim/lua/plugins/comment.lua | 6 - nvim/lua/plugins/gitsigns.lua | 57 -------- nvim/lua/plugins/indent-blankline.lua | 16 --- nvim/lua/plugins/lazy.lua | 12 -- nvim/lua/plugins/lazydev.lua | 5 - nvim/lua/plugins/lspsaga.lua | 34 ----- nvim/lua/plugins/lualine.lua | 32 ----- nvim/lua/plugins/mini-starter.lua | 227 ------------------------------- nvim/lua/plugins/neopywal.lua | 26 ---- nvim/lua/plugins/neorg.lua | 126 ----------------- nvim/lua/plugins/noice.lua | 28 ---- nvim/lua/plugins/nvim-autopairs.lua | 6 - nvim/lua/plugins/nvim-cmp.lua | 64 --------- nvim/lua/plugins/nvim-lspconfig.lua | 138 ------------------- nvim/lua/plugins/nvim-treesitter.lua | 52 ------- nvim/lua/plugins/oil.lua | 63 --------- nvim/lua/plugins/parinfer-rust.lua | 6 - nvim/lua/plugins/telescope.lua | 42 ------ nvim/lua/plugins/todo-comments.lua | 36 ----- nvim/lua/plugins/toggleterm.lua | 64 --------- nvim/lua/plugins/vim-highlightedyank.lua | 8 -- nvim/lua/plugins/vim-illuminate.lua | 5 - nvim/lua/plugins/which-key.lua | 25 ---- 23 files changed, 1078 deletions(-) delete mode 100644 nvim/lua/plugins/comment.lua delete mode 100644 nvim/lua/plugins/gitsigns.lua delete mode 100644 nvim/lua/plugins/indent-blankline.lua delete mode 100644 nvim/lua/plugins/lazy.lua delete mode 100644 nvim/lua/plugins/lazydev.lua delete mode 100644 nvim/lua/plugins/lspsaga.lua delete mode 100644 nvim/lua/plugins/lualine.lua delete mode 100644 nvim/lua/plugins/mini-starter.lua delete mode 100644 nvim/lua/plugins/neopywal.lua delete mode 100644 nvim/lua/plugins/neorg.lua delete mode 100644 nvim/lua/plugins/noice.lua delete mode 100644 nvim/lua/plugins/nvim-autopairs.lua delete mode 100644 nvim/lua/plugins/nvim-cmp.lua delete mode 100644 nvim/lua/plugins/nvim-lspconfig.lua delete mode 100644 nvim/lua/plugins/nvim-treesitter.lua delete mode 100644 nvim/lua/plugins/oil.lua delete mode 100644 nvim/lua/plugins/parinfer-rust.lua delete mode 100644 nvim/lua/plugins/telescope.lua delete mode 100644 nvim/lua/plugins/todo-comments.lua delete mode 100644 nvim/lua/plugins/toggleterm.lua delete mode 100644 nvim/lua/plugins/vim-highlightedyank.lua delete mode 100644 nvim/lua/plugins/vim-illuminate.lua delete mode 100644 nvim/lua/plugins/which-key.lua (limited to 'nvim/lua/plugins') diff --git a/nvim/lua/plugins/comment.lua b/nvim/lua/plugins/comment.lua deleted file mode 100644 index 559fd3c..0000000 --- a/nvim/lua/plugins/comment.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "numToStr/Comment.nvim", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - opts = {} -} diff --git a/nvim/lua/plugins/gitsigns.lua b/nvim/lua/plugins/gitsigns.lua deleted file mode 100644 index 2df9a2e..0000000 --- a/nvim/lua/plugins/gitsigns.lua +++ /dev/null @@ -1,57 +0,0 @@ -local opts = { - signs = { - add = { text = '┃' }, - change = { text = '┃' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - untracked = { text = '┆' }, - }, - signs_staged = { - add = { text = '┃' }, - change = { text = '┃' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - untracked = { text = '┆' }, - }, - signs_staged_enable = true, - signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` - numhl = false, -- Toggle with `:Gitsigns toggle_numhl` - linehl = false, -- Toggle with `:Gitsigns toggle_linehl` - word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` - watch_gitdir = { - follow_files = true - }, - auto_attach = true, - attach_to_untracked = false, - current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` - current_line_blame_opts = { - virt_text = true, - virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align' - delay = 1000, - ignore_whitespace = false, - virt_text_priority = 100, - use_focus = true, - }, - current_line_blame_formatter = ', - ', - sign_priority = 6, - update_debounce = 100, - status_formatter = nil, -- Use default - max_file_length = 40000, -- Disable if file is longer than this (in lines) - preview_config = { - -- Options passed to nvim_open_win - style = 'minimal', - relative = 'cursor', - row = 0, - col = 1 - }, -} - -return { - "lewis6991/gitsigns.nvim", - lazy = true, - event = "VeryLazy", - -- event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - opts = opts, -} diff --git a/nvim/lua/plugins/indent-blankline.lua b/nvim/lua/plugins/indent-blankline.lua deleted file mode 100644 index af9cff8..0000000 --- a/nvim/lua/plugins/indent-blankline.lua +++ /dev/null @@ -1,16 +0,0 @@ -return { - "lukas-reineke/indent-blankline.nvim", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - main = "ibl", - ---@module "ibl" - ---@type ibl.config - opts = { - exclude = { - filetypes = { - "dashboard", - "norg" - }, - }, - }, -} diff --git a/nvim/lua/plugins/lazy.lua b/nvim/lua/plugins/lazy.lua deleted file mode 100644 index d48db7e..0000000 --- a/nvim/lua/plugins/lazy.lua +++ /dev/null @@ -1,12 +0,0 @@ -local init = function() - local keymap = vim.keymap - keymap.set("n", "p", ":Lazy home", - { noremap = true, silent = true, desc = "Plugin Manager (Lazy)" }) -end - - -return { - "folke/lazy.nvim", - lazy = false, - init = init -} diff --git a/nvim/lua/plugins/lazydev.lua b/nvim/lua/plugins/lazydev.lua deleted file mode 100644 index 704d963..0000000 --- a/nvim/lua/plugins/lazydev.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "folke/lazydev.nvim", - ft = "lua", -- only load on lua files - opts = {} -} diff --git a/nvim/lua/plugins/lspsaga.lua b/nvim/lua/plugins/lspsaga.lua deleted file mode 100644 index 86e949f..0000000 --- a/nvim/lua/plugins/lspsaga.lua +++ /dev/null @@ -1,34 +0,0 @@ -local config = function() - vim.diagnostic.config({ - severity_sort = true, - virtual_lines = true, - virtual_text = false - }) - require("lspsaga").setup({ - ui = { - code_action = "", - }, - outline = { - keys = { - toggle_or_jump = "" - } - }, - finder = { - keys = { - toggle_or_open = "", - shuttle = "", - } - }, - }) -end - -return { - "nvimdev/lspsaga.nvim", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - config = config, - dependencies = { - "nvim-treesitter/nvim-treesitter", -- optional - "nvim-tree/nvim-web-devicons", -- optional - }, -} diff --git a/nvim/lua/plugins/lualine.lua b/nvim/lua/plugins/lualine.lua deleted file mode 100644 index 495822e..0000000 --- a/nvim/lua/plugins/lualine.lua +++ /dev/null @@ -1,32 +0,0 @@ -local opts = { - options = { - theme = "auto", - globalstatus = true, - disabled_filetypes = { "toggleterm", "lazy", "oil", "dashboard", "TelescopePrompt", "oil_preview", "ministarter" } - }, - sections = { - lualine_a = { "mode" }, - lualine_b = { "branch", "diff", - { - "diagnostics", - sections = { "error", "warn", "info", "hint" }, - symbols = { error = " ", warn = " ", info = " ", hint = " " }, - } - }, - lualine_c = { - { - require("lazy.status").updates, - cond = require("lazy.status").has_updates, - color = { fg = "#ff9e64" }, - }, - }, - }, -} - -return { - "nvim-lualine/lualine.nvim", - lazy = true, - event = "VeryLazy", - -- event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - opts = opts, -} diff --git a/nvim/lua/plugins/mini-starter.lua b/nvim/lua/plugins/mini-starter.lua deleted file mode 100644 index 67aae04..0000000 --- a/nvim/lua/plugins/mini-starter.lua +++ /dev/null @@ -1,227 +0,0 @@ -Headers = { - [[ - ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗ - ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║ - ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║ - ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║ - ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║ - ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ - ]], - [[ - ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓ - ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒ - ▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░ - ▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ - ▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒ - ░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░ - ░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░ - ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ - ░ ░ ░ ░ ░ ░ ░ ░ - ░ - ]], - [[ - ██████ █████ █████ █████ ███ - ░░██████ ░░███ ░░███ ░░███ ░░░ - ░███░███ ░███ ██████ ██████ ░███ ░███ ████ █████████████ - ░███░░███░███ ███░░███ ███░░███ ░███ ░███ ░░███ ░░███░░███░░███ - ░███ ░░██████ ░███████ ░███ ░███ ░░███ ███ ░███ ░███ ░███ ░███ - ░███ ░░█████ ░███░░░ ░███ ░███ ░░░█████░ ░███ ░███ ░███ ░███ - █████ ░░█████░░██████ ░░██████ ░░███ █████ █████░███ █████ - ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ - ]], - [[ - ▐ ▄ ▄▄▄ . ▌ ▐·▪ • ▌ ▄ ·. - •█▌▐█▀▄.▀· ▄█▀▄ ▪█·█▌██ ·██ ▐███▪ - ▐█▐▐▌▐▀▀▪▄▐█▌.▐▌▐█▐█•▐█·▐█ ▌▐▌▐█· - ██▐█▌▐█▄▄▌▐█▌.▐▌ ███ ▐█▌██ ██▌▐█▌ - ▀▀ █▪ ▀▀▀ ▀█▄▀▪. ▀ ▀▀▀▀▀ █▪▀▀▀ - ]], - [[ - __ __ ________ ______ __ __ ______ __ __ - | \ | \ \/ \| \ | \ \ \ / \ - | ▓▓\ | ▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ | ▓▓\▓▓▓▓▓▓ ▓▓\ / ▓▓ - | ▓▓▓\| ▓▓ ▓▓__ | ▓▓ | ▓▓ ▓▓ | ▓▓ | ▓▓ | ▓▓▓\ / ▓▓▓ - | ▓▓▓▓\ ▓▓ ▓▓ \ | ▓▓ | ▓▓\▓▓\ / ▓▓ | ▓▓ | ▓▓▓▓\ ▓▓▓▓ - | ▓▓\▓▓ ▓▓ ▓▓▓▓▓ | ▓▓ | ▓▓ \▓▓\ ▓▓ | ▓▓ | ▓▓\▓▓ ▓▓ ▓▓ - | ▓▓ \▓▓▓▓ ▓▓_____| ▓▓__/ ▓▓ \▓▓ ▓▓ _| ▓▓_| ▓▓ \▓▓▓| ▓▓ - | ▓▓ \▓▓▓ ▓▓ \\▓▓ ▓▓ \▓▓▓ | ▓▓ \ ▓▓ \▓ | ▓▓ - \▓▓ \▓▓\▓▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓ \▓▓▓▓▓▓\▓▓ \▓▓ - ]], - [[ - ▀███▄ ▀███▀███▀▀▀███ ▄▄█▀▀██▄ ▀████▀ ▀███▀████▀████▄ ▄███▀ - ███▄ █ ██ ▀█▄██▀ ▀██▄ ▀██ ▄█ ██ ████ ████ - █ ███ █ ██ █ ██▀ ▀██ ██▄ ▄█ ██ █ ██ ▄█ ██ - █ ▀██▄ █ ██████ ██ ██ ██▄ █▀ ██ █ █▓ █▀ ██ - █ ▀██▄▓ ██ █ ▄█ ██ ▀▓█ ▓▀ █▓ ▓ █▓▄█▀ ██ - ▓ ▓█▓ █▓ ▄███ ██▀ ▓██▄ █▓ ▓ ▀▓█▀ ██ - ▓ ▀▓▓▓▓ ▓▓ ▓ ▓██ ▓█▓ ▓▓ ▓▀ ▓▓ ▓ ▓▓▓▓▀ ▓▓ - ▓ ▓▓▓ ▓▓ ▓▓█▓▓▓ ▓▓▓ ▓▓▒▒ ▒▓ ▒ ▀▓▓▀ ▓▓ - ▒ ▒ ▒ ▒▓▓▒ ▒▒▒▓▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒▓▒ ▒▒ ▒▒▒ ▒ ▒ ▒▒▒ - ]], - [[ - ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ - ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ - ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ - ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ - ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ - ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ - ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ - ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ - ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ - ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ - ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ - ]], - [[ - ,-. _,---._ __ / \ - / ) .-' `./ / \ - ( ( ,' `/ /| - \ `-" \'\ / | - `. , \ \ / | - /`. ,'-`----Y | - ( ; | ' - | ,-. ,-' | / - | | ( | | / - ) | \ `.___________|/ - `--' `--' - ]], - [[ - |\ _,,,---,,_ - ZZZzz /,`.-'`' -. ;-;;,_ - |,4- ) )-,_. ,\ ( `'-' - '---''(_/--' `-'\_) - ]], - [[ - ╭╮╭┬─╮╭─╮┬ ┬┬╭┬╮ - │││├┤ │ │╰┐┌╯││││ - ╯╰╯╰─╯╰─╯ ╰╯ ┴┴ ┴ - ]], -} - -Quotes = { - [[ - I don't care that they stole my idea... I care that they don't have any of their own. - ~ Nikola Tesla - ]], - [[ - Make everything as simple as possible, but not simpler. - ~ Albert Einstein - ]], - [[ - Code never lies, comments sometimes do. - ~ Ron Jeffries - ]], - [[ - Good code is its own best documentation. - ~ Steve McConnell - ]], - [[ - I do not fear computers. I fear the lack of them. - ~ Isaac Asimov - ]], - [[ - If a machine is expected to be infallible, it cannot also be intelligent. - ~ Alan Turing - ]], - [[ - Mathematical reasoning may be regarded. - ~ Alan Turing - ]], - [[ - Anti-social behavior is a trait of intelligence in a world full of conformists. - ~ Nikola Tesla - ]], - [[ - We are very, very small, but we are profoundly capable of very, very big things. - ~ Stephen Hawking - ]], - [[ - Quiet people have the loudest minds. - ~ Stephen Hawking - ]], - [[ - An idiot admires complexity, a genius admires simplicity. - ~ Terry Davis - ]], - [[ - It's hardware that makes a machine fast. It's software that makes a fast machine slow. - ~ Craig Reucassel - ]], - [[ - Computer science is no more about computers than astronomy is about telescopes. - ~ Edsger Dijkstra - ]], - [[ - An algorithm must be seen to be believed. - ~ Donald Knuth - ]], - [[ - In theory there is no difference between theory and practice. - In practice there is. - ~ Yogi Berra - ]], - [[ - If Java had true garbage collection, most programs would delete themselves upon execution. - ~ Robert Sewell - ]], - [[ - If debugging is the process of removing software bugs, - then programming must be the process of putting them in. - ~ Edsger Dijkstra - ]], - [[ - Most of you are familiar with the virtues of a programmer. - There are three, of course: laziness, impatience, and hubris. - ~ Larry Wall - ]], - [[ - The question of whether computers can think is like the question of whether submarines can swim. - ~ Edsger Dijkstra - ]], - [[ - Of course, I'd also suggest that whoever was the genius who thought it was a good idea to read - things ONE F*CKING BYTE AT A TIME with system calls for each byte should be retroactively aborted. - Who the f*ck does idiotic things like that? How did they not die as babies, considering that they - were likely too stupid to find a tit to suck on? - ~ Linus Torvalds - ]] -} - - -math.randomseed(os.time()) - -local header = function() - return Headers[math.random(#Headers)] -end - -local footer = function() - return Quotes[math.random(#Quotes)] -end - - -local config = function() - local starter = require("mini.starter") - vim.keymap.set("n", "d", starter.open, { desc = "Dashboard" }) - starter.setup({ - autoopen = true, - evaluate_single = false, - items = { - starter.sections.recent_files(5, false, true), - { name = "Plugin Manager", action = "Lazy", section = "Actions" }, - { name = "File Browser", action = "Oil --float", section = "Actions" }, - { name = "Neorg Index", action = "Neorg index", section = "Actions" }, - { name = 'Edit new buffer', action = 'enew', section = 'Actions' }, - { name = 'Quit Neovim', action = 'qall', section = 'Actions' }, - }, - header = header, - footer = footer, - content_hooks = nil, - query_updaters = "abcdefghijklmnopqrstuvwxyz0123456789_-.", - silent = false, - }) -end - -return { - "echasnovski/mini.starter", - lazy = false, - config = config -} diff --git a/nvim/lua/plugins/neopywal.lua b/nvim/lua/plugins/neopywal.lua deleted file mode 100644 index 7c37dbe..0000000 --- a/nvim/lua/plugins/neopywal.lua +++ /dev/null @@ -1,26 +0,0 @@ -local init = function() - vim.cmd.colorscheme("neopywal") -end - -local config = function() - require("neopywal").setup({ - plugins = { - treesitter = true - }, - custom_colors = {}, - custom_highlights = {}, - use_palette = { - light = "wallust", - dark = "wallust", - }, - }) -end - -return { - "RedsXDD/neopywal.nvim", - lazy = false, - name = "neopywal", - init = init, - config = config, - priority = 1000, -} diff --git a/nvim/lua/plugins/neorg.lua b/nvim/lua/plugins/neorg.lua deleted file mode 100644 index 528fc73..0000000 --- a/nvim/lua/plugins/neorg.lua +++ /dev/null @@ -1,126 +0,0 @@ -local config = function() - vim.api.nvim_create_autocmd("Filetype", { - pattern = "norg", - callback = function() - -- remap keybinds - vim.keymap.set("n", "nn", "(neorg.dirman.new-note)", { buffer = true }) - vim.keymap.set("n", "tc", "Neorg toc", { buffer = true }) - - vim.keymap.set("i", "", "(neorg.promo.demote)", { buffer = true }) - vim.keymap.set("i", "", "(neorg.promo.promote)", { buffer = true }) - vim.keymap.set("i", "", "(neorg.itero.next-iteration)", { buffer = true }) - vim.keymap.set("i", "", "(neorg.tempus.insert-date.insert-mode)", { buffer = true }) - - vim.keymap.set("n", "<.", "(neorg.promo.demote)", { buffer = true }) - vim.keymap.set("n", "<<", "(neorg.promo.demote.nested)", { buffer = true }) - vim.keymap.set("n", "", "(neorg.qol.todo-items.todo.task-cycle)", - { buffer = true }) - vim.keymap.set("n", "", "(neorg.esupports.hop.hop-link)", { buffer = true }) - vim.keymap.set("n", "cm", "(neorg.looking-glass.magnify-code-block)", - { buffer = true }) - vim.keymap.set("n", "id", "(neorg.tempus.insert-date)", { buffer = true }) - vim.keymap.set("n", "li", "(neorg.pivot.list.invert)", { buffer = true }) - vim.keymap.set("n", "lt", "(neorg.pivot.list.toggle)", { buffer = true }) - vim.keymap.set("n", "ma", "(neorg.qol.todo-items.todo.task-ambiguous)", - { buffer = true }) - vim.keymap.set("n", "mc", "(neorg.qol.todo-items.todo.task-cancelled)", - { buffer = true }) - vim.keymap.set("n", "md", "(neorg.qol.todo-items.todo.task-done)", { buffer = true }) - vim.keymap.set("n", "mh", "(neorg.qol.todo-items.todo.task-on-hold)", - { buffer = true }) - vim.keymap.set("n", "mi", "(neorg.qol.todo-items.todo.task-important)", - { buffer = true }) - vim.keymap.set("n", "mp", "(neorg.qol.todo-items.todo.task-pending)", - { buffer = true }) - vim.keymap.set("n", "mr", "(neorg.qol.todo-items.todo.task-recurring)", - { buffer = true }) - vim.keymap.set("n", "mu", "(neorg.qol.todo-items.todo.task-undone)", - { buffer = true }) - vim.keymap.set("n", "", "(neorg.esupports.hop.hop-link.vsplit)", { buffer = true }) - vim.keymap.set("n", "", "(neorg.esupports.hop.hop-link.tab-drop)", { buffer = true }) - vim.keymap.set("n", ">.", "Plug>(neorg.promo.promote)", { buffer = true }) - vim.keymap.set("n", ">>", "Plug>(neorg.promo.promote.nested)", { buffer = true }) - - vim.keymap.set("v", "<", "(neorg.promo.demote.range)", { buffer = true }) - vim.keymap.set("v", ">", "(neorg.promo.promote.range)", { buffer = true }) - end, - }) - - require("neorg").setup({ - load = { - ["core.defaults"] = { - config = { - disable = { - "core.esupports.metagen", - "core.journal", - } - } - }, - ["core.keybinds"] = { - config = { - default_keybinds = false - } - }, - ["core.summary"] = {}, - -- ["core.latex.renderer"] = {}, - ["core.export"] = {}, - ["core.dirman"] = { - config = { - default_workspace = "documents", - workspaces = { - documents = "~/Documents/neorg", - physics = "~/Documents/neorg/uni/fisica", - asd = "~/Documents/neorg/uni/algoritmi-strutture-dati", - }, - index = "index.norg" - } - }, - ["core.completion"] = { - config = { - engine = "nvim-cmp" - } - }, - ["core.journal"] = { - config = { - journal_folder = "journal", - workspace = "documents" - } - }, - ["core.esupports.metagen"] = { - config = { - timezone = "implicit-local", - type = "auto" - } - }, - ["core.concealer"] = { - config = { - folds = false, - icons = { - heading = { - icons = { "󰲠", "󰲢", "󰲤", "󰲦", "󰲨", "󰲪" }, - }, - todo = { - cancelled = { icon = "" }, - pending = { icon = "󰔛" }, - uncertain = { icon = "" }, - urgent = { icon = "" }, - }, - code_block = { - conceal = true, - } - } - } - } - } - }) -end - -return { - "nvim-neorg/neorg", - lazy = true, - ft = "norg", - cmd = "Neorg", - version = "*", -- Pin Neorg to the latest stable release - config = config, - -- dependencies = { "3rd/image.nvim" } -} diff --git a/nvim/lua/plugins/noice.lua b/nvim/lua/plugins/noice.lua deleted file mode 100644 index 43a12b2..0000000 --- a/nvim/lua/plugins/noice.lua +++ /dev/null @@ -1,28 +0,0 @@ -local opts = { - lsp = { - -- override markdown rendering so that **cmp** and other plugins use **Treesitter** - override = { - ["vim.lsp.util.convert_input_to_markdown_lines"] = true, - ["vim.lsp.util.stylize_markdown"] = true, - ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp - }, - }, - -- you can enable a preset for easier configuration - presets = { - bottom_search = true, -- use a classic bottom cmdline for search - command_palette = true, -- position the cmdline and popupmenu together - long_message_to_split = true, -- long messages will be sent to a split - inc_rename = false, -- enables an input dialog for inc-rename.nvim - lsp_doc_border = true, -- add a border to hover docs and signature help - }, -} - -return { - "folke/noice.nvim", - lazy = true, - event = "VeryLazy", - opts = opts, - dependencies = { - "MunifTanjim/nui.nvim", - }, -} diff --git a/nvim/lua/plugins/nvim-autopairs.lua b/nvim/lua/plugins/nvim-autopairs.lua deleted file mode 100644 index d92a8cc..0000000 --- a/nvim/lua/plugins/nvim-autopairs.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "windwp/nvim-autopairs", - lazy = true, - event = "InsertEnter", - config = true -} diff --git a/nvim/lua/plugins/nvim-cmp.lua b/nvim/lua/plugins/nvim-cmp.lua deleted file mode 100644 index b7d71a3..0000000 --- a/nvim/lua/plugins/nvim-cmp.lua +++ /dev/null @@ -1,64 +0,0 @@ -local config = function() - local cmp = require("cmp") - vim.opt.completeopt = "menu,menuone" - - cmp.setup({ - formatting = { - expandable_indicator = false, - fields = { "abbr", "kind" }, - format = require("lspkind").cmp_format({ - mode = "text_symbol", - maxwidth = function() return math.floor(0.45 * vim.o.columns) end, - ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first) - before = function(_, vim_item) - vim_item.menu = "" - return vim_item - end - }) - }, - snippet = { - expand = function(args) - vim.snippet.expand(args.body) - end, - }, - window = { - completion = cmp.config.window.bordered(), - documentation = cmp.config.window.bordered(), - }, - mapping = { - [""] = cmp.mapping.select_next_item(), - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete(), - [""] = cmp.mapping.abort(), - [""] = cmp.mapping.confirm({ select = true }), - }, - sources = cmp.config.sources( - { - { name = "lazydev", group_index = 0 } - }, { - { name = "neorg" } - }, { - { name = "nvim_lsp" }, - }, { - { name = "path" }, - }, { - { name = "buffer" }, - } - ) - }) -end - -return { - "hrsh7th/nvim-cmp", - lazy = true, - event = "InsertEnter", - config = config, - dependencies = { - "neovim/nvim-lspconfig", - "onsails/lspkind.nvim", - "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", - }, -} diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua deleted file mode 100644 index 4c69816..0000000 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ /dev/null @@ -1,138 +0,0 @@ -local config = function() - local lsp = vim.lsp - local capabilities = require("cmp_nvim_lsp").default_capabilities() - - -- setting custom signs - vim.diagnostic.config({ - signs = { - text = { - [vim.diagnostic.severity.ERROR] = '', - [vim.diagnostic.severity.WARN] = '', - [vim.diagnostic.severity.HINT] = '', - [vim.diagnostic.severity.INFO] = '', - }, - linehl = { - [vim.diagnostic.severity.ERROR] = 'ErrorMsg', - }, - numhl = { - [vim.diagnostic.severity.WARN] = 'WarningMsg', - }, - }, - }) - - vim.api.nvim_create_autocmd('LspAttach', { - callback = function(ev) - local client = lsp.get_client_by_id(ev.data.client_id) - local keymap = vim.keymap - local opts = { noremap = true, silent = true, buffer = ev.buf, desc = "" } - - -- setting custom keymaps - opts.desc = "Finder" - keymap.set("n", "lf", ":Lspsaga finder", opts) -- go to definition - opts.desc = "Peek Definition (Lspsaga)" - keymap.set("n", "lp", ":Lspsaga peek_definition", opts) -- peak definition - opts.desc = "Goto Definition (Lspsaga)" - keymap.set("n", "lg", ":Lspsaga goto_definition", opts) -- go to definition - opts.desc = "Code Action (Lspsaga)" - keymap.set("n", "la", ":Lspsaga code_action", opts) -- see available code actions - opts.desc = "Rename (Lspsaga)" - keymap.set("n", "lr", ":Lspsaga rename", opts) -- smart rename - opts.desc = "Hover Documentation (Lspsaga)" - keymap.set("n", "lk", lsp.buf.hover, opts) -- show documentation for what is under cursor - opts.desc = "Outline (Lspsaga)" - keymap.set("n", "lo", ":Lspsaga outline", opts) -- show outline - opts.desc = "Diagnostic (Lspsaga)" - keymap.set("n", "ld", ":Lspsaga show_workspace_diagnostics", opts) -- show diagnostics - - -- enable auto formatting on save - if client ~= nil and client:supports_method("textDocument/formatting") then - vim.api.nvim_create_autocmd("BufWritePre", { - buffer = ev.buf, - callback = function() - lsp.buf.format({ async = true }) - end, - }) - end - end - }) - - vim.api.nvim_create_autocmd('LspDetach', { - callback = function(ev) - local client = lsp.get_client_by_id(ev.data.client_id) - local keymap = vim.keymap - keymap.del("n", "lf") - keymap.del("n", "lp") - keymap.del("n", "lg") - keymap.del("n", "la") - keymap.del("n", "lr") - keymap.del("n", "lk") - keymap.del("n", "lo") - keymap.del("n", "ld") - if client ~= nil and client:supports_method('textDocument/formatting') then - vim.api.nvim_clear_autocmds({ - event = 'BufWritePre', - buffer = ev.buf, - }) - end - end, - }) - - -- C/C++ - lsp.enable("clangd") - lsp.config("clangd", { - capabilities = capabilities, - }) - -- Rust - lsp.enable("rust_analyzer") - lsp.config("rust_analyzer", { - capabilities = capabilities, - }) - -- Haskell - lsp.enable("hls") - lsp.config("hls", { - capabilities = capabilities, - settings = { - ['haskell'] = { - cabalFormattingProvider = "cabalfmt", - formattingProvider = "ormolu" - }, - }, - }) - -- Lua - lsp.enable("lua_ls") - lsp.config("lua_ls", { - capabilities = capabilities, - }) - -- JavaScript/Typescript - lsp.enable("ts_ls") - lsp.config("ts_ls", { - capabilities = capabilities, - }) - -- CSS - lsp.enable("cssls") - lsp.config("cssls", { - capabilities = capabilities, - }) - -- Meson - lsp.enable("mesonlsp") - lsp.config("mesonlsp", { - capabilities = capabilities, - }) - -- Zig - lsp.enable("zls") - lsp.config("zls", { - capabilities = capabilities, - }) - -- Python - lsp.enable("pyright") - lsp.config("pyright", { - capabilities = capabilities, - }) -end - -return { - "neovim/nvim-lspconfig", - config = config, - lazy = true, - event = { "FileType" }, -} diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua deleted file mode 100644 index c053e84..0000000 --- a/nvim/lua/plugins/nvim-treesitter.lua +++ /dev/null @@ -1,52 +0,0 @@ -local config = function() - require("nvim-treesitter.config").setup { - install_dir = vim.fn.stdpath('data') .. '/site', - auto_install = false, - sync_install = false, - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - }, - incremental_selection = { - enable = true - }, - indent = { - enable = true, - }, - autotag = { - enable = true, - }, - } - require("nvim-treesitter").install { - "c", - "lua", - "markdown", - "vim", - "vimdoc", - "query", - "regex", - "diff", - "cmake", - "meson", - "markdown_inline", - "bash", - "toml", - "latex", - "cpp", - "rust", - "haskell", - "nix", - "javascript", - "norg", - "fish", - "kdl", - } -end - -return { - "nvim-treesitter/nvim-treesitter", - lazy = false, - branch = "main", - build = ":TSUpdate", - config = config -} diff --git a/nvim/lua/plugins/oil.lua b/nvim/lua/plugins/oil.lua deleted file mode 100644 index 0d90db2..0000000 --- a/nvim/lua/plugins/oil.lua +++ /dev/null @@ -1,63 +0,0 @@ -local init = function() - local keymap = vim.keymap - keymap.set("n", "b", ":Oil --float .", - { noremap = true, silent = true, desc = "File browser (Oil)" }) -- Oil -end - -local config = function() - local detail = false - require("oil").setup({ - float = { - border = "rounded", - }, - confirmation = { - border = "rounded", - }, - progress = { - border = "rounded", - }, - ssh = { - border = "rounded", - }, - keymaps_help = { - border = "rounded", - }, - default_file_explorer = true, - delete_to_trash = true, - skip_confirm_for_simple_edits = true, - keymaps = { - ["b?"] = "actions.show_help", - [""] = "actions.select", - ["bp"] = "actions.preview", - ["q"] = "actions.close", - ["br"] = "actions.refresh", - ["-"] = "actions.parent", - ["_"] = "actions.open_cwd", - ["~"] = "actions.cd", - ["bs"] = "actions.change_sort", - ["b."] = "actions.toggle_hidden", - ["bt"] = "actions.toggle_trash", - ["bd"] = { - desc = "Toggle file detail view", - callback = function() - detail = not detail - if detail then - require("oil").set_columns({ "icon", "permissions", "size", "mtime" }) - else - require("oil").set_columns({ "icon" }) - end - end, - }, - }, - use_default_keymaps = false, - }) -end - -return { - "stevearc/oil.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - lazy = true, - cmd = "Oil", - init = init, - config = config -} diff --git a/nvim/lua/plugins/parinfer-rust.lua b/nvim/lua/plugins/parinfer-rust.lua deleted file mode 100644 index 2b31d8a..0000000 --- a/nvim/lua/plugins/parinfer-rust.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "eraserhd/parinfer-rust", - build = "cargo build --release", - lazy = true, - ft = { "scheme", "lisp" } -} diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua deleted file mode 100644 index 0f6d853..0000000 --- a/nvim/lua/plugins/telescope.lua +++ /dev/null @@ -1,42 +0,0 @@ -local init = function() - local keymap = vim.keymap - local opts = { noremap = true, silent = true, desc = "" } - opts.desc = "Keymaps (Telescope)" - keymap.set("n", "tk", ":Telescope keymaps", opts) -- Keymaps - opts.desc = "Help (Telescope)" - keymap.set("n", "th", ":Telescope help_tags", opts) -- Help - opts.desc = "Find files (Telescope)" - keymap.set("n", "tf", ":Telescope find_files", opts) -- Find files - opts.desc = "All commands (Telescope)" - keymap.set("n", "ta", ":Telescope", opts) -- All commands - opts.desc = "Find words (Telescope)" - keymap.set("n", "tw", ":Telescope live_grep", opts) -- Find words - opts.desc = "Buffers (Telescope)" - keymap.set("n", "tb", ":Telescope buffers", opts) -- Buffers -end - -local config = function() - require("telescope").setup({ - defaults = require("telescope.themes").get_ivy(), - pickers = { - find_files = { - hidden = true, - }, - builtin = { - previewer = false, - }, - help_tags = { - previewer = false, - } - }, - }) -end - -return { - "nvim-telescope/telescope.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, - lazy = true, - cmd = "Telescope", - init = init, - config = config, -} diff --git a/nvim/lua/plugins/todo-comments.lua b/nvim/lua/plugins/todo-comments.lua deleted file mode 100644 index 1ae4a83..0000000 --- a/nvim/lua/plugins/todo-comments.lua +++ /dev/null @@ -1,36 +0,0 @@ -local opts = { - keywords = { - FIX = { icon = "", color = "error", alt = { "FIXME", "BUG", "FIXIT", "ISSUE" } }, - TODO = { icon = "", color = "info" }, - HACK = { icon = "", color = "hack" }, - WARN = { icon = "", color = "warning", alt = { "WARNING", "XXX" } }, - PERF = { icon = "󰅒", color = "perf", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } }, - NOTE = { icon = "", color = "hint", alt = { "INFO" } }, - TEST = { icon = "", color = "test", alt = { "TESTING", "PASSED", "FAILED" } }, - }, - colors = { - error = "@text.title.1.markdown", - info = "DiagnosticInfo", - hack = "@text.title.2.markdown", - warning = "@text.title.3.markdown", - perf = "@text.title.4.markdown", - hint = "@text.title.5.markdown", - test = "@text.title.6.markdown", - } -} - -return { - "folke/todo-comments.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - opts = opts -} - --- FIX: ciao --- TODO: ciao --- HACK: ciao --- WARN: ciao --- PERF: ciao --- NOTE: ciao --- TEST: ciao diff --git a/nvim/lua/plugins/toggleterm.lua b/nvim/lua/plugins/toggleterm.lua deleted file mode 100644 index 9bd1b78..0000000 --- a/nvim/lua/plugins/toggleterm.lua +++ /dev/null @@ -1,64 +0,0 @@ -local init = function() - local keymap = vim.keymap - --[[ keymap.set("n", "", ":ToggleTerm", - { noremap = true, silent = true, desc = "Terminal (ToggleTerm)" }) -- Terminal - keymap.set("t", "", ":ToggleTerm") ]] - keymap.set("n", "g", ":ToggleLazyGit", - { noremap = true, silent = true, desc = "LazyGit (ToggleTerm)" }) -- LazyGit -end - -local config = function() - --[[ require("toggleterm").setup { - autochdir = false, - direction = "float", - open_mapping = "", - terminal_mappings = true, - start_in_insert = true, - float_opts = { - border = "curved", - }, - on_open = function(term) - local cwd = vim.fn.getcwd() - if term.dir ~= cwd then - term:send("cd " .. cwd .. " && clear") - term.dir = cwd - end - end, - } ]] - local Terminal = require("toggleterm.terminal").Terminal - local opts = { - noremap = true, -- non-recursive - silent = true, -- do not show message - } - - -- LazyGit - local lazygit = Terminal:new({ - cmd = "lazygit", - dir = "git_dir", - direction = "float", - float_opts = { - border = "curved", - }, - -- function to run on opening the terminal - on_open = function(term) - vim.cmd("startinsert!") - vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", ":close", opts) - end, - -- function to run on closing the terminal - on_close = function() - vim.cmd("startinsert!") - end, - }) - local function toggle_lazygit() - lazygit:toggle() - end - vim.api.nvim_create_user_command("ToggleLazyGit", toggle_lazygit, {}) -end - -return { - "akinsho/toggleterm.nvim", - lazy = true, - cmd = { "ToggleTerm", "ToggleLazyGit" }, - init = init, - config = config, -} diff --git a/nvim/lua/plugins/vim-highlightedyank.lua b/nvim/lua/plugins/vim-highlightedyank.lua deleted file mode 100644 index 9405e9e..0000000 --- a/nvim/lua/plugins/vim-highlightedyank.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "machakann/vim-highlightedyank", - lazy = true, - keys = { - { "y", mode = "n" }, - { "y", mode = "v" } - } -} diff --git a/nvim/lua/plugins/vim-illuminate.lua b/nvim/lua/plugins/vim-illuminate.lua deleted file mode 100644 index f44b6c9..0000000 --- a/nvim/lua/plugins/vim-illuminate.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "RRethy/vim-illuminate", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, -} diff --git a/nvim/lua/plugins/which-key.lua b/nvim/lua/plugins/which-key.lua deleted file mode 100644 index 4e391f9..0000000 --- a/nvim/lua/plugins/which-key.lua +++ /dev/null @@ -1,25 +0,0 @@ -local config = function() - require("which-key").setup() - vim.o.timeout = true - vim.o.timeoutlen = 500 -end - -return { - "folke/which-key.nvim", - lazy = true, - event = "VeryLazy", - config = config, - keys = { - { - "?", - function() - require("which-key").show({ global = false }) - end, - desc = "Buffer Local Keymaps (which-key)", - }, - }, - dependencies = { - "echasnovski/mini.icons", - "nvim-tree/nvim-web-devicons", -- optional - }, -} -- cgit v1.2.3