yay
This commit is contained in:
commit
9d3d05066f
80 changed files with 7776 additions and 0 deletions
14
.backup/after/plugin/autopairs.lua
Executable file
14
.backup/after/plugin/autopairs.lua
Executable file
|
@ -0,0 +1,14 @@
|
|||
local npairs = require("nvim-autopairs")
|
||||
local Rule = require("nvim-autopairs.rule")
|
||||
|
||||
npairs.setup({
|
||||
check_ts = true,
|
||||
ts_config = {
|
||||
lua = {"string"},
|
||||
javascript = {"template_string"},
|
||||
},
|
||||
enable_check_bracket_line = false,
|
||||
ignored_next_char = "[%w%.]",
|
||||
})
|
||||
|
||||
local ts_conds = require("nvim-autopairs.ts-conds")
|
30
.backup/after/plugin/dash.lua
Executable file
30
.backup/after/plugin/dash.lua
Executable file
|
@ -0,0 +1,30 @@
|
|||
local home = os.getenv('HOME')
|
||||
local db = require('dashboard')
|
||||
|
||||
db.custom_header = {"",
|
||||
" /$$$$$$ /$$ /$$ ",
|
||||
" /$$__ $$ | $$ | $$ ",
|
||||
" /$$$$$$$ /$$$$$$ /$$$$$$ | $$ \\__//$$$$$$ /$$$$$$ /$$$$$$$| $$$$$$$ ",
|
||||
"| $$__ $$ /$$__ $$ /$$__ $$| $$$$ /$$__ $$|_ $$_/ /$$_____/| $$__ $$",
|
||||
"| $$ \\ $$| $$$$$$$$| $$ \\ $$| $$_/ | $$$$$$$$ | $$ | $$ | $$ \\ $$",
|
||||
"| $$ | $$| $$_____/| $$ | $$| $$ | $$_____/ | $$ /$$| $$ | $$ | $$",
|
||||
"| $$ | $$| $$$$$$$| $$$$$$/| $$ | $$$$$$$ | $$$$/| $$$$$$$| $$ | $$",
|
||||
"|__/ |__/ \\_______/ \\______/ |__/ \\_______/ \\___/ \\_______/|__/ |__/",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
}
|
||||
|
||||
db.custom_center = {
|
||||
{
|
||||
icon = ' ',
|
||||
desc ='File Browser ',
|
||||
action = 'Telescope file_browser',
|
||||
shortcut = 'SPC e e'
|
||||
},
|
||||
}
|
||||
|
9
.backup/after/plugin/git.lua
Executable file
9
.backup/after/plugin/git.lua
Executable file
|
@ -0,0 +1,9 @@
|
|||
require('gitsigns').setup {
|
||||
signs = {
|
||||
add = { text = '+' },
|
||||
change = { text = '~' },
|
||||
delete = { text = '_' },
|
||||
topdelete = { text = '‾' },
|
||||
changedelete = { text = '~' },
|
||||
},
|
||||
}
|
214
.backup/after/plugin/lsp.lua
Executable file
214
.backup/after/plugin/lsp.lua
Executable file
|
@ -0,0 +1,214 @@
|
|||
require('neodev').setup()
|
||||
-- vim.lsp.ensure_installed({
|
||||
-- "clangd",
|
||||
-- "gopls",
|
||||
-- "jdtls",
|
||||
-- "eslint",
|
||||
-- "tailwindcss",
|
||||
-- "tsserver",
|
||||
-- "cssmodules_ls",
|
||||
-- "rome",
|
||||
-- "jsonls",
|
||||
-- "sumneko_lua",
|
||||
-- "pylsp",
|
||||
-- "rust_analyzer",
|
||||
-- "stylelint_lsp",
|
||||
-- })
|
||||
|
||||
local navic = require("nvim-navic")
|
||||
navic.setup {
|
||||
icons = {
|
||||
File = " ",
|
||||
Module = " ",
|
||||
Namespace = " ",
|
||||
Package = " ",
|
||||
Class = " ",
|
||||
Method = " ",
|
||||
Property = " ",
|
||||
Field = " ",
|
||||
Constructor = " ",
|
||||
Enum = "練",
|
||||
Interface = "練",
|
||||
Function = " ",
|
||||
Variable = " ",
|
||||
Constant = " ",
|
||||
String = " ",
|
||||
Number = " ",
|
||||
Boolean = "◩ ",
|
||||
Array = " ",
|
||||
Object = " ",
|
||||
Key = " ",
|
||||
Null = "ﳠ ",
|
||||
EnumMember = " ",
|
||||
Struct = " ",
|
||||
Event = " ",
|
||||
Operator = " ",
|
||||
TypeParameter = " ",
|
||||
},
|
||||
highlight = false,
|
||||
separator = " > ",
|
||||
depth_limit = 0,
|
||||
depth_limit_indicator = "..",
|
||||
safe_output = true
|
||||
}
|
||||
local on_attach = function(client, bufnr)
|
||||
local nmap = function(keys, func, desc)
|
||||
if desc then
|
||||
desc = 'LSP: ' .. desc
|
||||
end
|
||||
|
||||
vim.keymap.set('n', keys, func, { buffer = bufnr, desc = desc })
|
||||
end
|
||||
|
||||
if client.server_capabilities.documentSymbolProvider then
|
||||
navic.attach(client, bufnr)
|
||||
end
|
||||
|
||||
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
|
||||
nmap('gI', vim.lsp.buf.implementation, '[G]oto [I]mplementation')
|
||||
nmap('<leader>vt', vim.lsp.buf.type_definition, 'Type [D]efinition')
|
||||
nmap('<leader>vs', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
|
||||
|
||||
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
|
||||
|
||||
-- Lesser used LSP functionality
|
||||
nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
nmap('<leader>wa', vim.lsp.buf.add_workspace_folder, '[W]orkspace [A]dd Folder')
|
||||
nmap('<leader>wr', vim.lsp.buf.remove_workspace_folder, '[W]orkspace [R]emove Folder')
|
||||
nmap('<leader>wl', function()
|
||||
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
||||
end, '[W]orkspace [L]ist Folders')
|
||||
|
||||
-- Create a command `:Format` local to the LSP buffer
|
||||
vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
|
||||
vim.lsp.buf.format()
|
||||
end, { desc = 'Format current buffer with LSP' })
|
||||
end
|
||||
|
||||
local servers = {
|
||||
clangd = {},
|
||||
gopls = {},
|
||||
pyright = {},
|
||||
rust_analyzer = {},
|
||||
tsserver = {},
|
||||
|
||||
sumneko_lua = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||
|
||||
require('mason').setup()
|
||||
local mason_lspconfig = require 'mason-lspconfig'
|
||||
mason_lspconfig.setup {
|
||||
ensure_installed = vim.tbl_keys(servers),
|
||||
}
|
||||
mason_lspconfig.setup_handlers {
|
||||
function(server_name)
|
||||
require('lspconfig')[server_name].setup {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
settings = servers[server_name],
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
-- lspinfo
|
||||
require('fidget').setup()
|
||||
|
||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||
|
||||
local cmp = require 'cmp'
|
||||
local luasnip = require 'luasnip'
|
||||
|
||||
|
||||
|
||||
-- local tabnine = require('cmp_tabnine.config')
|
||||
--
|
||||
-- tabnine:setup({
|
||||
-- max_lines = 1000,
|
||||
-- max_num_results = 20,
|
||||
-- sort = true,
|
||||
-- run_on_every_keystroke = true,
|
||||
-- snippet_placeholder = '..',
|
||||
-- ignored_file_types = {
|
||||
-- -- default is not to ignore
|
||||
-- -- uncomment to ignore in lua:
|
||||
-- -- lua = true
|
||||
-- },
|
||||
-- show_prediction_strength = false
|
||||
-- })
|
||||
|
||||
cmp.setup {
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
luasnip.lsp_expand(args.body)
|
||||
end,
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert {
|
||||
["<C-y>"] = cmp.mapping.confirm({ slelect = true}),
|
||||
["<C-Space>"] = cmp.mapping.complete(),
|
||||
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<CR>'] = cmp.mapping.confirm {
|
||||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
select = true,
|
||||
},
|
||||
['<Tab>'] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item()
|
||||
elseif luasnip.expand_or_jumpable() then
|
||||
luasnip.expand_or_jump()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { 'i', 's' }),
|
||||
['<S-Tab>'] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
elseif luasnip.jumpable(-1) then
|
||||
luasnip.jump(-1)
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { 'i', 's' }),
|
||||
},
|
||||
sources = {
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = "crates" },
|
||||
-- { name = "cmp_tabnine" },
|
||||
},
|
||||
}
|
||||
|
||||
cmp.event:on(
|
||||
'confirm_done',
|
||||
cmp_autopairs.on_confirm_done()
|
||||
)
|
||||
|
||||
vim.diagnostic.config({
|
||||
signs = true,
|
||||
underline = true,
|
||||
update_in_insert = true,
|
||||
virtual_text = true,
|
||||
})
|
||||
|
||||
require("cmp").config.formatting = {
|
||||
format = require("tailwindcss-colorizer-cmp").formatter,
|
||||
behavior = cmp.SelectBehavior.Select,
|
||||
}
|
||||
|
||||
-- require('tabnine').setup({
|
||||
-- disable_auto_comment=true,
|
||||
-- accept_keymap="<Tab>",
|
||||
-- dismiss_keymap = "<C-]>",
|
||||
-- debounce_ms = 300,
|
||||
-- suggestion_color = {gui = "#808080", cterm = 244},
|
||||
-- execlude_filetypes = {"TelescopePrompt"}
|
||||
-- })
|
22
.backup/after/plugin/presence.lua
Executable file
22
.backup/after/plugin/presence.lua
Executable file
|
@ -0,0 +1,22 @@
|
|||
require("presence"):setup({
|
||||
auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
|
||||
neovim_image_text = "The best PDE, Personalized Development Enviroment", -- Text displayed when hovered over the Neovim image
|
||||
main_image = "neovim", -- Main image display (either "neovim" or "file")
|
||||
client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
|
||||
log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
|
||||
debounce_timeout = 15, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
|
||||
enable_line_number = false, -- Displays the current line number instead of the current project
|
||||
blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
|
||||
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
|
||||
file_assets = {}, -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
|
||||
show_time = true, -- Show the timer
|
||||
|
||||
-- Rich Presence text options
|
||||
editing_text = "Editing %s", -- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)
|
||||
file_explorer_text = "Browsing %s", -- Format string rendered when browsing a file explorer (either string or function(file_explorer_name: string): string)
|
||||
git_commit_text = "Committing changes", -- Format string rendered when committing changes in git (either string or function(filename: string): string)
|
||||
plugin_manager_text = "Managing plugins", -- Format string rendered when managing plugins (either string or function(plugin_manager_name: string): string)
|
||||
reading_text = "Reading %s", -- Format string rendered when a read-only or unmodifiable file is loaded in the buffer (either string or function(filename: string): string)
|
||||
workspace_text = "Working on %s", -- Format string rendered when in a git repository (either string or function(project_name: string|nil, filename: string): string)
|
||||
line_number_text = "Line %s out of %s", -- Format string rendered when `enable_line_number` is set to true (either string or function(line_number: number, line_count: number): string)
|
||||
})
|
166
.backup/after/plugin/rust.lua
Executable file
166
.backup/after/plugin/rust.lua
Executable file
|
@ -0,0 +1,166 @@
|
|||
local rt = require("rust-tools")
|
||||
|
||||
rt.setup({
|
||||
server = {
|
||||
on_attach = function(_, bufnr)
|
||||
-- Hover actions
|
||||
vim.keymap.set("n", "<leader>rh", function ()
|
||||
rt.hover_actions.hover_actions()
|
||||
end, { buffer = bufnr , desc = "Hover actions rust"})
|
||||
-- Code action groups
|
||||
vim.keymap.set("n", "<leader>ra", function ()
|
||||
rt.code_action_group.code_action_group()
|
||||
end, { buffer = bufnr , desc = "code actions group"})
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
rt.inlay_hints.enable()
|
||||
rt.runnables.runnables()
|
||||
rt.hover_actions.hover_actions()
|
||||
rt.hover_range.hover_range()
|
||||
rt.open_cargo_toml.open_cargo_toml()
|
||||
rt.parent_module.parent_module()
|
||||
rt.join_lines.join_lines()
|
||||
rt.crate_graph.view_crate_graph(backend, output)
|
||||
|
||||
require("crates").setup {
|
||||
smart_insert = true,
|
||||
insert_closing_quote = true,
|
||||
avoid_prerelease = true,
|
||||
autoload = true,
|
||||
autoupdate = true,
|
||||
loading_indicator = true,
|
||||
date_format = "%Y-%m-%d",
|
||||
thousands_separator = ".",
|
||||
notification_title = "Crates",
|
||||
--curl_args = { "-sL", "--retry", "1" },
|
||||
disable_invalid_feature_diagnostic = false,
|
||||
text = {
|
||||
loading = " Loading",
|
||||
version = " %s",
|
||||
prerelease = " %s",
|
||||
yanked = " %s",
|
||||
nomatch = " No match",
|
||||
upgrade = " %s",
|
||||
error = " Error fetching crate",
|
||||
},
|
||||
highlight = {
|
||||
loading = "CratesNvimLoading",
|
||||
version = "CratesNvimVersion",
|
||||
prerelease = "CratesNvimPreRelease",
|
||||
yanked = "CratesNvimYanked",
|
||||
nomatch = "CratesNvimNoMatch",
|
||||
upgrade = "CratesNvimUpgrade",
|
||||
error = "CratesNvimError",
|
||||
},
|
||||
popup = {
|
||||
autofocus = false,
|
||||
copy_register = '"',
|
||||
style = "minimal",
|
||||
border = "none",
|
||||
show_version_date = false,
|
||||
show_dependency_version = true,
|
||||
max_height = 30,
|
||||
min_width = 20,
|
||||
padding = 1,
|
||||
text = {
|
||||
title = " %s",
|
||||
pill_left = "",
|
||||
pill_right = "",
|
||||
description = "%s",
|
||||
created_label = " created ",
|
||||
created = "%s",
|
||||
updated_label = " updated ",
|
||||
updated = "%s",
|
||||
downloads_label = " downloads ",
|
||||
downloads = "%s",
|
||||
homepage_label = " homepage ",
|
||||
homepage = "%s",
|
||||
repository_label = " repository ",
|
||||
repository = "%s",
|
||||
documentation_label = " documentation ",
|
||||
documentation = "%s",
|
||||
crates_io_label = " crates.io ",
|
||||
crates_io = "%s",
|
||||
categories_label = " categories ",
|
||||
keywords_label = " keywords ",
|
||||
version = " %s",
|
||||
prerelease = " %s",
|
||||
yanked = " %s",
|
||||
version_date = " %s",
|
||||
feature = " %s",
|
||||
enabled = " %s",
|
||||
transitive = " %s",
|
||||
normal_dependencies_title = " Dependencies",
|
||||
build_dependencies_title = " Build dependencies",
|
||||
dev_dependencies_title = " Dev dependencies",
|
||||
dependency = " %s",
|
||||
optional = " %s",
|
||||
dependency_version = " %s",
|
||||
loading = " ",
|
||||
},
|
||||
highlight = {
|
||||
title = "CratesNvimPopupTitle",
|
||||
pill_text = "CratesNvimPopupPillText",
|
||||
pill_border = "CratesNvimPopupPillBorder",
|
||||
description = "CratesNvimPopupDescription",
|
||||
created_label = "CratesNvimPopupLabel",
|
||||
created = "CratesNvimPopupValue",
|
||||
updated_label = "CratesNvimPopupLabel",
|
||||
updated = "CratesNvimPopupValue",
|
||||
downloads_label = "CratesNvimPopupLabel",
|
||||
downloads = "CratesNvimPopupValue",
|
||||
homepage_label = "CratesNvimPopupLabel",
|
||||
homepage = "CratesNvimPopupUrl",
|
||||
repository_label = "CratesNvimPopupLabel",
|
||||
repository = "CratesNvimPopupUrl",
|
||||
documentation_label = "CratesNvimPopupLabel",
|
||||
documentation = "CratesNvimPopupUrl",
|
||||
crates_io_label = "CratesNvimPopupLabel",
|
||||
crates_io = "CratesNvimPopupUrl",
|
||||
categories_label = "CratesNvimPopupLabel",
|
||||
keywords_label = "CratesNvimPopupLabel",
|
||||
version = "CratesNvimPopupVersion",
|
||||
prerelease = "CratesNvimPopupPreRelease",
|
||||
yanked = "CratesNvimPopupYanked",
|
||||
version_date = "CratesNvimPopupVersionDate",
|
||||
feature = "CratesNvimPopupFeature",
|
||||
enabled = "CratesNvimPopupEnabled",
|
||||
transitive = "CratesNvimPopupTransitive",
|
||||
normal_dependencies_title = "CratesNvimPopupNormalDependenciesTitle",
|
||||
build_dependencies_title = "CratesNvimPopupBuildDependenciesTitle",
|
||||
dev_dependencies_title = "CratesNvimPopupDevDependenciesTitle",
|
||||
dependency = "CratesNvimPopupDependency",
|
||||
optional = "CratesNvimPopupOptional",
|
||||
dependency_version = "CratesNvimPopupDependencyVersion",
|
||||
loading = "CratesNvimPopupLoading",
|
||||
},
|
||||
keys = {
|
||||
hide = { "q", "<esc>" },
|
||||
open_url = { "<cr>" },
|
||||
select = { "<cr>" },
|
||||
select_alt = { "s" },
|
||||
toggle_feature = { "<cr>" },
|
||||
copy_value = { "yy" },
|
||||
goto_item = { "gd", "K", "<C-LeftMouse>" },
|
||||
jump_forward = { "<c-i>" },
|
||||
jump_back = { "<c-o>", "<C-RightMouse>" },
|
||||
},
|
||||
},
|
||||
src = {
|
||||
insert_closing_quote = true,
|
||||
text = {
|
||||
prerelease = " pre-release ",
|
||||
yanked = " yanked ",
|
||||
},
|
||||
coq = {
|
||||
enabled = false,
|
||||
name = "Crates",
|
||||
},
|
||||
},
|
||||
null_ls = {
|
||||
enabled = false,
|
||||
name = "Crates",
|
||||
},
|
||||
}
|
41
.backup/after/plugin/statusline.lua
Executable file
41
.backup/after/plugin/statusline.lua
Executable file
|
@ -0,0 +1,41 @@
|
|||
require("lualine").setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = "auto",
|
||||
component_separators = { left = "", right = ""},
|
||||
section_separators = { left = "", right = ""},
|
||||
disabled_filetypes = {
|
||||
statusline = {},
|
||||
winbar = {},
|
||||
},
|
||||
ignore_focus = {},
|
||||
always_divide_middle = true,
|
||||
globalstatus = false,
|
||||
refresh = {
|
||||
statusline = 1000,
|
||||
tabline = 1000,
|
||||
winbar = 1000,
|
||||
}
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {"mode"},
|
||||
lualine_b = {"diff"},
|
||||
lualine_c = {"branch"},
|
||||
lualine_x = {"location"},
|
||||
lualine_y = {"progress"},
|
||||
lualine_z = {"filename"}
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = {"filename"},
|
||||
lualine_x = {"location"},
|
||||
lualine_y = {},
|
||||
lualine_z = {}
|
||||
},
|
||||
tabline = {},
|
||||
winbar = {},
|
||||
inactive_winbar = {},
|
||||
extensions = {}
|
||||
}
|
||||
|
34
.backup/after/plugin/tabline.lua
Executable file
34
.backup/after/plugin/tabline.lua
Executable file
|
@ -0,0 +1,34 @@
|
|||
require("bufferline").setup {
|
||||
animation = true,
|
||||
auto_hide = true,
|
||||
tabpages = true,
|
||||
closable = true,
|
||||
clickable = true,
|
||||
icon_separator_active = "",
|
||||
icon_separator_inactive = "▎",
|
||||
icon_close_tab = "",
|
||||
icon_close_tab_modified = "",
|
||||
icon_pinned = "車",
|
||||
separator_style = "slant",
|
||||
numbers = "buffer_id",
|
||||
}
|
||||
|
||||
-- file sidebars
|
||||
local nvim_tree_events = require("nvim-tree.events")
|
||||
local bufferline_api = require("bufferline.api")
|
||||
|
||||
local function get_tree_size()
|
||||
return require"nvim-tree.view".View.width
|
||||
end
|
||||
|
||||
nvim_tree_events.subscribe("TreeOpen", function()
|
||||
bufferline_api.set_offset(get_tree_size())
|
||||
end)
|
||||
|
||||
nvim_tree_events.subscribe("Resize", function()
|
||||
bufferline_api.set_offset(get_tree_size())
|
||||
end)
|
||||
|
||||
nvim_tree_events.subscribe("TreeClose", function()
|
||||
bufferline_api.set_offset(0)
|
||||
end)
|
32
.backup/after/plugin/telescope.lua
Executable file
32
.backup/after/plugin/telescope.lua
Executable file
|
@ -0,0 +1,32 @@
|
|||
require "telescope".setup {
|
||||
pickers = {
|
||||
colorscheme = {
|
||||
enable_preview = true
|
||||
}
|
||||
}
|
||||
}
|
||||
local builtin = require("telescope.builtin")
|
||||
vim.keymap.set("n", "<leader>f/", function ()
|
||||
require("telescope.builtin").current_buffer_fuzzy_find(require("telescope.themes").get_dropdown {
|
||||
winblend = 10,
|
||||
previewer = false,
|
||||
})
|
||||
end, {desc = "fuzzy find"})
|
||||
vim.keymap.set('n', '<leader>f?', require('telescope.builtin').oldfiles, { desc = 'Find recently opened files' })
|
||||
vim.keymap.set("n", "<leader>fc", builtin.colorscheme, {desc = "Find Colorscheme"})
|
||||
vim.keymap.set('n', '<leader>fd', require('telescope.builtin').diagnostics, { desc = 'Find Diagnostics' })
|
||||
vim.keymap.set('n', '<leader>fw', require('telescope.builtin').grep_string, { desc = 'Find current Word' })
|
||||
vim.keymap.set("n", "<leader>ff", builtin.find_files, {desc = "telescope find files"})
|
||||
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
|
||||
vim.keymap.set("n", "<leader>fb", builtin.buffers, {desc = "buffers"})
|
||||
vim.keymap.set("n", "<leader>fh", builtin.help_tags, {})
|
||||
vim.keymap.set("n", "<leader>fs", function()
|
||||
builtin.grep_string({ search = vim.fn.input("Grep > ")});
|
||||
vim.keymap.set("n", "<leader>fp", "<cmd>:Telescope projects<cr>")
|
||||
end, {desc = "grep search through files"})
|
||||
|
||||
|
||||
pcall(require("telescope").load_extension, "fzf")
|
||||
require("telescope").load_extension("projects")
|
||||
require("telescope").load_extension("dap")
|
||||
|
11
.backup/after/plugin/treesitter.lua
Executable file
11
.backup/after/plugin/treesitter.lua
Executable file
|
@ -0,0 +1,11 @@
|
|||
require"nvim-treesitter.configs".setup {
|
||||
ensure_installed = { "bash", "cmake", "cpp", "dockerfile", "gitignore", "glsl", "go", "graphql", "html", "java", "javascript", "json5", "kotlin", "markdown", "python", "rasi", "regex", "c", "lua", "rust", "scss", "sql", "sxhkdrc", "toml", "tsx", "typescript", "yaml" },
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
indent = { enable = true, disable = { 'python' } },
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
|
1
.backup/init.lua
Executable file
1
.backup/init.lua
Executable file
|
@ -0,0 +1 @@
|
|||
require("config")
|
3
.backup/lua/config/init.lua
Executable file
3
.backup/lua/config/init.lua
Executable file
|
@ -0,0 +1,3 @@
|
|||
require("config.packer")
|
||||
require("config.set")
|
||||
require("config.map")
|
140
.backup/lua/config/map.lua
Executable file
140
.backup/lua/config/map.lua
Executable file
|
@ -0,0 +1,140 @@
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
local wk = require("which-key")
|
||||
|
||||
wk.register({
|
||||
e = {
|
||||
name = "file explorers",
|
||||
e = {vim.cmd.NvimTreeOpen, "NvimTree"},
|
||||
r = {vim.cmd.NERDTreeTabsOpen, "NERDTree"},
|
||||
w = {vim.cmd.Ex, "netrw"},
|
||||
},
|
||||
t = {
|
||||
name = "Tabs",
|
||||
n = {vim.cmd.tabedit, "New"},
|
||||
c = {vim.cmd.tabclose, "Close"},
|
||||
l = {vim.cmd.tabnext, "Next"},
|
||||
h = {vim.cmd.tabprevious, "Previous"},
|
||||
t = {"<cmd>tabedit ", "Open File"},
|
||||
},
|
||||
w = {
|
||||
name = "workspace",
|
||||
w = {"<cmd>w<cr>", "Write"}
|
||||
},
|
||||
v = {
|
||||
name = "LSP"
|
||||
},
|
||||
q = {
|
||||
name = "Quit",
|
||||
q = {"<cmd>q!<cr>", "Confirm"},
|
||||
},
|
||||
u = {"vim.cmd.UndotreeToggle", "UndoTree"},
|
||||
b = {
|
||||
name = "Buffer",
|
||||
h = {"<Cmd>BufferPrevious<CR>", "Previous"},
|
||||
l = {"<Cmd>BufferNext<CR>", "Next"},
|
||||
H = {"<Cmd>BufferFirst<CR>", "First"},
|
||||
L = {"<Cmd>BufferLast<CR>", "Last"},
|
||||
p = {"<Cmd>BufferPin<CR>", "Pin"},
|
||||
b = {"<cmd>BufferPick<cr>", "Picker"},
|
||||
s = {
|
||||
name = "Sort",
|
||||
n = {"<Cmd>BufferOrderByBufferNumber<CR>", "By BufferNumber"},
|
||||
d = {"<Cmd>BufferOrderByDirectory<CR>", "By Directory"},
|
||||
l = {"<Cmd>BufferOrderByLanguage<CR>", "By Language"},
|
||||
w = {"<Cmd>BufferOrderByWindowNumber<CR>", "By WindowNumber"},
|
||||
},
|
||||
C = {"<Cmd>BufferClose<CR>", "Close"},
|
||||
c = {
|
||||
c = {"<Cmd>BufferClose<CR>", "Close"},
|
||||
w = {"<cmd>BufferWipeout<cr>", "Wipe"},
|
||||
a = {"<cmd>BufferCloseAllButCurrent<cr>", "Close but Current"},
|
||||
p = {"<cmd>BufferCloseAllButPinned<cr>", "Close but Pinned"},
|
||||
},
|
||||
},
|
||||
f = {
|
||||
name = "Telescope & fzf",
|
||||
},
|
||||
s = {
|
||||
name = "Settings",
|
||||
c = {function ()
|
||||
vim.opt.scrolloff = 100
|
||||
end, "Always center cursor"},
|
||||
x = {function ()
|
||||
vim.opt.scrolloff = 8
|
||||
end, "Disable Cursor center"}
|
||||
},
|
||||
h = {
|
||||
name = "Hop",
|
||||
w = {"<cmd>HopWord<cr>", "Word"},
|
||||
a = {"<cmd>HopAnywhere<cr>", "Anywhere"},
|
||||
l = {"<cmd>HopLine<cr>", "Line"},
|
||||
p = {"<cmd>HopPattern<cr>", "Pattern"},
|
||||
c = {"<cmd>HopChar1<cr>", "Char1"},
|
||||
x = {"<cmd>HopChar2<cr>", "Char2"},
|
||||
},
|
||||
d = {
|
||||
name = "Debug"
|
||||
},
|
||||
r = {
|
||||
name = "Rust",
|
||||
},
|
||||
}, {prefix = "<leader>"})
|
||||
|
||||
-- Buffers
|
||||
vim.keymap.set("n", "<leader>b<", "<Cmd>BufferMovePrevious<CR>", { desc = "move previous" })
|
||||
vim.keymap.set("n", "<leader>b>", "<Cmd>BufferMoveNext<CR>", { desc = "move next" })
|
||||
vim.keymap.set("n", "<leader>bH", "<Cmd>BufferFirst<CR>", { desc = "first" })
|
||||
vim.keymap.set("n", "<leader>bs1", "<Cmd>BufferGoto 1<CR>", { desc = "1" })
|
||||
vim.keymap.set("n", "<leader>bs2", "<Cmd>BufferGoto 2<CR>", { desc = "2" })
|
||||
vim.keymap.set("n", "<leader>bs3", "<Cmd>BufferGoto 3<CR>", { desc = "3" })
|
||||
vim.keymap.set("n", "<leader>bs4", "<Cmd>BufferGoto 4<CR>", { desc = "4" })
|
||||
vim.keymap.set("n", "<leader>bs5", "<Cmd>BufferGoto 5<CR>", { desc = "5" })
|
||||
vim.keymap.set("n", "<leader>bs6", "<Cmd>BufferGoto 6<CR>", { desc = "6" })
|
||||
vim.keymap.set("n", "<leader>bs7", "<Cmd>BufferGoto 7<CR>", { desc = "7" })
|
||||
vim.keymap.set("n", "<leader>bs8", "<Cmd>BufferGoto 8<CR>", { desc = "8" })
|
||||
vim.keymap.set("n", "<leader>bs9", "<Cmd>BufferGoto 9<CR>", { desc = "9" })
|
||||
|
||||
-- LSP
|
||||
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, {buffer = bufnr, desc = "goto definition"})
|
||||
vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, {buffer = bufnr})
|
||||
vim.keymap.set("n", "<leader>vw", function() vim.lsp.buf.workspace_symbol() end, {buffer = bufnr, desc = "workspace symbol"})
|
||||
vim.keymap.set("n", "<leader>vd", function() vim.diagnostic.open_float() end, {buffer = bufnr, desc = "diagnostics"})
|
||||
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, {buffer = bufnr, desc = "goto next"})
|
||||
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, {buffer = bufnr, desc = "goto prev"})
|
||||
vim.keymap.set("n", "<leader>va", function() vim.lsp.buf.code_action() end, {buffer = bufnr, desc = "code actions"})
|
||||
vim.keymap.set("n", "<leader>vr", function() vim.lsp.buf.references() end, {buffer = bufnr, desc = "references"})
|
||||
vim.keymap.set("n", "<leader>vn", function() vim.lsp.buf.rename() end, {buffer = bufnr, desc = "rename"})
|
||||
-- vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, {buffer = bufnr})
|
||||
vim.keymap.set("n", "<leader>vh", function () vim.lsp.buf.hover() end, {buffer=bufnr, desc = "show hover action"})
|
||||
vim.keymap.set("i", "<C-h>", function () vim.lsp.buf.hover() end, {buffer=bufnr})
|
||||
|
||||
-- debug
|
||||
vim.keymap.set("n", "<leader>db", function() require"dap".toggle_breakpoint() end, {desc = "toggle breapoint"})
|
||||
vim.keymap.set("n", "<leader>dc", function() require("dap").continue() end, {desc = "launch or continue execution"})
|
||||
vim.keymap.set("n", "<leader>dsi", function() require("dap").step_into() end, {desc = "step into"})
|
||||
vim.keymap.set("n", "<leader>dso", function() require("dap").step_over() end, {desc = "step over"})
|
||||
vim.keymap.set("n", "<leader>dr", function() require("dap").repl.open() end, {desc = "open repl"})
|
||||
-- debug UI
|
||||
vim.keymap.set("n", "<leader>dwb", function() require("dapui").float_element("breakpoints", {}) end, {desc = "open breakpoints window"})
|
||||
vim.keymap.set("n", "<leader>dwc", function() require("dapui").float_element("console", {}) end, {desc = "open integrated console"})
|
||||
vim.keymap.set("n", "<leader>dwr", function() require("dapui").float_element("repl", {}) end, {desc = "open repl"})
|
||||
|
||||
-- term
|
||||
vim.keymap.set("n", "<C-\\>", vim.cmd.ToggleTerm)
|
||||
vim.keymap.set("t", "<C-\\>", vim.cmd.ToggleTerm)
|
||||
|
||||
-- magic
|
||||
vim.keymap.set("n", "<leader>s", ":%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>", {desc = "find and replace"})
|
||||
|
||||
-- center
|
||||
vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
||||
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
vim.keymap.set("n", "n", "nzzzv")
|
||||
vim.keymap.set("n", "N", "Nzzzv")
|
||||
|
||||
-- random
|
||||
vim.keymap.set("v", "J", ':m ">+1<CR>gv=gv')
|
||||
vim.keymap.set("v", "K", ':m "<-2<CR>gv=gv')
|
||||
vim.keymap.set("i", "<C-c>", "<Esc>")
|
318
.backup/lua/config/packer.lua
Executable file
318
.backup/lua/config/packer.lua
Executable file
|
@ -0,0 +1,318 @@
|
|||
vim.cmd [[packadd packer.nvim]]
|
||||
return require("packer").startup(function(use)
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
-- lsp
|
||||
use {
|
||||
"neovim/nvim-lspconfig",
|
||||
requires = {
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"j-hui/fidget.nvim",
|
||||
"folke/neodev.nvim",
|
||||
},
|
||||
}
|
||||
use {
|
||||
"SmiteshP/nvim-navic",
|
||||
requires = "neovim/nvim-lspconfig"
|
||||
}
|
||||
use {
|
||||
"ray-x/lsp_signature.nvim",
|
||||
event = "BufRead",
|
||||
config = function() require"lsp_signature".on_attach() end,
|
||||
}
|
||||
|
||||
-- cmp && snippets
|
||||
use {
|
||||
"hrsh7th/nvim-cmp",
|
||||
requires = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"L3MON4D3/LuaSnip",
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"rafamadriz/friendly-snippets"
|
||||
},
|
||||
}
|
||||
use "github/copilot.vim"
|
||||
use {"mattn/emmet-vim"}
|
||||
-- use {'tzachar/cmp-tabnine', run='./install.sh', requires = 'hrsh7th/nvim-cmp'}
|
||||
use({
|
||||
"roobert/tailwindcss-colorizer-cmp.nvim",
|
||||
config = function()
|
||||
require("tailwindcss-colorizer-cmp").setup({
|
||||
color_square_width = 2,
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
-- syntax highlighting
|
||||
use {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = ":TSUpdate"
|
||||
}
|
||||
use {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
after = "nvim-treesitter",
|
||||
}
|
||||
use "nvim-treesitter/playground"
|
||||
|
||||
-- fzf Telescope
|
||||
use {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
branch = "0.1.x",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim"
|
||||
}
|
||||
}
|
||||
use {
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
run = "make",
|
||||
cond = vim.fn.executable "make" == 1
|
||||
}
|
||||
use "nvim-lua/popup.nvim"
|
||||
use {
|
||||
"ahmedkhalf/project.nvim",
|
||||
config = function()
|
||||
require("project_nvim").setup {}
|
||||
end,
|
||||
}
|
||||
|
||||
-- debugging
|
||||
use "mfussenegger/nvim-dap"
|
||||
use {
|
||||
"rcarriga/nvim-dap-ui",
|
||||
requires = {
|
||||
"mfussenegger/nvim-dap"
|
||||
},
|
||||
config = function()
|
||||
require("dapui").setup()
|
||||
end,
|
||||
}
|
||||
use "nvim-telescope/telescope-dap.nvim"
|
||||
|
||||
-- git
|
||||
use "tpope/vim-fugitive"
|
||||
use "tpope/vim-rhubarb"
|
||||
use "lewis6991/gitsigns.nvim"
|
||||
|
||||
-- misc
|
||||
use "editorconfig/editorconfig-vim"
|
||||
use "andweeb/presence.nvim"
|
||||
use {
|
||||
"nacro90/numb.nvim",
|
||||
config = function ()
|
||||
require("numb").setup()
|
||||
end
|
||||
}
|
||||
use {"ellisonleao/glow.nvim",
|
||||
config = function ()
|
||||
require("glow").setup()
|
||||
end
|
||||
}
|
||||
use {"tpope/vim-surround"}
|
||||
use {
|
||||
"phaazon/hop.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("hop").setup()
|
||||
vim.api.nvim_set_keymap("n", "s", ":HopChar2<cr>", { silent = true })
|
||||
vim.api.nvim_set_keymap("n", "S", ":HopWord<cr>", { silent = true })
|
||||
end,
|
||||
}
|
||||
use {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
requires = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup({
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
-- misc editing
|
||||
use {
|
||||
'phaazon/hop.nvim',
|
||||
branch = 'v2',
|
||||
config = function()
|
||||
require'hop'.setup {
|
||||
}
|
||||
end
|
||||
}
|
||||
use {
|
||||
"numToStr/Comment.nvim",
|
||||
config = function()
|
||||
require("Comment").setup()
|
||||
end
|
||||
}
|
||||
use "tpope/vim-sleuth"
|
||||
use "mbbill/undotree"
|
||||
use {
|
||||
"windwp/nvim-autopairs",
|
||||
--config = function() require("nvim-autopairs").setup {} end
|
||||
}
|
||||
use {"windwp/nvim-ts-autotag",
|
||||
config = function ()
|
||||
require("nvim-ts-autotag").setup()
|
||||
end
|
||||
}
|
||||
use {"mg979/vim-visual-multi"}
|
||||
|
||||
-- mics visuals
|
||||
use 'glepnir/dashboard-nvim'
|
||||
use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'}
|
||||
--use {"akinsho/bufferline.nvim", tag = "v3.*",}
|
||||
use {"jistr/vim-nerdtree-tabs"}
|
||||
use {
|
||||
"kevinhwang91/nvim-bqf",
|
||||
event = { "BufRead", "BufNew" },
|
||||
config = function()
|
||||
require("bqf").setup({
|
||||
auto_enable = true,
|
||||
preview = {
|
||||
win_height = 12,
|
||||
win_vheight = 12,
|
||||
delay_syntax = 80,
|
||||
border_chars = { "┃", "┃", "━", "━", "┏", "┓", "┗", "┛", "█" },
|
||||
},
|
||||
func_map = {
|
||||
vsplit = "",
|
||||
ptogglemode = "z,",
|
||||
stoggleup = "",
|
||||
},
|
||||
filter = {
|
||||
fzf = {
|
||||
action_for = { ["ctrl-s"] = "split" },
|
||||
extra_opts = { "--bind", "ctrl-o:toggle-all", "--prompt", "> " },
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
use {"kyazdani42/nvim-web-devicons"}
|
||||
use {"ap/vim-css-color"}
|
||||
use {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
config = function()
|
||||
require('indent_blankline').setup {
|
||||
char = '┊',
|
||||
show_trailing_blankline_indent = false,
|
||||
filetype_exclude = {"dashboard"},
|
||||
}
|
||||
end,
|
||||
}
|
||||
use {
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
local wk = require("which-key")
|
||||
wk.setup {
|
||||
popup_mappings = {
|
||||
scroll_down = "<C-j>",
|
||||
scroll_up = "<C-k>",
|
||||
},
|
||||
window = {
|
||||
border = "single",
|
||||
},
|
||||
}
|
||||
end
|
||||
}
|
||||
use "nvim-lualine/lualine.nvim"
|
||||
use {
|
||||
"akinsho/toggleterm.nvim",
|
||||
tag = "*",
|
||||
config = function()
|
||||
require("toggleterm").setup{
|
||||
direction = "float",
|
||||
float_opts = {
|
||||
border = "curved"
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
use {
|
||||
"karb94/neoscroll.nvim",
|
||||
event = "WinScrolled",
|
||||
config = function()
|
||||
require("neoscroll").setup({
|
||||
mappings = {"<C-u>", "<C-d>", "<C-b>", "<C-f>", "<C-y>", "<C-e>", "zt", "zz", "zb"},
|
||||
hide_cursor = true,
|
||||
stop_eof = true,
|
||||
use_local_scrolloff = false,
|
||||
respect_scrolloff = false,
|
||||
cursor_scrolls_alone = true,
|
||||
easing_function = nil,
|
||||
pre_hook = nil,
|
||||
post_hook = nil,
|
||||
})
|
||||
end
|
||||
}
|
||||
use {
|
||||
"folke/todo-comments.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("todo-comments").setup{}
|
||||
end,
|
||||
}
|
||||
use {
|
||||
"felipec/vim-sanegx",
|
||||
event = "BufRead",
|
||||
}
|
||||
use {
|
||||
"gelguy/wilder.nvim",
|
||||
config = function()
|
||||
vim.cmd('call wilder#setup({"modes": [":", "/", "?"]})')
|
||||
vim.cmd('call wilder#set_option("renderer", wilder#popupmenu_renderer({"highlighter": wilder#basic_highlighter(), "left": [ " ", wilder#popupmenu_devicons(), ], "right": [ " ", wilder#popupmenu_scrollbar(), ], "pumblend": 20}))')
|
||||
vim.cmd('call wilder#set_option("renderer", wilder#popupmenu_renderer(wilder#popupmenu_border_theme({"highlighter": wilder#basic_highlighter(), "min_width": "100%", "min_height": "50%", "reverse": 0, "highlights": {"border": "Normal",},"border": "rounded"})))')
|
||||
end,
|
||||
}
|
||||
|
||||
-- lenguage specific
|
||||
-- rust
|
||||
use {"racer-rust/vim-racer",
|
||||
config = function ()
|
||||
vim.cmd [[ let g:racer_cmd = "/usr/bin/racer"]]
|
||||
end
|
||||
}
|
||||
use "simrat39/rust-tools.nvim"
|
||||
use {
|
||||
"saecki/crates.nvim",
|
||||
tag = "v0.3.0",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim"
|
||||
},
|
||||
config = function()
|
||||
require("crates").setup()
|
||||
end,
|
||||
}
|
||||
|
||||
-- zig
|
||||
use "ziglang/zig.vim"
|
||||
|
||||
-- java
|
||||
use "mfussenegger/nvim-jdtls"
|
||||
|
||||
-- c && c++ && cmake
|
||||
use "cdelledonne/vim-cmake"
|
||||
|
||||
-- themes
|
||||
use "sainnhe/gruvbox-material"
|
||||
use "shaunsingh/nord.nvim"
|
||||
use "projekt0n/github-nvim-theme"
|
||||
use "EdenEast/nightfox.nvim"
|
||||
use "Everblush/nvim"
|
||||
use "olimorris/onedarkpro.nvim"
|
||||
use "rmehri01/onenord.nvim"
|
||||
use "luisiacc/gruvbox-baby"
|
||||
use "tiagovla/tokyodark.nvim"
|
||||
use "cpea2506/one_monokai.nvim"
|
||||
use "yazeed1s/minimal.nvim"
|
||||
use "Mofiqul/adwaita.nvim"
|
||||
use "kvrohit/mellow.nvim"
|
||||
use "yazeed1s/oh-lucy.nvim"
|
||||
use "marko-cerovac/material.nvim"
|
||||
use "sainnhe/sonokai"
|
||||
end)
|
41
.backup/lua/config/set.lua
Executable file
41
.backup/lua/config/set.lua
Executable file
|
@ -0,0 +1,41 @@
|
|||
-- numbers
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- tab && indent
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.smartindent = true
|
||||
vim.o.breakindent = true
|
||||
|
||||
-- lines
|
||||
vim.opt.wrap = true
|
||||
vim.opt.smarttab = true
|
||||
|
||||
-- undo
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
vim.opt.undofile = true
|
||||
|
||||
-- search
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true
|
||||
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
|
||||
-- colors
|
||||
vim.opt.termguicolors = true
|
||||
vim.cmd [[colorscheme gruvbox-material]]
|
||||
|
||||
-- misc
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.isfname:append("@-@")
|
||||
vim.opt.updatetime = 50
|
||||
vim.o.mouse = "a"
|
||||
|
||||
vim.o.completeopt = "menuone,noselect"
|
615
.backup/plugin/packer_compiled.lua
Executable file
615
.backup/plugin/packer_compiled.lua
Executable file
|
@ -0,0 +1,615 @@
|
|||
-- Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_command('packadd packer.nvim')
|
||||
|
||||
local no_errors, error_msg = pcall(function()
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.inside_compile = true
|
||||
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
if threshold then
|
||||
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
|
||||
end
|
||||
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/home/d/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/d/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/d/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/d/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/home/d/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], false)
|
||||
time([[try_loadstring definition]], true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
|
||||
if not success then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
||||
end)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time([[try_loadstring definition]], false)
|
||||
time([[Defining packer_plugins]], true)
|
||||
_G.packer_plugins = {
|
||||
["Comment.nvim"] = {
|
||||
config = { "\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/Comment.nvim",
|
||||
url = "https://github.com/numToStr/Comment.nvim"
|
||||
},
|
||||
LuaSnip = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
||||
url = "https://github.com/L3MON4D3/LuaSnip"
|
||||
},
|
||||
["adwaita.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/adwaita.nvim",
|
||||
url = "https://github.com/Mofiqul/adwaita.nvim"
|
||||
},
|
||||
["barbar.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/barbar.nvim",
|
||||
url = "https://github.com/romgrk/barbar.nvim",
|
||||
wants = { "nvim-web-devicons" }
|
||||
},
|
||||
["cmp-buffer"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
||||
},
|
||||
["cmp-nvim-lsp"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
||||
},
|
||||
["cmp-path"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/cmp-path",
|
||||
url = "https://github.com/hrsh7th/cmp-path"
|
||||
},
|
||||
["cmp-tabnine"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/cmp-tabnine",
|
||||
url = "https://github.com/tzachar/cmp-tabnine"
|
||||
},
|
||||
cmp_luasnip = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
|
||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
||||
},
|
||||
["copilot.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/copilot.vim",
|
||||
url = "https://github.com/github/copilot.vim"
|
||||
},
|
||||
["crates.nvim"] = {
|
||||
config = { "\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vcrates\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/crates.nvim",
|
||||
url = "https://github.com/saecki/crates.nvim"
|
||||
},
|
||||
["dashboard-nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/dashboard-nvim",
|
||||
url = "https://github.com/glepnir/dashboard-nvim"
|
||||
},
|
||||
["editorconfig-vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/editorconfig-vim",
|
||||
url = "https://github.com/editorconfig/editorconfig-vim"
|
||||
},
|
||||
["emmet-vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/emmet-vim",
|
||||
url = "https://github.com/mattn/emmet-vim"
|
||||
},
|
||||
["fidget.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/fidget.nvim",
|
||||
url = "https://github.com/j-hui/fidget.nvim"
|
||||
},
|
||||
["friendly-snippets"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/friendly-snippets",
|
||||
url = "https://github.com/rafamadriz/friendly-snippets"
|
||||
},
|
||||
["github-nvim-theme"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/github-nvim-theme",
|
||||
url = "https://github.com/projekt0n/github-nvim-theme"
|
||||
},
|
||||
["gitsigns.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
||||
url = "https://github.com/lewis6991/gitsigns.nvim"
|
||||
},
|
||||
["glow.nvim"] = {
|
||||
config = { "\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tglow\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/glow.nvim",
|
||||
url = "https://github.com/ellisonleao/glow.nvim"
|
||||
},
|
||||
["gruvbox-baby"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/gruvbox-baby",
|
||||
url = "https://github.com/luisiacc/gruvbox-baby"
|
||||
},
|
||||
["gruvbox-material"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/gruvbox-material",
|
||||
url = "https://github.com/sainnhe/gruvbox-material"
|
||||
},
|
||||
["hop.nvim"] = {
|
||||
config = { "\27LJ\2\nÀ\1\0\0\6\0\r\0\0226\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\3\0009\0\4\0009\0\5\0'\2\6\0'\3\a\0'\4\b\0005\5\t\0B\0\5\0016\0\3\0009\0\4\0009\0\5\0'\2\6\0'\3\n\0'\4\v\0005\5\f\0B\0\5\1K\0\1\0\1\0\1\vsilent\2\17:HopWord<cr>\6S\1\0\1\vsilent\2\18:HopChar2<cr>\6s\6n\20nvim_set_keymap\bapi\bvim\nsetup\bhop\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/hop.nvim",
|
||||
url = "https://github.com/phaazon/hop.nvim"
|
||||
},
|
||||
["indent-blankline.nvim"] = {
|
||||
config = { "\27LJ\2\n•\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\21filetype_exclude\1\2\0\0\14dashboard\1\0\2\tchar\b┊#show_trailing_blankline_indent\1\nsetup\21indent_blankline\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim",
|
||||
url = "https://github.com/lukas-reineke/indent-blankline.nvim"
|
||||
},
|
||||
["lsp_signature.nvim"] = {
|
||||
config = { "\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\14on_attach\18lsp_signature\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/lsp_signature.nvim",
|
||||
url = "https://github.com/ray-x/lsp_signature.nvim"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||
},
|
||||
["mason-lspconfig.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
|
||||
url = "https://github.com/williamboman/mason-lspconfig.nvim"
|
||||
},
|
||||
["mason.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/mason.nvim",
|
||||
url = "https://github.com/williamboman/mason.nvim"
|
||||
},
|
||||
["material.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/material.nvim",
|
||||
url = "https://github.com/marko-cerovac/material.nvim"
|
||||
},
|
||||
["mellow.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/mellow.nvim",
|
||||
url = "https://github.com/kvrohit/mellow.nvim"
|
||||
},
|
||||
["minimal.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/minimal.nvim",
|
||||
url = "https://github.com/yazeed1s/minimal.nvim"
|
||||
},
|
||||
["neodev.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/neodev.nvim",
|
||||
url = "https://github.com/folke/neodev.nvim"
|
||||
},
|
||||
["neoscroll.nvim"] = {
|
||||
config = { "\27LJ\2\nÕ\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\2B\0\2\1K\0\1\0\rmappings\1\0\5\16hide_cursor\2\25cursor_scrolls_alone\2\22respect_scrolloff\1\24use_local_scrolloff\1\rstop_eof\2\1\n\0\0\n<C-u>\n<C-d>\n<C-b>\n<C-f>\n<C-y>\n<C-e>\azt\azz\azb\nsetup\14neoscroll\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/neoscroll.nvim",
|
||||
url = "https://github.com/karb94/neoscroll.nvim"
|
||||
},
|
||||
["nightfox.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nightfox.nvim",
|
||||
url = "https://github.com/EdenEast/nightfox.nvim"
|
||||
},
|
||||
["nord.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nord.nvim",
|
||||
url = "https://github.com/shaunsingh/nord.nvim"
|
||||
},
|
||||
["numb.nvim"] = {
|
||||
config = { "\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tnumb\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/numb.nvim",
|
||||
url = "https://github.com/nacro90/numb.nvim"
|
||||
},
|
||||
nvim = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim",
|
||||
url = "https://github.com/Everblush/nvim"
|
||||
},
|
||||
["nvim-autopairs"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
|
||||
url = "https://github.com/windwp/nvim-autopairs"
|
||||
},
|
||||
["nvim-bqf"] = {
|
||||
config = { "\27LJ\2\nõ\2\0\0\6\0\18\0\0216\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0005\4\5\0=\4\6\3=\3\a\0025\3\b\0=\3\t\0025\3\15\0005\4\v\0005\5\n\0=\5\f\0045\5\r\0=\5\14\4=\4\16\3=\3\17\2B\0\2\1K\0\1\0\vfilter\bfzf\1\0\0\15extra_opts\1\5\0\0\v--bind\22ctrl-o:toggle-all\r--prompt\a> \15action_for\1\0\0\1\0\1\vctrl-s\nsplit\rfunc_map\1\0\3\vvsplit\5\14stoggleup\5\16ptogglemode\az,\fpreview\17border_chars\1\n\0\0\b┃\b┃\bâ”<EFBFBD>\bâ”<EFBFBD>\bâ”<EFBFBD>\b┓\bâ”—\bâ”›\bâ–ˆ\1\0\3\15win_height\3\f\17delay_syntax\3P\16win_vheight\3\f\1\0\1\16auto_enable\2\nsetup\bbqf\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
only_cond = false,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/nvim-bqf",
|
||||
url = "https://github.com/kevinhwang91/nvim-bqf"
|
||||
},
|
||||
["nvim-cmp"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||
},
|
||||
["nvim-dap"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-dap",
|
||||
url = "https://github.com/mfussenegger/nvim-dap"
|
||||
},
|
||||
["nvim-dap-ui"] = {
|
||||
config = { "\27LJ\2\n3\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ndapui\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-dap-ui",
|
||||
url = "https://github.com/rcarriga/nvim-dap-ui"
|
||||
},
|
||||
["nvim-jdtls"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-jdtls",
|
||||
url = "https://github.com/mfussenegger/nvim-jdtls"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||
url = "https://github.com/neovim/nvim-lspconfig"
|
||||
},
|
||||
["nvim-navic"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-navic",
|
||||
url = "https://github.com/SmiteshP/nvim-navic"
|
||||
},
|
||||
["nvim-tree.lua"] = {
|
||||
config = { "\27LJ\2\n[\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\2B\0\2\1K\0\1\0\ffilters\1\0\0\1\0\1\rdotfiles\2\nsetup\14nvim-tree\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
|
||||
url = "https://github.com/nvim-tree/nvim-tree.lua"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
["nvim-treesitter-textobjects"] = {
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textobjects",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
|
||||
},
|
||||
["nvim-ts-autotag"] = {
|
||||
config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20nvim-ts-autotag\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag",
|
||||
url = "https://github.com/windwp/nvim-ts-autotag"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
||||
},
|
||||
["oh-lucy.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/oh-lucy.nvim",
|
||||
url = "https://github.com/yazeed1s/oh-lucy.nvim"
|
||||
},
|
||||
["one_monokai.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/one_monokai.nvim",
|
||||
url = "https://github.com/cpea2506/one_monokai.nvim"
|
||||
},
|
||||
["onedarkpro.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/onedarkpro.nvim",
|
||||
url = "https://github.com/olimorris/onedarkpro.nvim"
|
||||
},
|
||||
["onenord.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/onenord.nvim",
|
||||
url = "https://github.com/rmehri01/onenord.nvim"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
url = "https://github.com/wbthomason/packer.nvim"
|
||||
},
|
||||
playground = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/playground",
|
||||
url = "https://github.com/nvim-treesitter/playground"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
["popup.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/popup.nvim",
|
||||
url = "https://github.com/nvim-lua/popup.nvim"
|
||||
},
|
||||
["presence.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/presence.nvim",
|
||||
url = "https://github.com/andweeb/presence.nvim"
|
||||
},
|
||||
["project.nvim"] = {
|
||||
config = { "\27LJ\2\n>\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\17project_nvim\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/project.nvim",
|
||||
url = "https://github.com/ahmedkhalf/project.nvim"
|
||||
},
|
||||
["rust-tools.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/rust-tools.nvim",
|
||||
url = "https://github.com/simrat39/rust-tools.nvim"
|
||||
},
|
||||
sonokai = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/sonokai",
|
||||
url = "https://github.com/sainnhe/sonokai"
|
||||
},
|
||||
["tailwindcss-colorizer-cmp.nvim"] = {
|
||||
config = { "\27LJ\2\nc\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\23color_square_width\3\2\nsetup\30tailwindcss-colorizer-cmp\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/tailwindcss-colorizer-cmp.nvim",
|
||||
url = "https://github.com/roobert/tailwindcss-colorizer-cmp.nvim"
|
||||
},
|
||||
["telescope-dap.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/telescope-dap.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-dap.nvim"
|
||||
},
|
||||
["telescope-fzf-native.nvim"] = {
|
||||
cond = { true },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/telescope-fzf-native.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||
},
|
||||
["todo-comments.nvim"] = {
|
||||
config = { "\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/todo-comments.nvim",
|
||||
url = "https://github.com/folke/todo-comments.nvim"
|
||||
},
|
||||
["toggleterm.nvim"] = {
|
||||
config = { "\27LJ\2\ns\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\15float_opts\1\0\1\vborder\vcurved\1\0\1\14direction\nfloat\nsetup\15toggleterm\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/toggleterm.nvim",
|
||||
url = "https://github.com/akinsho/toggleterm.nvim"
|
||||
},
|
||||
["tokyodark.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/tokyodark.nvim",
|
||||
url = "https://github.com/tiagovla/tokyodark.nvim"
|
||||
},
|
||||
undotree = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/undotree",
|
||||
url = "https://github.com/mbbill/undotree"
|
||||
},
|
||||
["vim-cmake"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-cmake",
|
||||
url = "https://github.com/cdelledonne/vim-cmake"
|
||||
},
|
||||
["vim-css-color"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-css-color",
|
||||
url = "https://github.com/ap/vim-css-color"
|
||||
},
|
||||
["vim-fugitive"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
||||
url = "https://github.com/tpope/vim-fugitive"
|
||||
},
|
||||
["vim-nerdtree-tabs"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-nerdtree-tabs",
|
||||
url = "https://github.com/jistr/vim-nerdtree-tabs"
|
||||
},
|
||||
["vim-racer"] = {
|
||||
config = { "\27LJ\2\nG\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0( let g:racer_cmd = \"/usr/bin/racer\"\bcmd\bvim\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-racer",
|
||||
url = "https://github.com/racer-rust/vim-racer"
|
||||
},
|
||||
["vim-rhubarb"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-rhubarb",
|
||||
url = "https://github.com/tpope/vim-rhubarb"
|
||||
},
|
||||
["vim-sanegx"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/opt/vim-sanegx",
|
||||
url = "https://github.com/felipec/vim-sanegx"
|
||||
},
|
||||
["vim-sleuth"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-sleuth",
|
||||
url = "https://github.com/tpope/vim-sleuth"
|
||||
},
|
||||
["vim-surround"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-surround",
|
||||
url = "https://github.com/tpope/vim-surround"
|
||||
},
|
||||
["vim-visual-multi"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/vim-visual-multi",
|
||||
url = "https://github.com/mg979/vim-visual-multi"
|
||||
},
|
||||
["which-key.nvim"] = {
|
||||
config = { "\27LJ\2\nš\1\0\0\5\0\b\0\v6\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3\4\0005\4\3\0=\4\5\0035\4\6\0=\4\a\3B\1\2\1K\0\1\0\vwindow\1\0\1\vborder\vsingle\19popup_mappings\1\0\0\1\0\2\14scroll_up\n<C-k>\16scroll_down\n<C-j>\nsetup\14which-key\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/which-key.nvim",
|
||||
url = "https://github.com/folke/which-key.nvim"
|
||||
},
|
||||
["wilder.nvim"] = {
|
||||
config = { "\27LJ\2\nÉ\4\0\0\3\0\5\0\r6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\0016\0\0\0009\0\1\0'\2\4\0B\0\2\1K\0\1\0ÿ\1call wilder#set_option(\"renderer\", wilder#popupmenu_renderer(wilder#popupmenu_border_theme({\"highlighter\": wilder#basic_highlighter(), \"min_width\": \"100%\", \"min_height\": \"50%\", \"reverse\": 0, \"highlights\": {\"border\": \"Normal\",},\"border\": \"rounded\"})))ß\1call wilder#set_option(\"renderer\", wilder#popupmenu_renderer({\"highlighter\": wilder#basic_highlighter(), \"left\": [ \" \", wilder#popupmenu_devicons(), ], \"right\": [ \" \", wilder#popupmenu_scrollbar(), ], \"pumblend\": 20}))2call wilder#setup({\"modes\": [\":\", \"/\", \"?\"]})\bcmd\bvim\0" },
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/wilder.nvim",
|
||||
url = "https://github.com/gelguy/wilder.nvim"
|
||||
},
|
||||
["zig.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/d/.local/share/nvim/site/pack/packer/start/zig.vim",
|
||||
url = "https://github.com/ziglang/zig.vim"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
-- Config for: which-key.nvim
|
||||
time([[Config for which-key.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nš\1\0\0\5\0\b\0\v6\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3\4\0005\4\3\0=\4\5\0035\4\6\0=\4\a\3B\1\2\1K\0\1\0\vwindow\1\0\1\vborder\vsingle\19popup_mappings\1\0\0\1\0\2\14scroll_up\n<C-k>\16scroll_down\n<C-j>\nsetup\14which-key\frequire\0", "config", "which-key.nvim")
|
||||
time([[Config for which-key.nvim]], false)
|
||||
-- Config for: numb.nvim
|
||||
time([[Config for numb.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tnumb\frequire\0", "config", "numb.nvim")
|
||||
time([[Config for numb.nvim]], false)
|
||||
-- Config for: nvim-tree.lua
|
||||
time([[Config for nvim-tree.lua]], true)
|
||||
try_loadstring("\27LJ\2\n[\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\2B\0\2\1K\0\1\0\ffilters\1\0\0\1\0\1\rdotfiles\2\nsetup\14nvim-tree\frequire\0", "config", "nvim-tree.lua")
|
||||
time([[Config for nvim-tree.lua]], false)
|
||||
-- Config for: tailwindcss-colorizer-cmp.nvim
|
||||
time([[Config for tailwindcss-colorizer-cmp.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nc\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\23color_square_width\3\2\nsetup\30tailwindcss-colorizer-cmp\frequire\0", "config", "tailwindcss-colorizer-cmp.nvim")
|
||||
time([[Config for tailwindcss-colorizer-cmp.nvim]], false)
|
||||
-- Config for: wilder.nvim
|
||||
time([[Config for wilder.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nÉ\4\0\0\3\0\5\0\r6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\0016\0\0\0009\0\1\0'\2\4\0B\0\2\1K\0\1\0ÿ\1call wilder#set_option(\"renderer\", wilder#popupmenu_renderer(wilder#popupmenu_border_theme({\"highlighter\": wilder#basic_highlighter(), \"min_width\": \"100%\", \"min_height\": \"50%\", \"reverse\": 0, \"highlights\": {\"border\": \"Normal\",},\"border\": \"rounded\"})))ß\1call wilder#set_option(\"renderer\", wilder#popupmenu_renderer({\"highlighter\": wilder#basic_highlighter(), \"left\": [ \" \", wilder#popupmenu_devicons(), ], \"right\": [ \" \", wilder#popupmenu_scrollbar(), ], \"pumblend\": 20}))2call wilder#setup({\"modes\": [\":\", \"/\", \"?\"]})\bcmd\bvim\0", "config", "wilder.nvim")
|
||||
time([[Config for wilder.nvim]], false)
|
||||
-- Config for: Comment.nvim
|
||||
time([[Config for Comment.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
|
||||
time([[Config for Comment.nvim]], false)
|
||||
-- Config for: toggleterm.nvim
|
||||
time([[Config for toggleterm.nvim]], true)
|
||||
try_loadstring("\27LJ\2\ns\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\15float_opts\1\0\1\vborder\vcurved\1\0\1\14direction\nfloat\nsetup\15toggleterm\frequire\0", "config", "toggleterm.nvim")
|
||||
time([[Config for toggleterm.nvim]], false)
|
||||
-- Config for: indent-blankline.nvim
|
||||
time([[Config for indent-blankline.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n•\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\21filetype_exclude\1\2\0\0\14dashboard\1\0\2\tchar\b┊#show_trailing_blankline_indent\1\nsetup\21indent_blankline\frequire\0", "config", "indent-blankline.nvim")
|
||||
time([[Config for indent-blankline.nvim]], false)
|
||||
-- Config for: project.nvim
|
||||
time([[Config for project.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n>\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\17project_nvim\frequire\0", "config", "project.nvim")
|
||||
time([[Config for project.nvim]], false)
|
||||
-- Config for: crates.nvim
|
||||
time([[Config for crates.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vcrates\frequire\0", "config", "crates.nvim")
|
||||
time([[Config for crates.nvim]], false)
|
||||
-- Config for: glow.nvim
|
||||
time([[Config for glow.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tglow\frequire\0", "config", "glow.nvim")
|
||||
time([[Config for glow.nvim]], false)
|
||||
-- Config for: nvim-dap-ui
|
||||
time([[Config for nvim-dap-ui]], true)
|
||||
try_loadstring("\27LJ\2\n3\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ndapui\frequire\0", "config", "nvim-dap-ui")
|
||||
time([[Config for nvim-dap-ui]], false)
|
||||
-- Config for: vim-racer
|
||||
time([[Config for vim-racer]], true)
|
||||
try_loadstring("\27LJ\2\nG\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0( let g:racer_cmd = \"/usr/bin/racer\"\bcmd\bvim\0", "config", "vim-racer")
|
||||
time([[Config for vim-racer]], false)
|
||||
-- Config for: nvim-ts-autotag
|
||||
time([[Config for nvim-ts-autotag]], true)
|
||||
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20nvim-ts-autotag\frequire\0", "config", "nvim-ts-autotag")
|
||||
time([[Config for nvim-ts-autotag]], false)
|
||||
-- Conditional loads
|
||||
time([[Conditional loading of telescope-fzf-native.nvim]], true)
|
||||
require("packer.load")({"telescope-fzf-native.nvim"}, {}, _G.packer_plugins)
|
||||
time([[Conditional loading of telescope-fzf-native.nvim]], false)
|
||||
-- Load plugins in order defined by `after`
|
||||
time([[Sequenced loading]], true)
|
||||
vim.cmd [[ packadd nvim-treesitter ]]
|
||||
vim.cmd [[ packadd nvim-treesitter-textobjects ]]
|
||||
time([[Sequenced loading]], false)
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'vim-sanegx', 'nvim-bqf', 'hop.nvim', 'lsp_signature.nvim', 'todo-comments.nvim'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufNew * ++once lua require("packer.load")({'nvim-bqf'}, { event = "BufNew *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au WinScrolled * ++once lua require("packer.load")({'neoscroll.nvim'}, { event = "WinScrolled *" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
|
||||
_G._packer.inside_compile = false
|
||||
if _G._packer.needs_bufread == true then
|
||||
vim.cmd("doautocmd BufRead")
|
||||
end
|
||||
_G._packer.needs_bufread = false
|
||||
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
end)
|
||||
|
||||
if not no_errors then
|
||||
error_msg = error_msg:gsub('"', '\\"')
|
||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue