diff --git a/.config/nvim/lua/plugins/bbq.lua b/.config/nvim/lua/plugins/bbq.lua new file mode 100644 index 00000000..9dc1d9fd --- /dev/null +++ b/.config/nvim/lua/plugins/bbq.lua @@ -0,0 +1,16 @@ +return { + { + "utilyre/barbecue.nvim", + name = "barbecue", + version = "*", + dependencies = { + "SmiteshP/nvim-navic", + "nvim-tree/nvim-web-devicons", -- optional dependency + }, + event = "BufRead", + enabled = false, + opts = { + theme = "catppuccin-macchiato", + }, + }, +} diff --git a/.config/nvim/lua/plugins/bbq.lua.bak b/.config/nvim/lua/plugins/bbq.lua.bak deleted file mode 100644 index 9f819d4e..00000000 --- a/.config/nvim/lua/plugins/bbq.lua.bak +++ /dev/null @@ -1,15 +0,0 @@ -return { - { - "utilyre/barbecue.nvim", - name = "barbecue", - version = "*", - dependencies = { - "SmiteshP/nvim-navic", - "nvim-tree/nvim-web-devicons", -- optional dependency - }, - event = "BufRead", - opts = { - theme = "catppuccin-macchiato", - }, - }, -} diff --git a/.config/nvim/lua/plugins/better-escape.lua b/.config/nvim/lua/plugins/better-escape.lua new file mode 100644 index 00000000..c29bd48d --- /dev/null +++ b/.config/nvim/lua/plugins/better-escape.lua @@ -0,0 +1,18 @@ +return { + { + "max397574/better-escape.nvim", + enabled = false, + config = function() + require("better_escape").setup({ + mapping = { "jk", "jj", "kj", "jl" }, -- a table with mappings to use + timeout = vim.o.timeoutlen, -- the time in which the keys must be hit in ms. Use option timeoutlen by default + clear_empty_lines = false, -- clear line after escaping if there is only whitespace + keys = "", -- keys used for escaping, if it is a function will use the result everytime + -- example(recommended) + -- keys = function() + -- return vim.api.nvim_win_get_cursor(0)[2] > 1 and 'l' or '' + -- end, + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/better-escape.lua.bak b/.config/nvim/lua/plugins/better-escape.lua.bak deleted file mode 100644 index 1e2e3208..00000000 --- a/.config/nvim/lua/plugins/better-escape.lua.bak +++ /dev/null @@ -1,17 +0,0 @@ -return { - { - "max397574/better-escape.nvim", - config = function() - require("better_escape").setup({ - mapping = { "jk", "jj", "kj", "jl" }, -- a table with mappings to use - timeout = vim.o.timeoutlen, -- the time in which the keys must be hit in ms. Use option timeoutlen by default - clear_empty_lines = false, -- clear line after escaping if there is only whitespace - keys = "", -- keys used for escaping, if it is a function will use the result everytime - -- example(recommended) - -- keys = function() - -- return vim.api.nvim_win_get_cursor(0)[2] > 1 and 'l' or '' - -- end, - }) - end, - }, -} diff --git a/.config/nvim/lua/plugins/catppuccin.lua b/.config/nvim/lua/plugins/catppuccin.lua index bee26092..b89f50f3 100644 --- a/.config/nvim/lua/plugins/catppuccin.lua +++ b/.config/nvim/lua/plugins/catppuccin.lua @@ -1,66 +1,67 @@ return { - { - "catppuccin/nvim", - lazy = true, - name = "catppuccin", - opts = { - integrations = { - alpha = true, - cmp = true, - barbecue = { - dim_dirname = true, -- directory name is dimmed by default - bold_basename = true, - dim_context = false, - alt_background = false, - }, - dap = { - enabled = true, - enable_ui = true, -- enable nvim-dap-ui - }, - flash = true, - gitsigns = true, - illuminate = true, - indent_blankline = { enabled = true }, - mason = true, - markdown = true, - mini = true, - native_lsp = { - enabled = true, - virtual_text = { - errors = { "italic" }, - hints = { "italic" }, - warnings = { "italic" }, - information = { "italic" }, - }, - underlines = { - errors = { "underline" }, - hints = { "underline" }, - warnings = { "underline" }, - information = { "underline" }, - }, - inlay_hints = { - background = true, - }, - }, - navic = { enabled = false, custom_bg = "lualine" }, - neotest = false, - neotree = true, - notifier = false, - noice = true, - ufo = true, - overseer = false, - rainbow_delimiters = true, - semantic_tokens = true, - telescope = { - enabled = true, - -- style = "nvchad" - }, - lsp_trouble = false, - symbols_outline = false, - treesitter = true, - treesitter_context = false, - which_key = true, - }, + { + "catppuccin/nvim", + lazy = true, + name = "catppuccin", + opts = { + integrations = { + alpha = true, + cmp = true, + barbecue = { + dim_dirname = true, -- directory name is dimmed by default + bold_basename = true, + dim_context = false, + alt_background = false, }, + dap = { + enabled = true, + enable_ui = true, -- enable nvim-dap-ui + }, + flash = true, + headlines = false, + gitsigns = true, + illuminate = true, + indent_blankline = { enabled = true }, + mason = true, + markdown = true, + mini = true, + native_lsp = { + enabled = true, + virtual_text = { + errors = { "italic" }, + hints = { "italic" }, + warnings = { "italic" }, + information = { "italic" }, + }, + underlines = { + errors = { "underline" }, + hints = { "underline" }, + warnings = { "underline" }, + information = { "underline" }, + }, + inlay_hints = { + background = true, + }, + }, + navic = { enabled = false, custom_bg = "lualine" }, + neotest = false, + neotree = true, + notifier = false, + noice = true, + ufo = true, + overseer = false, + rainbow_delimiters = true, + semantic_tokens = true, + telescope = { + enabled = true, + -- style = "nvchad" + }, + lsp_trouble = false, + symbols_outline = false, + treesitter = true, + treesitter_context = false, + which_key = true, + }, }, + }, } diff --git a/.config/nvim/lua/plugins/copilot-lua.lua b/.config/nvim/lua/plugins/copilot-lua.lua new file mode 100644 index 00000000..bf875f1b --- /dev/null +++ b/.config/nvim/lua/plugins/copilot-lua.lua @@ -0,0 +1,23 @@ +return { + "zbirenbaum/copilot.lua", + enabled = false, + opts = { + suggestion = { + enabled = true, + auto_trigger = true, + keymap = { + accept = "", + accept_line = "", + accept_word = "", + next = "", + prev = "", + dismiss = "", + }, + }, + panel = { enabled = false }, + filetypes = { + markdown = true, + help = true, + }, + }, +} diff --git a/.config/nvim/lua/plugins/copilot-lua.lua.bak b/.config/nvim/lua/plugins/copilot-lua.lua.bak deleted file mode 100644 index 3eda90aa..00000000 --- a/.config/nvim/lua/plugins/copilot-lua.lua.bak +++ /dev/null @@ -1,22 +0,0 @@ -return { - "zbirenbaum/copilot.lua", - opts = { - suggestion = { - enabled = true, - auto_trigger = true, - keymap = { - accept = "", - accept_line = "", - accept_word = "", - next = "", - prev = "", - dismiss = "", - }, - }, - panel = { enabled = false }, - filetypes = { - markdown = true, - help = true, - }, - }, -} diff --git a/.config/nvim/lua/plugins/flatten.lua b/.config/nvim/lua/plugins/flatten.lua new file mode 100644 index 00000000..2c8cc22e --- /dev/null +++ b/.config/nvim/lua/plugins/flatten.lua @@ -0,0 +1,10 @@ +return { + { + "willothy/flatten.nvim", + config = true, + -- Ensure that it runs first to minimize delay when opening file from terminal + lazy = false, + priority = 1001, + enabled = false, + }, +} diff --git a/.config/nvim/lua/plugins/flatten.lua.bak b/.config/nvim/lua/plugins/flatten.lua.bak deleted file mode 100644 index cfa4dd47..00000000 --- a/.config/nvim/lua/plugins/flatten.lua.bak +++ /dev/null @@ -1,9 +0,0 @@ -return { - { - "willothy/flatten.nvim", - config = true, - -- Ensure that it runs first to minimize delay when opening file from terminal - lazy = false, - priority = 1001, - }, -} diff --git a/.config/nvim/lua/plugins/floaterm.lua b/.config/nvim/lua/plugins/floaterm.lua new file mode 100644 index 00000000..afe33f61 --- /dev/null +++ b/.config/nvim/lua/plugins/floaterm.lua @@ -0,0 +1,7 @@ +return { + { + "voldikss/vim-floaterm", + cmd = { "FloatermNew", "FloatermToggle", "FloatermNext", "FloatermPrev" }, + enabled = false, + }, +} diff --git a/.config/nvim/lua/plugins/floaterm.lua.bak b/.config/nvim/lua/plugins/floaterm.lua.bak deleted file mode 100644 index 1738a5c1..00000000 --- a/.config/nvim/lua/plugins/floaterm.lua.bak +++ /dev/null @@ -1,6 +0,0 @@ -return { - { - "voldikss/vim-floaterm", - cmd = { "FloatermNew", "FloatermToggle", "FloatermNext", "FloatermPrev" }, - }, -} diff --git a/.config/nvim/lua/plugins/hardtime.lua b/.config/nvim/lua/plugins/hardtime.lua new file mode 100644 index 00000000..f3acc3c4 --- /dev/null +++ b/.config/nvim/lua/plugins/hardtime.lua @@ -0,0 +1,38 @@ +return { + { + "m4xshen/hardtime.nvim", + dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, + enabled = false, + opts = { + disabled_filetypes = { + "qf", + "netrw", + "NvimTree", + "lazy", + "mason", + "oil", + "neo-tree", + "floaterm", + "symbols-outline", + "vim-be-good", + }, + disable_mouse = false, + restricted_keys = { + ["h"] = { "n", "x" }, + ["l"] = { "n", "x" }, + ["-"] = { "n", "x" }, + ["+"] = { "n", "x" }, + ["gj"] = { "n", "x" }, + ["gk"] = { "n", "x" }, + [""] = { "n", "x" }, + [""] = { "n", "x" }, + }, + disabled_keys = { + [""] = { "" }, + [""] = { "" }, + [""] = { "" }, + [""] = { "" }, + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/hardtime.lua.bak b/.config/nvim/lua/plugins/hardtime.lua.bak deleted file mode 100644 index 16f793d8..00000000 --- a/.config/nvim/lua/plugins/hardtime.lua.bak +++ /dev/null @@ -1,37 +0,0 @@ -return { - { - "m4xshen/hardtime.nvim", - dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, - opts = { - disabled_filetypes = { - "qf", - "netrw", - "NvimTree", - "lazy", - "mason", - "oil", - "neo-tree", - "floaterm", - "symbols-outline", - "vim-be-good", - }, - disable_mouse = false, - restricted_keys = { - ["h"] = { "n", "x" }, - ["l"] = { "n", "x" }, - ["-"] = { "n", "x" }, - ["+"] = { "n", "x" }, - ["gj"] = { "n", "x" }, - ["gk"] = { "n", "x" }, - [""] = { "n", "x" }, - [""] = { "n", "x" }, - }, - disabled_keys = { - [""] = { "" }, - [""] = { "" }, - [""] = { "" }, - [""] = { "" }, - }, - }, - }, -} diff --git a/.config/nvim/lua/plugins/headlines.lua b/.config/nvim/lua/plugins/headlines.lua new file mode 100644 index 00000000..c555e580 --- /dev/null +++ b/.config/nvim/lua/plugins/headlines.lua @@ -0,0 +1,10 @@ +return { + { + "lukas-reineke/headlines.nvim", + opts = { + markdown = { + headline_highlights = false, + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/indent-blankline.lua.bak b/.config/nvim/lua/plugins/indent-blankline.lua.bak deleted file mode 100644 index c9e41f5d..00000000 --- a/.config/nvim/lua/plugins/indent-blankline.lua.bak +++ /dev/null @@ -1,24 +0,0 @@ -return { - { - "lukas-reineke/indent-blankline.nvim", - event = { "BufReadPost", "BufNewFile" }, - opts = { - -- char = "▏", - char = "│", - filetype_exclude = { - "help", - "alpha", - "dashboard", - "neo-tree", - "Trouble", - "lazy", - "mason", - "notify", - "toggleterm", - "lazyterm", - }, - show_trailing_blankline_indent = false, - show_current_context = false, - }, - }, -} diff --git a/.config/nvim/lua/plugins/lsp-lens.lua.bak b/.config/nvim/lua/plugins/lsp-lens.lua similarity index 81% rename from .config/nvim/lua/plugins/lsp-lens.lua.bak rename to .config/nvim/lua/plugins/lsp-lens.lua index 0c04eb70..cfce508a 100644 --- a/.config/nvim/lua/plugins/lsp-lens.lua.bak +++ b/.config/nvim/lua/plugins/lsp-lens.lua @@ -2,6 +2,7 @@ return { { "VidocqH/lsp-lens.nvim", event = "BufReadPost", + enabled = false, opts = {}, }, } diff --git a/.config/nvim/lua/plugins/markdown-preview.lua.bak b/.config/nvim/lua/plugins/markdown-preview.lua.bak deleted file mode 100644 index 8ad52c68..00000000 --- a/.config/nvim/lua/plugins/markdown-preview.lua.bak +++ /dev/null @@ -1,11 +0,0 @@ -return { - { - "iamcco/markdown-preview.nvim", - cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, - build = "cd app && npx --yes yarn install", - init = function() - vim.g.mkdp_filetypes = { "markdown" } - end, - ft = { "markdown" }, - }, -} diff --git a/.config/nvim/lua/plugins/none-ls.lua.bak b/.config/nvim/lua/plugins/none-ls.lua similarity index 97% rename from .config/nvim/lua/plugins/none-ls.lua.bak rename to .config/nvim/lua/plugins/none-ls.lua index 9858568b..a6b67898 100644 --- a/.config/nvim/lua/plugins/none-ls.lua.bak +++ b/.config/nvim/lua/plugins/none-ls.lua @@ -1,6 +1,7 @@ return { { "nvimtools/none-ls.nvim", + enabled = false, opts = function(_, opts) local nls = require("null-ls") diff --git a/.config/nvim/lua/plugins/satellite.lua b/.config/nvim/lua/plugins/satellite.lua index dafff122..cbe4a147 100644 --- a/.config/nvim/lua/plugins/satellite.lua +++ b/.config/nvim/lua/plugins/satellite.lua @@ -2,6 +2,7 @@ return { { "lewis6991/satellite.nvim", event = "BufRead", + enabled = false, opts = { current_only = true, winblend = 50, diff --git a/.config/nvim/lua/plugins/scrollbar.lua b/.config/nvim/lua/plugins/scrollbar.lua new file mode 100644 index 00000000..c76923bf --- /dev/null +++ b/.config/nvim/lua/plugins/scrollbar.lua @@ -0,0 +1,19 @@ +return { + { + "dstein64/nvim-scrollview", + event = "BufReadPost", + enabled = false, + keys = { { "uS", "ScrollViewToggle", desc = "Toggle Scrollview" } }, + config = function() + require("scrollview").setup({ + excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" }, + signs_column = 0, + winblend = 25, + diagnostics_error_symbol = "", + diagnostics_warn_symbol = "", + diagnostics_info_symbol = "", + diagnostics_hint_symbol = "", + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/scrollbar.lua.bak b/.config/nvim/lua/plugins/scrollbar.lua.bak deleted file mode 100644 index e6080214..00000000 --- a/.config/nvim/lua/plugins/scrollbar.lua.bak +++ /dev/null @@ -1,18 +0,0 @@ -return { - { - "dstein64/nvim-scrollview", - event = "BufReadPost", - keys = { { "uS", "ScrollViewToggle", desc = "Toggle Scrollview" } }, - config = function() - require("scrollview").setup({ - excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" }, - signs_column = 0, - winblend = 25, - diagnostics_error_symbol = "", - diagnostics_warn_symbol = "", - diagnostics_info_symbol = "", - diagnostics_hint_symbol = "", - }) - end, - }, -} diff --git a/.config/nvim/lua/plugins/smart-splits.lua.bak b/.config/nvim/lua/plugins/smart-splits.lua similarity index 98% rename from .config/nvim/lua/plugins/smart-splits.lua.bak rename to .config/nvim/lua/plugins/smart-splits.lua index ce39d53d..a90a25c4 100644 --- a/.config/nvim/lua/plugins/smart-splits.lua.bak +++ b/.config/nvim/lua/plugins/smart-splits.lua @@ -2,6 +2,7 @@ return { { "mrjones2014/smart-splits.nvim", build = "./kitty/install-kittens.bash", + enabled = false, -- stylua: ignore keys = { { "", function() require("smart-splits").resize_left() end, desc = "Resize left", mode = "n" }, diff --git a/.config/nvim/lua/plugins/sniprun.lua b/.config/nvim/lua/plugins/sniprun.lua new file mode 100644 index 00000000..c134eb70 --- /dev/null +++ b/.config/nvim/lua/plugins/sniprun.lua @@ -0,0 +1,80 @@ +return { + { + "michaelb/sniprun", + run = "bash ./install.sh", + enabled = false, + -- cmd = { "SnipRun", "SnipInfo", "SnipLive", "SnipClose", "SnipReset", "SnipReplMemoryClean" }, + config = function() + require("sniprun").setup({ + selected_interpreters = {}, --# use those instead of the default for the current filetype + repl_enable = { "javascript", "typescript" }, --# enable REPL-like behavior for the given interpreters + repl_disable = {}, --# disable REPL-like behavior for the given interpreters + + interpreter_options = { + --# interpreter-specific options, see docs / :SnipInfo + + --# use the interpreter name as key + GFM_original = { + use_on_filetypes = { "markdown.pandoc" }, --# the 'use_on_filetypes' configuration key is + --# available for every interpreter + }, + Python3_original = { + error_truncate = "auto", --# Truncate runtime errors 'long', 'short' or 'auto' + --# the hint is available for every interpreter + --# but may not be always respected + }, + }, + + --# you can combo different display modes as desired and with the 'Ok' or 'Err' suffix + --# to filter only sucessful runs (or errored-out runs respectively) + display = { + -- "Classic", --# display results in the command-line area + -- "VirtualTextOk", --# display ok results as virtual text (multiline is shortened) + + "VirtualText", --# display results as virtual text + -- "TempFloatingWindow", --# display results in a floating window + -- "LongTempFloatingWindow", --# same as above, but only long results. To use with VirtualText[Ok/Err] + -- "Terminal", --# display results in a vertical split + -- "TerminalWithCode", --# display results and code history in a vertical split + -- "NvimNotify", --# display with the nvim-notify plugin + -- "Api" --# return output to a programming interface + }, + + live_display = { "VirtualTextOk" }, --# display mode used in live_mode + + display_options = { + terminal_scrollback = vim.o.scrollback, --# change terminal display scrollback lines + terminal_line_number = false, --# whether show line number in terminal window + terminal_signcolumn = false, --# whether show signcolumn in terminal window + terminal_persistence = true, --# always keep the terminal open (true) or close it at every occasion (false) + terminal_width = 45, --# change the terminal display option width + notification_timeout = 5, --# timeout for nvim_notify output + }, + + --# You can use the same keys to customize whether a sniprun producing + --# no output should display nothing or '(no output)' + show_no_output = { + "Classic", + "TempFloatingWindow", --# implies LongTempFloatingWindow, which has no effect on its own + }, + + --# customize highlight groups (setting this overrides colorscheme) + snipruncolors = { + SniprunVirtualTextOk = { bg = "#66eeff", fg = "#000000", ctermbg = "Cyan", cterfg = "Black" }, + SniprunFloatingWinOk = { fg = "#66eeff", ctermfg = "Cyan" }, + SniprunVirtualTextErr = { bg = "#881515", fg = "#000000", ctermbg = "DarkRed", cterfg = "Black" }, + SniprunFloatingWinErr = { fg = "#881515", ctermfg = "DarkRed" }, + }, + + live_mode_toggle = "off", --# live mode toggle, see Usage - Running for more info + + --# miscellaneous compatibility/adjustement settings + inline_messages = false, --# inline_message (0/1) is a one-line way to display messages + --# to workaround sniprun not being able to display anything + + borders = "single", --# display borders around floating windows + --# possible values are 'none', 'single', 'double', or 'shadow' + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/sniprun.lua.bak b/.config/nvim/lua/plugins/sniprun.lua.bak deleted file mode 100644 index c25f50c6..00000000 --- a/.config/nvim/lua/plugins/sniprun.lua.bak +++ /dev/null @@ -1,79 +0,0 @@ -return { - { - "michaelb/sniprun", - run = "bash ./install.sh", - -- cmd = { "SnipRun", "SnipInfo", "SnipLive", "SnipClose", "SnipReset", "SnipReplMemoryClean" }, - config = function() - require("sniprun").setup({ - selected_interpreters = {}, --# use those instead of the default for the current filetype - repl_enable = { "javascript", "typescript" }, --# enable REPL-like behavior for the given interpreters - repl_disable = {}, --# disable REPL-like behavior for the given interpreters - - interpreter_options = { - --# interpreter-specific options, see docs / :SnipInfo - - --# use the interpreter name as key - GFM_original = { - use_on_filetypes = { "markdown.pandoc" }, --# the 'use_on_filetypes' configuration key is - --# available for every interpreter - }, - Python3_original = { - error_truncate = "auto", --# Truncate runtime errors 'long', 'short' or 'auto' - --# the hint is available for every interpreter - --# but may not be always respected - }, - }, - - --# you can combo different display modes as desired and with the 'Ok' or 'Err' suffix - --# to filter only sucessful runs (or errored-out runs respectively) - display = { - -- "Classic", --# display results in the command-line area - -- "VirtualTextOk", --# display ok results as virtual text (multiline is shortened) - - "VirtualText", --# display results as virtual text - -- "TempFloatingWindow", --# display results in a floating window - -- "LongTempFloatingWindow", --# same as above, but only long results. To use with VirtualText[Ok/Err] - -- "Terminal", --# display results in a vertical split - -- "TerminalWithCode", --# display results and code history in a vertical split - -- "NvimNotify", --# display with the nvim-notify plugin - -- "Api" --# return output to a programming interface - }, - - live_display = { "VirtualTextOk" }, --# display mode used in live_mode - - display_options = { - terminal_scrollback = vim.o.scrollback, --# change terminal display scrollback lines - terminal_line_number = false, --# whether show line number in terminal window - terminal_signcolumn = false, --# whether show signcolumn in terminal window - terminal_persistence = true, --# always keep the terminal open (true) or close it at every occasion (false) - terminal_width = 45, --# change the terminal display option width - notification_timeout = 5, --# timeout for nvim_notify output - }, - - --# You can use the same keys to customize whether a sniprun producing - --# no output should display nothing or '(no output)' - show_no_output = { - "Classic", - "TempFloatingWindow", --# implies LongTempFloatingWindow, which has no effect on its own - }, - - --# customize highlight groups (setting this overrides colorscheme) - snipruncolors = { - SniprunVirtualTextOk = { bg = "#66eeff", fg = "#000000", ctermbg = "Cyan", cterfg = "Black" }, - SniprunFloatingWinOk = { fg = "#66eeff", ctermfg = "Cyan" }, - SniprunVirtualTextErr = { bg = "#881515", fg = "#000000", ctermbg = "DarkRed", cterfg = "Black" }, - SniprunFloatingWinErr = { fg = "#881515", ctermfg = "DarkRed" }, - }, - - live_mode_toggle = "off", --# live mode toggle, see Usage - Running for more info - - --# miscellaneous compatibility/adjustement settings - inline_messages = false, --# inline_message (0/1) is a one-line way to display messages - --# to workaround sniprun not being able to display anything - - borders = "single", --# display borders around floating windows - --# possible values are 'none', 'single', 'double', or 'shadow' - }) - end, - }, -} diff --git a/.config/nvim/lua/plugins/spider.lua b/.config/nvim/lua/plugins/spider.lua new file mode 100644 index 00000000..63c7f128 --- /dev/null +++ b/.config/nvim/lua/plugins/spider.lua @@ -0,0 +1,10 @@ +return { + { + "chrisgrieser/nvim-spider", + lazy = true, + enabled = false, + config = function() + require("spider").setup({}) + end, + }, +} diff --git a/.config/nvim/lua/plugins/spider.lua.bak b/.config/nvim/lua/plugins/spider.lua.bak deleted file mode 100644 index 99fcd6d6..00000000 --- a/.config/nvim/lua/plugins/spider.lua.bak +++ /dev/null @@ -1,9 +0,0 @@ -return { - { - "chrisgrieser/nvim-spider", - lazy = true, - config = function() - require("spider").setup({}) - end, - }, -} diff --git a/.config/nvim/lua/plugins/symbol-usage.lua b/.config/nvim/lua/plugins/symbol-usage.lua new file mode 100644 index 00000000..ce822897 --- /dev/null +++ b/.config/nvim/lua/plugins/symbol-usage.lua @@ -0,0 +1,10 @@ +return { + { + "Wansmer/symbol-usage.nvim", + event = "BufReadPre", + enabled = false, + config = function() + require("symbol-usage").setup() + end, + }, +} diff --git a/.config/nvim/lua/plugins/symbol-usage.lua.bak b/.config/nvim/lua/plugins/symbol-usage.lua.bak deleted file mode 100644 index d5ddc89d..00000000 --- a/.config/nvim/lua/plugins/symbol-usage.lua.bak +++ /dev/null @@ -1,9 +0,0 @@ -return { - { - "Wansmer/symbol-usage.nvim", - event = "BufReadPre", - config = function() - require("symbol-usage").setup() - end, - }, -} diff --git a/.config/nvim/lua/plugins/telescope-dap.lua b/.config/nvim/lua/plugins/telescope-dap.lua new file mode 100644 index 00000000..a4a3ae6b --- /dev/null +++ b/.config/nvim/lua/plugins/telescope-dap.lua @@ -0,0 +1,10 @@ +return { + { + "nvim-telescope/telescope-dap.nvim", + requires = { "nvim-telescope/telescope.nvim" }, + enabled = false, + config = function() + require("telescope").load_extension("dap") + end, + }, +} diff --git a/.config/nvim/lua/plugins/telescope-dap.lua.bak b/.config/nvim/lua/plugins/telescope-dap.lua.bak deleted file mode 100644 index f31508d7..00000000 --- a/.config/nvim/lua/plugins/telescope-dap.lua.bak +++ /dev/null @@ -1,9 +0,0 @@ -return { - { - "nvim-telescope/telescope-dap.nvim", - requires = { "nvim-telescope/telescope.nvim" }, - config = function() - require("telescope").load_extension("dap") - end, - }, -} diff --git a/.config/nvim/lua/plugins/wildfire.lua b/.config/nvim/lua/plugins/wildfire.lua new file mode 100644 index 00000000..2ba77f95 --- /dev/null +++ b/.config/nvim/lua/plugins/wildfire.lua @@ -0,0 +1,11 @@ +return { + { + "sustech-data/wildfire.nvim", + event = "VeryLazy", + enabled = false, + dependencies = { "nvim-treesitter/nvim-treesitter" }, + config = function() + require("wildfire").setup() + end, + }, +} diff --git a/.config/nvim/lua/plugins/wildfire.lua.bak b/.config/nvim/lua/plugins/wildfire.lua.bak deleted file mode 100644 index 2d939d54..00000000 --- a/.config/nvim/lua/plugins/wildfire.lua.bak +++ /dev/null @@ -1,10 +0,0 @@ -return { - { - "sustech-data/wildfire.nvim", - event = "VeryLazy", - dependencies = { "nvim-treesitter/nvim-treesitter" }, - config = function() - require("wildfire").setup() - end, - }, -} diff --git a/.config/nvim/lua/plugins/winbar.lua.bak b/.config/nvim/lua/plugins/winbar.lua.bak deleted file mode 100644 index e745eba7..00000000 --- a/.config/nvim/lua/plugins/winbar.lua.bak +++ /dev/null @@ -1,100 +0,0 @@ -local M = {} - -M.winbar_filetype_exclude = { - "help", - "startify", - "dashboard", - "packer", - "neogitstatus", - "neo-tree", - "Trouble", - "alpha", - "lir", - "Outline", - "spectre_panel", - "toggleterm", -} - -local get_filename = function() - local filename = vim.fn.expand("%:t") - local extension = vim.fn.expand("%:e") - local f = require("user.functions") - - if not f.isempty(filename) then - local file_icon, file_icon_color = - require("nvim-web-devicons").get_icon_color(filename, extension, { default = true }) - - local hl_group = "FileIconColor" .. extension - - vim.api.nvim_set_hl(0, hl_group, { fg = file_icon_color }) - if f.isempty(file_icon) then - file_icon = "" - file_icon_color = "" - end - - return " " .. "%#" .. hl_group .. "#" .. file_icon .. "%*" .. " " .. "%#LineNr#" .. filename .. "%*" - end -end - -local get_gps = function() - local status_gps_ok, gps = pcall(require, "nvim-gps") - if not status_gps_ok then - return "" - end - - local status_ok, gps_location = pcall(gps.get_location, {}) - if not status_ok then - return "" - end - - if not gps.is_available() or gps_location == "error" then - return "" - end - - if not require("user.functions").isempty(gps_location) then - return require("user.icons").ui.ChevronRight .. " " .. gps_location - else - return "" - end -end - -local excludes = function() - if vim.tbl_contains(M.winbar_filetype_exclude, vim.bo.filetype) then - vim.opt_local.winbar = nil - return true - end - return false -end - -M.get_winbar = function() - if excludes() then - return - end - local f = require("user.functions") - local value = get_filename() - - local gps_added = false - if not f.isempty(value) then - local gps_value = get_gps() - value = value .. " " .. gps_value - if not f.isempty(gps_value) then - gps_added = true - end - end - - if not f.isempty(value) and f.get_buf_option("mod") then - local mod = "%#LineNr#" .. require("user.icons").ui.Circle .. "%*" - if gps_added then - value = value .. " " .. mod - else - value = value .. mod - end - end - - local status_ok, _ = pcall(vim.api.nvim_set_option_value, "winbar", value, { scope = "local" }) - if not status_ok then - return - end -end - -return M