From 2ffb9926a5b2a8fb034d2e0c81227c131b33f536 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Tue, 26 Dec 2023 21:27:59 +0100 Subject: [PATCH] Minimize the config even more. --- after/plugin/autopairs.lua | 44 ------------------------------- after/plugin/code-tools.lua | 2 +- after/plugin/colorizer.lua | 25 ------------------ after/plugin/indent-blankline.lua | 18 ------------- after/plugin/mini-indentscope.lua | 22 ---------------- after/plugin/mkdnflow.lua | 10 ------- after/plugin/tmux.lua | 4 --- lua/crony/lazy.lua | 42 +---------------------------- 8 files changed, 2 insertions(+), 165 deletions(-) delete mode 100644 after/plugin/autopairs.lua delete mode 100644 after/plugin/colorizer.lua delete mode 100644 after/plugin/indent-blankline.lua delete mode 100644 after/plugin/mini-indentscope.lua delete mode 100644 after/plugin/mkdnflow.lua delete mode 100644 after/plugin/tmux.lua diff --git a/after/plugin/autopairs.lua b/after/plugin/autopairs.lua deleted file mode 100644 index 24ea013..0000000 --- a/after/plugin/autopairs.lua +++ /dev/null @@ -1,44 +0,0 @@ -require("nvim-autopairs").setup({}) - -local cmp_autopairs = require("nvim-autopairs.completion.cmp") -local cmp = require("cmp") -local handlers = require("nvim-autopairs.completion.handlers") - -cmp.event:on( - "confirm_done", - cmp_autopairs.on_confirm_done({ - filetypes = { - -- "*" is a alias to all filetypes - ["*"] = { - ["("] = { - kind = { - cmp.lsp.CompletionItemKind.Function, - cmp.lsp.CompletionItemKind.Method, - }, - handler = handlers["*"], - }, - }, - lua = { - ["("] = { - kind = { - cmp.lsp.CompletionItemKind.Function, - cmp.lsp.CompletionItemKind.Method, - }, - ---@param char string - ---@param item table item completion - ---@param bufnr number buffer number - ---@param rules table - ---@param commit_character table - handler = function(char, item, bufnr, rules, commit_character) - -- Your handler function. Inpect with print(vim.inspect{char, item, bufnr, rules, commit_character}) - end, - }, - }, - -- Disable for tex - tex = false, - sh = false, - bash = false, - zsh = false, - }, - }) -) diff --git a/after/plugin/code-tools.lua b/after/plugin/code-tools.lua index 6a48e81..ab66597 100644 --- a/after/plugin/code-tools.lua +++ b/after/plugin/code-tools.lua @@ -11,7 +11,7 @@ conform.setup({ }) -- only format with keybinding, don't like code chaning everytime I save -vim.keymap.set({ "n", "v" }, "f", function() +vim.keymap.set({ "n", "v" }, "vf", function() conform.format({ lsp_fallback = true, }) diff --git a/after/plugin/colorizer.lua b/after/plugin/colorizer.lua deleted file mode 100644 index 85a9c50..0000000 --- a/after/plugin/colorizer.lua +++ /dev/null @@ -1,25 +0,0 @@ -require("colorizer").setup({ - filetypes = { "*" }, - user_default_options = { - RGB = true, -- #RGB hex codes - RRGGBB = true, -- #RRGGBB hex codes - names = false, -- "Name" codes like Blue or blue - RRGGBBAA = true, -- #RRGGBBAA hex codes - AARRGGBB = true, -- 0xAARRGGBB hex codes - rgb_fn = true, -- CSS rgb() and rgba() functions - hsl_fn = true, -- CSS hsl() and hsla() functions - css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB - css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn - -- Available modes for `mode`: foreground, background, virtualtext - mode = "background", -- Set the display mode. - -- Available methods are false / true / "normal" / "lsp" / "both" - -- True is same as normal - tailwind = false, -- Enable tailwind colors - -- parsers can contain values used in |user_default_options| - sass = { enable = false, parsers = { "css" } }, -- Enable sass colors - virtualtext = "■", - -- update color values even if buffer is not focused - -- example use: cmp_menu, cmp_docs - always_update = true, - }, -}) diff --git a/after/plugin/indent-blankline.lua b/after/plugin/indent-blankline.lua deleted file mode 100644 index 8790f97..0000000 --- a/after/plugin/indent-blankline.lua +++ /dev/null @@ -1,18 +0,0 @@ -require("ibl").setup({ - indent = { char = "│" }, - scope = { enabled = false }, - exclude = { - filetypes = { - "help", - "alpha", - "dashboard", - "neo-tree", - "Trouble", - "lazy", - "mason", - "notify", - "toggleterm", - "lazyterm", - }, - }, -}) diff --git a/after/plugin/mini-indentscope.lua b/after/plugin/mini-indentscope.lua deleted file mode 100644 index 8e40111..0000000 --- a/after/plugin/mini-indentscope.lua +++ /dev/null @@ -1,22 +0,0 @@ -require("mini.indentscope").setup({ - symbol = "│", - options = { try_as_border = true }, -}) - -vim.api.nvim_create_autocmd("FileType", { - pattern = { - "help", - "alpha", - "dashboard", - "neo-tree", - "Trouble", - "lazy", - "mason", - "notify", - "toggleterm", - "lazyterm", - }, - callback = function() - vim.b.miniindentscope_disable = true - end, -}) diff --git a/after/plugin/mkdnflow.lua b/after/plugin/mkdnflow.lua deleted file mode 100644 index e9f46d9..0000000 --- a/after/plugin/mkdnflow.lua +++ /dev/null @@ -1,10 +0,0 @@ -require("mkdnflow").setup({ - modules = { - bib = false, - yaml = false, - cmp = false, - }, - links = { - conceal = true, - }, -}) diff --git a/after/plugin/tmux.lua b/after/plugin/tmux.lua deleted file mode 100644 index 962aad9..0000000 --- a/after/plugin/tmux.lua +++ /dev/null @@ -1,4 +0,0 @@ -vim.keymap.set("n", "C-h>", "TmuxNavigateLeft", { desc = "Window Left" }) -vim.keymap.set("n", "C-j>", "TmuxNavigateDown", { desc = "Window Down" }) -vim.keymap.set("n", "C-k>", "TmuxNavigateUp", { desc = "Window Up" }) -vim.keymap.set("n", "C-l>", "TmuxNavigateRight", { desc = "Window Right" }) diff --git a/lua/crony/lazy.lua b/lua/crony/lazy.lua index 4a2d9f2..740a1f8 100644 --- a/lua/crony/lazy.lua +++ b/lua/crony/lazy.lua @@ -38,18 +38,12 @@ require("lazy").setup({ { "L3MON4D3/LuaSnip" }, { "rafamadriz/friendly-snippets" }, - -- Nice lsp info - { "j-hui/fidget.nvim", opts = {} }, - -- Additional neovim docs "folke/neodev.nvim", opts = {}, }, }, - -- Emacs which key but in a much nicer form - { "folke/which-key.nvim", opts = {}, event = "VeryLazy" }, - { -- Adds git related signs to the gutter, as well as utilities for managing changes "lewis6991/gitsigns.nvim", @@ -62,30 +56,8 @@ require("lazy").setup({ priority = 1000, }, - { - -- Set lualine as statusline - "nvim-lualine/lualine.nvim", - -- See `:help lualine.txt` - opts = { - options = { - icons_enabled = false, - theme = "catppuccin", - component_separators = "|", - section_separators = "", - }, - }, - }, - - { - -- show indent line - "lukas-reineke/indent-blankline.nvim", - }, - - -- highlight indentscope - "echasnovski/mini.indentscope", - -- "gc" to comment visual regions/lines - { "numToStr/Comment.nvim", opts = {}, event = "VeryLazy" }, + { "numToStr/Comment.nvim", opts = {}}, -- Fuzzy Finder (files, lsp, etc) { @@ -119,23 +91,14 @@ require("lazy").setup({ }, }, - "NvChad/nvim-colorizer.lua", - { "stevearc/dressing.nvim", - event = "VeryLazy", opts = { input = { default_prompt = "➤ " }, select = { backend = { "telescope", "builtin" } }, }, }, - -- nice tmux integration - "christoomey/vim-tmux-navigator", - - -- smart autopairs - "windwp/nvim-autopairs", - { -- nicer notification's "rcarriga/nvim-notify", @@ -144,9 +107,6 @@ require("lazy").setup({ end, }, - -- markdown editing super powered - "jakewvincent/mkdnflow.nvim", - -- additional formater support "stevearc/conform.nvim",