♻️ refactor(nvim): changed all bak files to normal lua files but enabled the enabled = false flag for lazy.nvim

This commit is contained in:
Sergio Laín 2023-10-17 10:55:11 +02:00
parent f4b7c460bd
commit 3d419f9626
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
33 changed files with 329 additions and 437 deletions

View file

@ -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",
},
},
}

View file

@ -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",
},
},
}

View file

@ -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 = "<Esc>", -- 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 '<esc>l' or '<esc>'
-- end,
})
end,
},
}

View file

@ -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 = "<Esc>", -- 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 '<esc>l' or '<esc>'
-- end,
})
end,
},
}

View file

@ -1,66 +1,67 @@
return { return {
{ {
"catppuccin/nvim", "catppuccin/nvim",
lazy = true, lazy = true,
name = "catppuccin", name = "catppuccin",
opts = { opts = {
integrations = { integrations = {
alpha = true, alpha = true,
cmp = true, cmp = true,
barbecue = { barbecue = {
dim_dirname = true, -- directory name is dimmed by default dim_dirname = true, -- directory name is dimmed by default
bold_basename = true, bold_basename = true,
dim_context = false, dim_context = false,
alt_background = 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,
},
}, },
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,
},
}, },
},
} }

View file

@ -0,0 +1,23 @@
return {
"zbirenbaum/copilot.lua",
enabled = false,
opts = {
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = "<M-CR>",
accept_line = "<M-l>",
accept_word = "<M-k>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<M-c>",
},
},
panel = { enabled = false },
filetypes = {
markdown = true,
help = true,
},
},
}

View file

@ -1,22 +0,0 @@
return {
"zbirenbaum/copilot.lua",
opts = {
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = "<M-CR>",
accept_line = "<M-l>",
accept_word = "<M-k>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<M-c>",
},
},
panel = { enabled = false },
filetypes = {
markdown = true,
help = true,
},
},
}

View file

@ -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,
},
}

View file

@ -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,
},
}

View file

@ -0,0 +1,7 @@
return {
{
"voldikss/vim-floaterm",
cmd = { "FloatermNew", "FloatermToggle", "FloatermNext", "FloatermPrev" },
enabled = false,
},
}

View file

@ -1,6 +0,0 @@
return {
{
"voldikss/vim-floaterm",
cmd = { "FloatermNew", "FloatermToggle", "FloatermNext", "FloatermPrev" },
},
}

View file

@ -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" },
["<C-N>"] = { "n", "x" },
["<C-P>"] = { "n", "x" },
},
disabled_keys = {
["<Up>"] = { "" },
["<Down>"] = { "" },
["<Left>"] = { "" },
["<Right>"] = { "" },
},
},
},
}

View file

@ -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" },
["<C-N>"] = { "n", "x" },
["<C-P>"] = { "n", "x" },
},
disabled_keys = {
["<Up>"] = { "" },
["<Down>"] = { "" },
["<Left>"] = { "" },
["<Right>"] = { "" },
},
},
},
}

View file

@ -0,0 +1,10 @@
return {
{
"lukas-reineke/headlines.nvim",
opts = {
markdown = {
headline_highlights = false,
},
},
},
}

View file

@ -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,
},
},
}

View file

@ -2,6 +2,7 @@ return {
{ {
"VidocqH/lsp-lens.nvim", "VidocqH/lsp-lens.nvim",
event = "BufReadPost", event = "BufReadPost",
enabled = false,
opts = {}, opts = {},
}, },
} }

View file

@ -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" },
},
}

View file

@ -1,6 +1,7 @@
return { return {
{ {
"nvimtools/none-ls.nvim", "nvimtools/none-ls.nvim",
enabled = false,
opts = function(_, opts) opts = function(_, opts)
local nls = require("null-ls") local nls = require("null-ls")

View file

@ -2,6 +2,7 @@ return {
{ {
"lewis6991/satellite.nvim", "lewis6991/satellite.nvim",
event = "BufRead", event = "BufRead",
enabled = false,
opts = { opts = {
current_only = true, current_only = true,
winblend = 50, winblend = 50,

View file

@ -0,0 +1,19 @@
return {
{
"dstein64/nvim-scrollview",
event = "BufReadPost",
enabled = false,
keys = { { "<leader>uS", "<cmd>ScrollViewToggle<CR>", 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,
},
}

View file

@ -1,18 +0,0 @@
return {
{
"dstein64/nvim-scrollview",
event = "BufReadPost",
keys = { { "<leader>uS", "<cmd>ScrollViewToggle<CR>", 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,
},
}

View file

@ -2,6 +2,7 @@ return {
{ {
"mrjones2014/smart-splits.nvim", "mrjones2014/smart-splits.nvim",
build = "./kitty/install-kittens.bash", build = "./kitty/install-kittens.bash",
enabled = false,
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<C-A-Left>", function() require("smart-splits").resize_left() end, desc = "Resize left", mode = "n" }, { "<C-A-Left>", function() require("smart-splits").resize_left() end, desc = "Resize left", mode = "n" },

View file

@ -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 <name>
--# 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,
},
}

View file

@ -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 <name>
--# 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,
},
}

View file

@ -0,0 +1,10 @@
return {
{
"chrisgrieser/nvim-spider",
lazy = true,
enabled = false,
config = function()
require("spider").setup({})
end,
},
}

View file

@ -1,9 +0,0 @@
return {
{
"chrisgrieser/nvim-spider",
lazy = true,
config = function()
require("spider").setup({})
end,
},
}

View file

@ -0,0 +1,10 @@
return {
{
"Wansmer/symbol-usage.nvim",
event = "BufReadPre",
enabled = false,
config = function()
require("symbol-usage").setup()
end,
},
}

View file

@ -1,9 +0,0 @@
return {
{
"Wansmer/symbol-usage.nvim",
event = "BufReadPre",
config = function()
require("symbol-usage").setup()
end,
},
}

View file

@ -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,
},
}

View file

@ -1,9 +0,0 @@
return {
{
"nvim-telescope/telescope-dap.nvim",
requires = { "nvim-telescope/telescope.nvim" },
config = function()
require("telescope").load_extension("dap")
end,
},
}

View file

@ -0,0 +1,11 @@
return {
{
"sustech-data/wildfire.nvim",
event = "VeryLazy",
enabled = false,
dependencies = { "nvim-treesitter/nvim-treesitter" },
config = function()
require("wildfire").setup()
end,
},
}

View file

@ -1,10 +0,0 @@
return {
{
"sustech-data/wildfire.nvim",
event = "VeryLazy",
dependencies = { "nvim-treesitter/nvim-treesitter" },
config = function()
require("wildfire").setup()
end,
},
}

View file

@ -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