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
|
1
.bckpold/after/init.lua
Executable file
1
.bckpold/after/init.lua
Executable file
|
@ -0,0 +1 @@
|
||||||
|
vim.cmd.Alpha
|
24
.bckpold/after/plugin/autopairs.lua
Executable file
24
.bckpold/after/plugin/autopairs.lua
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
local npairs = require("nvim-autopairs")
|
||||||
|
local Rule = require('nvim-autopairs.rule')
|
||||||
|
|
||||||
|
npairs.setup({
|
||||||
|
check_ts = true,
|
||||||
|
ts_config = {
|
||||||
|
lua = {'string'},-- it will not add a pair on that treesitter node
|
||||||
|
javascript = {'template_string'},
|
||||||
|
java = false,-- don't check treesitter on java
|
||||||
|
},
|
||||||
|
enable_check_bracket_line = false,
|
||||||
|
ignored_next_char = "[%w%.]",
|
||||||
|
})
|
||||||
|
|
||||||
|
local ts_conds = require('nvim-autopairs.ts-conds')
|
||||||
|
|
||||||
|
|
||||||
|
-- press % => %% only while inside a comment or string
|
||||||
|
-- npairs.add_rules({
|
||||||
|
-- Rule("%", "%", "lua")
|
||||||
|
-- :with_pair(ts_conds.is_ts_node({'string','comment'})),
|
||||||
|
-- Rule("$", "$", "lua")
|
||||||
|
-- :with_pair(ts_conds.is_not_ts_node({'function'}))
|
||||||
|
-- })
|
73
.bckpold/after/plugin/barbar.lua
Executable file
73
.bckpold/after/plugin/barbar.lua
Executable file
|
@ -0,0 +1,73 @@
|
||||||
|
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",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>bh', '<Cmd>BufferPrevious<CR>', {desc = "buffer previous"})
|
||||||
|
vim.keymap.set('n', '<leader>bl', '<Cmd>BufferNext<CR>', {desc = "buffer next"})
|
||||||
|
-- Re-order to previous/next
|
||||||
|
vim.keymap.set('n', '<leader>b<', '<Cmd>BufferMovePrevious<CR>', { desc = "move previous" })
|
||||||
|
vim.keymap.set('n', '<leader>b>', '<Cmd>BufferMoveNext<CR>', { desc = "move next" })
|
||||||
|
-- Goto buffer in position...
|
||||||
|
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" })
|
||||||
|
vim.keymap.set('n', '<leader>bL', '<Cmd>BufferLast<CR>', { desc = "last" })
|
||||||
|
-- Pin/unpin buffer
|
||||||
|
vim.keymap.set('n', '<leadder>bp', '<Cmd>BufferPin<CR>', { desc = "pin" })
|
||||||
|
-- Close buffer
|
||||||
|
vim.keymap.set('n', '<leader>bc', '<Cmd>BufferClose<CR>', { desc = "close" })
|
||||||
|
-- Wipeout buffer
|
||||||
|
-- :BufferWipeout
|
||||||
|
-- Close commands
|
||||||
|
-- :BufferCloseAllButCurrent
|
||||||
|
-- :BufferCloseAllButPinned
|
||||||
|
-- :BufferCloseAllButCurrentOrPinned
|
||||||
|
-- :BufferCloseBuffersLeft
|
||||||
|
-- :BufferCloseBuffersRight
|
||||||
|
-- Magic buffer-picking mode
|
||||||
|
vim.keymap.set('n', '<leader>bb', '<Cmd>BufferPick<CR>', { desc = "buffer picker" })
|
||||||
|
-- Sort automatically by...
|
||||||
|
--vim.keymap.set('n', '<Space>bb', '<Cmd>BufferOrderByBufferNumber<CR>', { desc = "" })
|
||||||
|
--vim.keymap.set('n', '<Space>bd', '<Cmd>BufferOrderByDirectory<CR>', { desc = "" })
|
||||||
|
--vim.keymap.set('n', '<Space>bl', '<Cmd>BufferOrderByLanguage<CR>', { desc = "" })
|
||||||
|
--vim.keymap.set('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', { desc = "" })
|
||||||
|
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
2
.bckpold/after/plugin/java.lua
Executable file
2
.bckpold/after/plugin/java.lua
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
require("dapui").setup()
|
||||||
|
|
97
.bckpold/after/plugin/lsp.lua
Executable file
97
.bckpold/after/plugin/lsp.lua
Executable file
|
@ -0,0 +1,97 @@
|
||||||
|
local lsp = require('lsp-zero')
|
||||||
|
local navic = require("nvim-navic")
|
||||||
|
|
||||||
|
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
|
||||||
|
})
|
||||||
|
|
||||||
|
lsp.preset('recommended')
|
||||||
|
|
||||||
|
lsp.ensure_installed({
|
||||||
|
"clangd",
|
||||||
|
"gopls",
|
||||||
|
"jdtls",
|
||||||
|
"eslint",
|
||||||
|
"tailwindcss",
|
||||||
|
"tsserver",
|
||||||
|
"cssmodules_ls",
|
||||||
|
"rome",
|
||||||
|
"jsonls",
|
||||||
|
"sumneko_lua",
|
||||||
|
"pylsp",
|
||||||
|
"rust_analyzer",
|
||||||
|
"stylelint_lsp",
|
||||||
|
})
|
||||||
|
|
||||||
|
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||||
|
local cmp = require("cmp")
|
||||||
|
cmp.event:on(
|
||||||
|
'confirm_done',
|
||||||
|
cmp_autopairs.on_confirm_done()
|
||||||
|
)
|
||||||
|
|
||||||
|
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
||||||
|
local Cmp_mappings = lsp.defaults.cmp_mappings({
|
||||||
|
["<C-y>"] = cmp.mapping.confirm({ slelect = true}),
|
||||||
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
|
})
|
||||||
|
|
||||||
|
local cmp_sources = lsp.defaults.cmp_sources({
|
||||||
|
{name="crates"},
|
||||||
|
{name="cmp_tabnine"},
|
||||||
|
})
|
||||||
|
|
||||||
|
lsp.setup_nvim_cmp({
|
||||||
|
mapping = Cmp_mappings,
|
||||||
|
sources = cmp_sources
|
||||||
|
})
|
||||||
|
|
||||||
|
lsp.on_attach(function(client, bufnr)
|
||||||
|
--if client.name == "eslint" then
|
||||||
|
-- vim.cmd [[ LspStop eslint ]]
|
||||||
|
-- return
|
||||||
|
--end
|
||||||
|
|
||||||
|
navic.attach(client, bufnr)
|
||||||
|
|
||||||
|
|
||||||
|
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})
|
||||||
|
end)
|
||||||
|
|
||||||
|
lsp.setup()
|
||||||
|
|
||||||
|
-- vim.diagnostic.config({
|
||||||
|
-- signs = true,
|
||||||
|
-- underline = true,
|
||||||
|
-- update_in_insert = true,
|
||||||
|
-- virtual_text = true,
|
||||||
|
-- })
|
||||||
|
vim.diagnostic.config({
|
||||||
|
signs = true,
|
||||||
|
underline = true,
|
||||||
|
update_in_insert = true,
|
||||||
|
virtual_text = true,
|
||||||
|
})
|
40
.bckpold/after/plugin/lualine.lua
Executable file
40
.bckpold/after/plugin/lualine.lua
Executable file
|
@ -0,0 +1,40 @@
|
||||||
|
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 = {}
|
||||||
|
}
|
5
.bckpold/after/plugin/nvim-tree.lua
Executable file
5
.bckpold/after/plugin/nvim-tree.lua
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
filters = {
|
||||||
|
dotfiles = true,
|
||||||
|
},
|
||||||
|
})
|
22
.bckpold/after/plugin/presence.lua
Executable file
22
.bckpold/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 = 10, -- 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)
|
||||||
|
})
|
162
.bckpold/after/plugin/rust-tools.lua
Executable file
162
.bckpold/after/plugin/rust-tools.lua
Executable file
|
@ -0,0 +1,162 @@
|
||||||
|
local rt = require("rust-tools")
|
||||||
|
|
||||||
|
rt.setup({
|
||||||
|
server = {
|
||||||
|
on_attach = function(_, bufnr)
|
||||||
|
-- Hover actions
|
||||||
|
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
||||||
|
-- Code action groups
|
||||||
|
vim.keymap.set("n", "<Leader>ra", rt.code_action_group.code_action_group, { buffer = bufnr })
|
||||||
|
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",
|
||||||
|
},
|
||||||
|
}
|
27
.bckpold/after/plugin/telescope.lua
Executable file
27
.bckpold/after/plugin/telescope.lua
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
require "telescope".setup {
|
||||||
|
pickers = {
|
||||||
|
colorscheme = {
|
||||||
|
enable_preview = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local builtin = require('telescope.builtin')
|
||||||
|
vim.keymap.set("n", "<leader>fn", 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>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')
|
6
.bckpold/after/plugin/toggleterm.lua
Executable file
6
.bckpold/after/plugin/toggleterm.lua
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
require("toggleterm").setup{
|
||||||
|
direction = "float",
|
||||||
|
float_opts = {
|
||||||
|
border = "curved"
|
||||||
|
},
|
||||||
|
}
|
33
.bckpold/after/plugin/treesitter.lua
Executable file
33
.bckpold/after/plugin/treesitter.lua
Executable file
|
@ -0,0 +1,33 @@
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
-- A list of parser names, or "all"
|
||||||
|
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" },
|
||||||
|
|
||||||
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||||
|
sync_install = false,
|
||||||
|
|
||||||
|
-- Automatically install missing parsers when entering buffer
|
||||||
|
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||||
|
auto_install = true,
|
||||||
|
|
||||||
|
-- List of parsers to ignore installing (for "all")
|
||||||
|
|
||||||
|
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
|
||||||
|
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
|
||||||
|
|
||||||
|
highlight = {
|
||||||
|
-- `false` will disable the whole extension
|
||||||
|
enable = true,
|
||||||
|
|
||||||
|
-- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
|
||||||
|
-- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
|
||||||
|
-- the name of the parser)
|
||||||
|
-- list of language that will be disabled
|
||||||
|
-- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
|
||||||
|
|
||||||
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||||
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||||
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||||
|
-- Instead of true it can also be a list of languages
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
}
|
1
.bckpold/after/plugin/undotree.lua
Executable file
1
.bckpold/after/plugin/undotree.lua
Executable file
|
@ -0,0 +1 @@
|
||||||
|
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
1
.bckpold/init.lua
Executable file
1
.bckpold/init.lua
Executable file
|
@ -0,0 +1 @@
|
||||||
|
require("davidontop")
|
4
.bckpold/lua/davidontop/init.lua
Executable file
4
.bckpold/lua/davidontop/init.lua
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
require("davidontop.packer")
|
||||||
|
require("davidontop.remap")
|
||||||
|
require("davidontop.set")
|
||||||
|
require("davidontop.neovide")
|
13
.bckpold/lua/davidontop/neovide.lua
Executable file
13
.bckpold/lua/davidontop/neovide.lua
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
vim.cmd [[
|
||||||
|
if exists("g:neovide")
|
||||||
|
set guifont=JetBrainsMono\ Nerd\ Font:14
|
||||||
|
let g:neovide_scroll_animation_length = 0.3
|
||||||
|
let g:neovide_scale_factor = 0.5
|
||||||
|
let g:neovide_refresh_rate = 60
|
||||||
|
let g:neovide_refresh_rate_idle = 5
|
||||||
|
let g:neovide_cursor_animation_length=0.13
|
||||||
|
let g:neovide_cursor_animation_length=0.13
|
||||||
|
let g:neovide_cursor_antialiasing = v:true
|
||||||
|
let g:neovide_cursor_vfx_mode = "pixiedust"
|
||||||
|
endif
|
||||||
|
]]
|
307
.bckpold/lua/davidontop/packer.lua
Executable file
307
.bckpold/lua/davidontop/packer.lua
Executable file
|
@ -0,0 +1,307 @@
|
||||||
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
|
||||||
|
return require('packer').startup(function(use)
|
||||||
|
-- Packer can manage itself
|
||||||
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
|
use {
|
||||||
|
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
||||||
|
-- or , branch = '0.1.x',
|
||||||
|
requires = { {'nvim-lua/plenary.nvim'} }
|
||||||
|
}
|
||||||
|
|
||||||
|
-- theme
|
||||||
|
|
||||||
|
-- syntax highlights
|
||||||
|
use( 'nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
|
||||||
|
use('nvim-treesitter/playground')
|
||||||
|
--undos
|
||||||
|
use("mbbill/undotree")
|
||||||
|
--lsp
|
||||||
|
use {
|
||||||
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
|
requires = {
|
||||||
|
-- LSP Support
|
||||||
|
{'neovim/nvim-lspconfig'},
|
||||||
|
{'williamboman/mason.nvim'},
|
||||||
|
{'williamboman/mason-lspconfig.nvim'},
|
||||||
|
|
||||||
|
-- Autocompletion
|
||||||
|
{'hrsh7th/nvim-cmp'},
|
||||||
|
{'hrsh7th/cmp-buffer'},
|
||||||
|
{'hrsh7th/cmp-path'},
|
||||||
|
{'saadparwaiz1/cmp_luasnip'},
|
||||||
|
{'hrsh7th/cmp-nvim-lsp'},
|
||||||
|
{'hrsh7th/cmp-nvim-lua'},
|
||||||
|
|
||||||
|
-- Snippets
|
||||||
|
{'L3MON4D3/LuaSnip'},
|
||||||
|
{'rafamadriz/friendly-snippets'},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-- debugging
|
||||||
|
use 'mfussenegger/nvim-dap'
|
||||||
|
--rust
|
||||||
|
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/useless
|
||||||
|
use 'ziglang/zig.vim'
|
||||||
|
--keybind help
|
||||||
|
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 {
|
||||||
|
"windwp/nvim-autopairs",
|
||||||
|
--config = function() require("nvim-autopairs").setup {} end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- <div></div>
|
||||||
|
use {"windwp/nvim-ts-autotag",
|
||||||
|
config = function ()
|
||||||
|
require('nvim-ts-autotag').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
--files
|
||||||
|
use {
|
||||||
|
'nvim-tree/nvim-tree.lua',
|
||||||
|
requires = {
|
||||||
|
'nvim-tree/nvim-web-devicons', -- optional, for file icons
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
--projects
|
||||||
|
use {
|
||||||
|
"ahmedkhalf/project.nvim",
|
||||||
|
config = function()
|
||||||
|
require("project_nvim").setup {}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- idfk
|
||||||
|
use {
|
||||||
|
"SmiteshP/nvim-navic",
|
||||||
|
requires = "neovim/nvim-lspconfig"
|
||||||
|
}
|
||||||
|
|
||||||
|
--fzf
|
||||||
|
use {"akinsho/toggleterm.nvim", tag = '*'}
|
||||||
|
|
||||||
|
--idk
|
||||||
|
use {
|
||||||
|
'nacro90/numb.nvim',
|
||||||
|
config = function ()
|
||||||
|
require("numb").setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
--idk
|
||||||
|
use 'nvim-lua/popup.nvim'
|
||||||
|
|
||||||
|
-- gc11j
|
||||||
|
use {
|
||||||
|
'numToStr/Comment.nvim',
|
||||||
|
config = function()
|
||||||
|
require('Comment').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- literaly the bottom of the screen
|
||||||
|
use {
|
||||||
|
'nvim-lualine/lualine.nvim',
|
||||||
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true }
|
||||||
|
}
|
||||||
|
|
||||||
|
--broken
|
||||||
|
use {
|
||||||
|
"kevinhwang91/rnvimr",
|
||||||
|
cmd = "RnvimrToggle",
|
||||||
|
config = function()
|
||||||
|
vim.g.rnvimr_draw_border = 1
|
||||||
|
vim.g.rnvimr_pick_enable = 1
|
||||||
|
vim.g.rnvimr_bw_enable = 1
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
--broken
|
||||||
|
use {'tzachar/cmp-tabnine', run='./install.sh', requires = 'hrsh7th/nvim-cmp'}
|
||||||
|
|
||||||
|
--idk
|
||||||
|
use {"ellisonleao/glow.nvim",
|
||||||
|
config = function ()
|
||||||
|
require("glow").setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
--useless
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
--broken i think TODO somethink
|
||||||
|
use {
|
||||||
|
"folke/todo-comments.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
config = function()
|
||||||
|
require("todo-comments").setup{}
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
--regex i think
|
||||||
|
use {
|
||||||
|
"felipec/vim-sanegx",
|
||||||
|
event = "BufRead",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- command mode help
|
||||||
|
use {
|
||||||
|
'gelguy/wilder.nvim',
|
||||||
|
config = function()
|
||||||
|
vim.cmd("call wilder#setup({'modes': [':', '/', '?']})")
|
||||||
|
vim.cmd("call wilder#set_option('renderer', wilder#popupmenu_renderer({'pumblend': 20}))")
|
||||||
|
vim.cmd("call wilder#set_option('renderer', wilder#popupmenu_renderer(wilder#popupmenu_border_theme({'highlights': {'border': 'Normal',},'border': 'rounded'})))")
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- idk
|
||||||
|
use {"preservim/tagbar"}
|
||||||
|
-- emmet snippets
|
||||||
|
use {"mattn/emmet-vim"}
|
||||||
|
--use {"terryma/vim-multiple-cursors"}
|
||||||
|
-- must be (multicursor)
|
||||||
|
use {"mg979/vim-visual-multi"}
|
||||||
|
-- broken in scss and sass
|
||||||
|
use {"ap/vim-css-color"}
|
||||||
|
--idk
|
||||||
|
use {"tpope/vim-surround"}
|
||||||
|
--idk
|
||||||
|
use {'kyazdani42/nvim-web-devicons'}
|
||||||
|
--not used
|
||||||
|
use {
|
||||||
|
"ray-x/lsp_signature.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
config = function() require"lsp_signature".on_attach() end,
|
||||||
|
}
|
||||||
|
-- idk
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
-- idk
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
|
||||||
|
--dashboard
|
||||||
|
use {
|
||||||
|
'goolord/alpha-nvim',
|
||||||
|
config = function ()
|
||||||
|
require'alpha'.setup(require'alpha.themes.dashboard'.config)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use {'romgrk/barbar.nvim'}
|
||||||
|
--use {'akinsho/bufferline.nvim', tag = "v3.*",}
|
||||||
|
use {"jistr/vim-nerdtree-tabs"}
|
||||||
|
|
||||||
|
-- native fzf
|
||||||
|
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', cond = vim.fn.executable 'make' == 1 }
|
||||||
|
--idk
|
||||||
|
use 'andweeb/presence.nvim'
|
||||||
|
|
||||||
|
-- debugging
|
||||||
|
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} }
|
||||||
|
use "nvim-telescope/telescope-dap.nvim"
|
||||||
|
--java
|
||||||
|
use 'mfussenegger/nvim-jdtls'
|
||||||
|
--cmake
|
||||||
|
use "cdelledonne/vim-cmake"
|
||||||
|
--themes
|
||||||
|
use {
|
||||||
|
"sainnhe/gruvbox-material",
|
||||||
|
as = "gruvbox-material",
|
||||||
|
config = function ()
|
||||||
|
vim.cmd("colorscheme gruvbox-material")
|
||||||
|
end
|
||||||
|
}
|
||||||
|
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 'ramojus/mellifluous.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)
|
61
.bckpold/lua/davidontop/remap.lua
Executable file
61
.bckpold/lua/davidontop/remap.lua
Executable file
|
@ -0,0 +1,61 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.keymap.set("n", "<leader>en", vim.cmd.Ex, {desc = "netrw"})
|
||||||
|
|
||||||
|
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||||
|
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||||
|
|
||||||
|
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")
|
||||||
|
|
||||||
|
vim.keymap.set("i", "<C-c>", "<Esc>")
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
|
||||||
|
vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>s", ":%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>", {desc = "find and replace"})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>ee", vim.cmd.NvimTreeOpen, {desc = "nvimtree"})
|
||||||
|
vim.keymap.set("n", "<leader>ew", vim.cmd.NERDTreeTabsOpen, {desc = "NERDTree"})
|
||||||
|
vim.keymap.set("n", "<leader>er", vim.cmd.RnvimrToggle, {desc = "ranger"})
|
||||||
|
vim.keymap.set("n", "<C-S-\\>", vim.cmd.RnvimrToggle)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
vim.keymap.set("t", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>tn", vim.cmd.tabedit, {desc = "new tab"})
|
||||||
|
vim.keymap.set("n", "<leader>tc", vim.cmd.tabclose, {desc = "close tab"})
|
||||||
|
vim.keymap.set("n", "<leader>tl", vim.cmd.tabnext, {desc = "next tab"})
|
||||||
|
vim.keymap.set("n", "<leader>th", vim.cmd.tabprevious, {desc = "previous tab"})
|
||||||
|
vim.keymap.set("n", "<leader>tt", "<cmd>tabedit ", {desc = "open file in a new tab"})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>w", "<cmd>w<cr>", {desc = "Save File"})
|
||||||
|
vim.keymap.set("n", "<leader>qq", "<cmd>q!<cr>", {desc = "force quit"})
|
||||||
|
|
||||||
|
|
||||||
|
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})
|
||||||
|
|
||||||
|
-- java/debuging
|
||||||
|
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"})
|
||||||
|
|
||||||
|
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"})
|
||||||
|
|
39
.bckpold/lua/davidontop/set.lua
Executable file
39
.bckpold/lua/davidontop/set.lua
Executable file
|
@ -0,0 +1,39 @@
|
||||||
|
--vim.opt.guicursor = ""
|
||||||
|
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
vim.opt.tabstop = 4
|
||||||
|
vim.opt.softtabstop = 4
|
||||||
|
vim.opt.shiftwidth = 4
|
||||||
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
|
vim.opt.smartindent = true
|
||||||
|
|
||||||
|
vim.opt.wrap = true
|
||||||
|
vim.opt.smarttab = true
|
||||||
|
|
||||||
|
vim.opt.swapfile = false
|
||||||
|
vim.opt.backup = false
|
||||||
|
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||||
|
vim.opt.undofile = true
|
||||||
|
|
||||||
|
vim.opt.hlsearch = false
|
||||||
|
vim.opt.incsearch = true
|
||||||
|
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
|
||||||
|
vim.opt.scrolloff = 8
|
||||||
|
vim.opt.signcolumn = "yes"
|
||||||
|
vim.opt.isfname:append("@-@")
|
||||||
|
|
||||||
|
vim.opt.updatetime = 50
|
||||||
|
|
||||||
|
--vim.opt.colorcolumn = "80"
|
||||||
|
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
|
vim.o.mouse = 'a'
|
||||||
|
|
||||||
|
vim.o.ignorecase = true
|
||||||
|
vim.o.smartcase = true
|
569
.bckpold/plugin/packer_compiled.lua
Executable file
569
.bckpold/plugin/packer_compiled.lua
Executable file
|
@ -0,0 +1,569 @@
|
||||||
|
-- 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"
|
||||||
|
},
|
||||||
|
["alpha-nvim"] = {
|
||||||
|
config = { "\27LJ\2\na\0\0\5\0\5\0\n6\0\0\0'\2\1\0B\0\2\0029\0\2\0006\2\0\0'\4\3\0B\2\2\0029\2\4\2B\0\2\1K\0\1\0\vconfig\27alpha.themes.dashboard\nsetup\nalpha\frequire\0" },
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/start/alpha-nvim",
|
||||||
|
url = "https://github.com/goolord/alpha-nvim"
|
||||||
|
},
|
||||||
|
["barbar.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/start/barbar.nvim",
|
||||||
|
url = "https://github.com/romgrk/barbar.nvim"
|
||||||
|
},
|
||||||
|
["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-nvim-lua"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua",
|
||||||
|
url = "https://github.com/hrsh7th/cmp-nvim-lua"
|
||||||
|
},
|
||||||
|
["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"
|
||||||
|
},
|
||||||
|
["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"
|
||||||
|
},
|
||||||
|
["emmet-vim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/start/emmet-vim",
|
||||||
|
url = "https://github.com/mattn/emmet-vim"
|
||||||
|
},
|
||||||
|
["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"
|
||||||
|
},
|
||||||
|
["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"] = {
|
||||||
|
config = { "\27LJ\2\n@\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0!colorscheme gruvbox-material\bcmd\bvim\0" },
|
||||||
|
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"
|
||||||
|
},
|
||||||
|
["lsp-zero.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
|
||||||
|
url = "https://github.com/VonHeikemen/lsp-zero.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"
|
||||||
|
},
|
||||||
|
["mellifluous.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/start/mellifluous.nvim",
|
||||||
|
url = "https://github.com/ramojus/mellifluous.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"
|
||||||
|
},
|
||||||
|
["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\25cursor_scrolls_alone\2\22respect_scrolloff\1\24use_local_scrolloff\1\rstop_eof\2\16hide_cursor\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\16ptogglemode\az,\vvsplit\5\14stoggleup\5\fpreview\17border_chars\1\n\0\0\b┃\b┃\bâ”<EFBFBD>\bâ”<EFBFBD>\bâ”<EFBFBD>\b┓\bâ”—\bâ”›\bâ–ˆ\1\0\3\16win_vheight\3\f\15win_height\3\f\17delay_syntax\3P\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"] = {
|
||||||
|
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"] = {
|
||||||
|
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-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"
|
||||||
|
},
|
||||||
|
rnvimr = {
|
||||||
|
after_files = { "/home/d/.local/share/nvim/site/pack/packer/opt/rnvimr/after/plugin/rnvimr.vim" },
|
||||||
|
commands = { "RnvimrToggle" },
|
||||||
|
config = { "\27LJ\2\nx\0\0\2\0\5\0\r6\0\0\0009\0\1\0)\1\1\0=\1\2\0006\0\0\0009\0\1\0)\1\1\0=\1\3\0006\0\0\0009\0\1\0)\1\1\0=\1\4\0K\0\1\0\21rnvimr_bw_enable\23rnvimr_pick_enable\23rnvimr_draw_border\6g\bvim\0" },
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
only_cond = false,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/opt/rnvimr",
|
||||||
|
url = "https://github.com/kevinhwang91/rnvimr"
|
||||||
|
},
|
||||||
|
["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"
|
||||||
|
},
|
||||||
|
tagbar = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/d/.local/share/nvim/site/pack/packer/start/tagbar",
|
||||||
|
url = "https://github.com/preservim/tagbar"
|
||||||
|
},
|
||||||
|
["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"] = {
|
||||||
|
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-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-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-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Ú\2\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({'highlights': {'border': 'Normal',},'border': 'rounded'})))Tcall wilder#set_option('renderer', wilder#popupmenu_renderer({'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: 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: 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: gruvbox-material
|
||||||
|
time([[Config for gruvbox-material]], true)
|
||||||
|
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0!colorscheme gruvbox-material\bcmd\bvim\0", "config", "gruvbox-material")
|
||||||
|
time([[Config for gruvbox-material]], false)
|
||||||
|
-- Config for: alpha-nvim
|
||||||
|
time([[Config for alpha-nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\na\0\0\5\0\5\0\n6\0\0\0'\2\1\0B\0\2\0029\0\2\0006\2\0\0'\4\3\0B\2\2\0029\2\4\2B\0\2\1K\0\1\0\vconfig\27alpha.themes.dashboard\nsetup\nalpha\frequire\0", "config", "alpha-nvim")
|
||||||
|
time([[Config for alpha-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: 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: 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: 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-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)
|
||||||
|
-- Config for: wilder.nvim
|
||||||
|
time([[Config for wilder.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\nÚ\2\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({'highlights': {'border': 'Normal',},'border': 'rounded'})))Tcall wilder#set_option('renderer', wilder#popupmenu_renderer({'pumblend': 20}))2call wilder#setup({'modes': [':', '/', '?']})\bcmd\bvim\0", "config", "wilder.nvim")
|
||||||
|
time([[Config for wilder.nvim]], 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)
|
||||||
|
|
||||||
|
-- Command lazy-loads
|
||||||
|
time([[Defining lazy-load commands]], true)
|
||||||
|
pcall(vim.api.nvim_create_user_command, 'RnvimrToggle', function(cmdargs)
|
||||||
|
require('packer.load')({'rnvimr'}, { cmd = 'RnvimrToggle', l1 = cmdargs.line1, l2 = cmdargs.line2, bang = cmdargs.bang, args = cmdargs.args, mods = cmdargs.mods }, _G.packer_plugins)
|
||||||
|
end,
|
||||||
|
{nargs = '*', range = true, bang = true, complete = function()
|
||||||
|
require('packer.load')({'rnvimr'}, { cmd = 'RnvimrToggle' }, _G.packer_plugins)
|
||||||
|
return vim.fn.getcompletion('RnvimrToggle ', 'cmdline')
|
||||||
|
end})
|
||||||
|
time([[Defining lazy-load commands]], 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', 'hop.nvim', 'lsp_signature.nvim', 'nvim-bqf', '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
|
11
.latestBackup/after/init.lua
Executable file
11
.latestBackup/after/init.lua
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.number = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
vim.opt.cursorcolumn = true
|
||||||
|
vim.cmd[[
|
||||||
|
highlight CursorColumn guibg=none ctermbg=none
|
||||||
|
highlight link CursorColumn CursorLine
|
||||||
|
]]
|
15
.latestBackup/after/plugin/autopairs.lua
Executable file
15
.latestBackup/after/plugin/autopairs.lua
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
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")
|
44
.latestBackup/after/plugin/dash.lua
Executable file
44
.latestBackup/after/plugin/dash.lua
Executable file
|
@ -0,0 +1,44 @@
|
||||||
|
-- local db = require('dashboard')
|
||||||
|
--
|
||||||
|
local header = {"",
|
||||||
|
" /$$ /$$ /$$ /$$ /$$ ",
|
||||||
|
"| $$$ | $$ | $$ | $$|__/ ",
|
||||||
|
"| $$$$| $$ /$$$$$$ /$$$$$$ | $$ | $$ /$$ /$$$$$$/$$$$ ",
|
||||||
|
"| $$ $$ $$ /$$__ $$ /$$__ $$| $$ / $$/| $$| $$_ $$_ $$",
|
||||||
|
"| $$ $$$$| $$$$$$$$| $$ \\ $$ \\ $$ $$/ | $$| $$ \\ $$ \\ $$",
|
||||||
|
"| $$\\ $$$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$",
|
||||||
|
"| $$ \\ $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$",
|
||||||
|
"|__/ \\__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
}
|
||||||
|
-- db.custom_header = header
|
||||||
|
-- db.custom_center = {
|
||||||
|
-- {
|
||||||
|
-- icon = ' ',
|
||||||
|
-- desc ='File Browser ',
|
||||||
|
-- action = 'Telescope file_browser',
|
||||||
|
-- shortcut = 'SPC e e'
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
local dashboard = require("alpha.themes.dashboard")
|
||||||
|
dashboard.section.header.val = header
|
||||||
|
dashboard.section.buttons.val = {
|
||||||
|
dashboard.button("SPC e e", " File Tree", ":NeoTreeFloatToggle<cr>"),
|
||||||
|
dashboard.button("op", "Open Project", ":OP<cr>"),
|
||||||
|
dashboard.button("oc", "Open Config", ":Config<cr>"),
|
||||||
|
}
|
||||||
|
|
||||||
|
-- dashboard.section.footer.opts.hl = "Constant"
|
||||||
|
-- dashboard.section.header.opts.hl = "Include"
|
||||||
|
-- dashboard.section.buttons.opts.hl = "Function"
|
||||||
|
-- dashboard.section.buttons.opts.hl_shortcut = "Type"
|
||||||
|
dashboard.opts.opts.noautocmd = true
|
||||||
|
|
||||||
|
require("alpha").setup(dashboard.opts)
|
9
.latestBackup/after/plugin/fixmap.lua
Executable file
9
.latestBackup/after/plugin/fixmap.lua
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
vim.cmd[[
|
||||||
|
map <Space>m\ <nop>
|
||||||
|
map <Space>m/ <nop>
|
||||||
|
map <Space>mA <nop>
|
||||||
|
map <Space>mgS <nop>
|
||||||
|
|
||||||
|
map <Space>tt <nop>
|
||||||
|
map <Space>tm <nop>
|
||||||
|
]]
|
9
.latestBackup/after/plugin/git.lua
Executable file
9
.latestBackup/after/plugin/git.lua
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
require('gitsigns').setup {
|
||||||
|
signs = {
|
||||||
|
add = { text = '+' },
|
||||||
|
change = { text = '~' },
|
||||||
|
delete = { text = '_' },
|
||||||
|
topdelete = { text = '‾' },
|
||||||
|
changedelete = { text = '~' },
|
||||||
|
},
|
||||||
|
}
|
219
.latestBackup/after/plugin/lsp.lua
Executable file
219
.latestBackup/after/plugin/lsp.lua
Executable file
|
@ -0,0 +1,219 @@
|
||||||
|
-- local ih = require("inlay-hints")
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
-- ih.on_attach(client, bufnr)
|
||||||
|
require("lsp-inlayhints").on_attach(client, bufnr)
|
||||||
|
|
||||||
|
if client.server_capabilities.documentSymbolProvider then
|
||||||
|
navic.attach(client, bufnr)
|
||||||
|
require("nvim-navbuddy").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('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
|
||||||
|
|
||||||
|
-- Lesser used LSP functionality
|
||||||
|
nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||||
|
|
||||||
|
-- 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 = {},
|
||||||
|
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()
|
||||||
|
require("mason-nvim-dap").setup({automatic_installation = true, handlers = {
|
||||||
|
function (config)
|
||||||
|
require("mason-nvim-dap").default_setup(config)
|
||||||
|
end
|
||||||
|
}})
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("lspconfig").nimls.setup{
|
||||||
|
cmd = {"nimlsp", "--log", "/tmp/nimlsp.log"},
|
||||||
|
on_attach = on_attach,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("lspconfig").zls.setup{
|
||||||
|
cmd = {"zls"},
|
||||||
|
on_attach = on_attach,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- lspinfo
|
||||||
|
require('fidget').setup()
|
||||||
|
|
||||||
|
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||||
|
|
||||||
|
local cmp = require 'cmp'
|
||||||
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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><C-Space>"] = cmp.mapping.complete({}),
|
||||||
|
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
|
['<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" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
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"}
|
||||||
|
-- })
|
||||||
|
|
||||||
|
|
||||||
|
require("aerial").setup({})
|
||||||
|
|
||||||
|
require("dap")
|
||||||
|
|
||||||
|
local sign = vim.fn.sign_define
|
||||||
|
|
||||||
|
sign("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = ""})
|
||||||
|
sign("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = ""})
|
||||||
|
sign("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = ""})
|
8
.latestBackup/after/plugin/mini.lua
Executable file
8
.latestBackup/after/plugin/mini.lua
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
require("mini.ai").setup({
|
||||||
|
custom_textobjects = {
|
||||||
|
[','] = require("mini.ai").gen_spec.pair(',', ',', {})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
require("mini.jump").setup({})
|
||||||
|
require("mini.sessions").setup({autowrite = false, directory = '~/projects/sessions'})
|
||||||
|
|
10
.latestBackup/after/plugin/neotree.lua
Executable file
10
.latestBackup/after/plugin/neotree.lua
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
require("neo-tree").setup({
|
||||||
|
source_selector = {
|
||||||
|
winbar = true,
|
||||||
|
statusline = false,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
vim.keymap.set("t", "<C-\\>", vim.cmd.ToggleTerm)
|
22
.latestBackup/after/plugin/presence.lua
Executable file
22
.latestBackup/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)
|
||||||
|
})
|
158
.latestBackup/after/plugin/rust.lua
Executable file
158
.latestBackup/after/plugin/rust.lua
Executable file
|
@ -0,0 +1,158 @@
|
||||||
|
local rt = require("rust-tools")
|
||||||
|
|
||||||
|
rt.setup({
|
||||||
|
server = {
|
||||||
|
on_attach = function(_, bufnr)
|
||||||
|
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",
|
||||||
|
},
|
||||||
|
}
|
762
.latestBackup/after/plugin/statusline.lua
Executable file
762
.latestBackup/after/plugin/statusline.lua
Executable file
|
@ -0,0 +1,762 @@
|
||||||
|
local conditions = require("heirline.conditions")
|
||||||
|
local utils = require("heirline.utils")
|
||||||
|
|
||||||
|
local colors = {
|
||||||
|
bright_bg = utils.get_highlight("Folded").bg,
|
||||||
|
bright_fg = utils.get_highlight("Folded").fg,
|
||||||
|
red = utils.get_highlight("DiagnosticError").fg,
|
||||||
|
dark_red = utils.get_highlight("diffDelete").bg,
|
||||||
|
green = utils.get_highlight("String").fg,
|
||||||
|
blue = utils.get_highlight("Function").fg,
|
||||||
|
gray = utils.get_highlight("NonText").fg,
|
||||||
|
orange = utils.get_highlight("Constant").fg,
|
||||||
|
purple = utils.get_highlight("Statement").fg,
|
||||||
|
cyan = utils.get_highlight("Special").fg,
|
||||||
|
diag_warn = utils.get_highlight("DiagnosticWarn").fg,
|
||||||
|
diag_error = utils.get_highlight("DiagnosticError").fg,
|
||||||
|
diag_hint = utils.get_highlight("DiagnosticHint").fg,
|
||||||
|
diag_info = utils.get_highlight("DiagnosticInfo").fg,
|
||||||
|
git_del = utils.get_highlight("diffRemoved").fg,
|
||||||
|
git_add = utils.get_highlight("diffAdded").fg,
|
||||||
|
git_change = utils.get_highlight("diffChanged").fg,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("heirline").load_colors(colors)
|
||||||
|
|
||||||
|
local ViMode = {
|
||||||
|
-- get vim current mode, this information will be required by the provider
|
||||||
|
-- and the highlight functions, so we compute it only once per component
|
||||||
|
-- evaluation and store it as a component attribute
|
||||||
|
init = function(self)
|
||||||
|
self.mode = vim.fn.mode(1) -- :h mode()
|
||||||
|
end,
|
||||||
|
-- Now we define some dictionaries to map the output of mode() to the
|
||||||
|
-- corresponding string and color. We can put these into `static` to compute
|
||||||
|
-- them at initialisation time.
|
||||||
|
static = {
|
||||||
|
mode_names = { -- change the strings if you like it vvvvverbose!
|
||||||
|
n = "N",
|
||||||
|
no = "N?",
|
||||||
|
nov = "N?",
|
||||||
|
noV = "N?",
|
||||||
|
["no\22"] = "N?",
|
||||||
|
niI = "Ni",
|
||||||
|
niR = "Nr",
|
||||||
|
niV = "Nv",
|
||||||
|
nt = "Nt",
|
||||||
|
v = "V",
|
||||||
|
vs = "Vs",
|
||||||
|
V = "V_",
|
||||||
|
Vs = "Vs",
|
||||||
|
["\22"] = "^V",
|
||||||
|
["\22s"] = "^V",
|
||||||
|
s = "S",
|
||||||
|
S = "S_",
|
||||||
|
["\19"] = "^S",
|
||||||
|
i = "I",
|
||||||
|
ic = "Ic",
|
||||||
|
ix = "Ix",
|
||||||
|
R = "R",
|
||||||
|
Rc = "Rc",
|
||||||
|
Rx = "Rx",
|
||||||
|
Rv = "Rv",
|
||||||
|
Rvc = "Rv",
|
||||||
|
Rvx = "Rv",
|
||||||
|
c = "C",
|
||||||
|
cv = "Ex",
|
||||||
|
r = "...",
|
||||||
|
rm = "M",
|
||||||
|
["r?"] = "?",
|
||||||
|
["!"] = "!",
|
||||||
|
t = "T",
|
||||||
|
},
|
||||||
|
mode_colors = {
|
||||||
|
n = "red" ,
|
||||||
|
i = "green",
|
||||||
|
v = "cyan",
|
||||||
|
V = "cyan",
|
||||||
|
["\22"] = "cyan",
|
||||||
|
c = "orange",
|
||||||
|
s = "purple",
|
||||||
|
S = "purple",
|
||||||
|
["\19"] = "purple",
|
||||||
|
R = "orange",
|
||||||
|
r = "orange",
|
||||||
|
["!"] = "red",
|
||||||
|
t = "red",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- We can now access the value of mode() that, by now, would have been
|
||||||
|
-- computed by `init()` and use it to index our strings dictionary.
|
||||||
|
-- note how `static` fields become just regular attributes once the
|
||||||
|
-- component is instantiated.
|
||||||
|
-- To be extra meticulous, we can also add some vim statusline syntax to
|
||||||
|
-- control the padding and make sure our string is always at least 2
|
||||||
|
-- characters long. Plus a nice Icon.
|
||||||
|
provider = function(self)
|
||||||
|
return " %2("..self.mode_names[self.mode].."%)"
|
||||||
|
end,
|
||||||
|
-- Same goes for the highlight. Now the foreground will change according to the current mode.
|
||||||
|
hl = function(self)
|
||||||
|
local mode = self.mode:sub(1, 1) -- get only the first mode character
|
||||||
|
return { fg = self.mode_colors[mode], bold = true, }
|
||||||
|
end,
|
||||||
|
-- Re-evaluate the component only on ModeChanged event!
|
||||||
|
-- Also allorws the statusline to be re-evaluated when entering operator-pending mode
|
||||||
|
update = {
|
||||||
|
"ModeChanged",
|
||||||
|
pattern = "*:*",
|
||||||
|
callback = vim.schedule_wrap(function()
|
||||||
|
vim.cmd("redrawstatus")
|
||||||
|
end),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
ViMode = utils.surround({ "", "" }, "bright_bg", { ViMode})
|
||||||
|
|
||||||
|
local FileNameBlock = {
|
||||||
|
-- let's first set up some attributes needed by this component and it's children
|
||||||
|
init = function(self)
|
||||||
|
self.filename = vim.api.nvim_buf_get_name(0)
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
-- We can now define some children separately and add them later
|
||||||
|
|
||||||
|
local FileIcon = {
|
||||||
|
init = function(self)
|
||||||
|
local filename = self.filename
|
||||||
|
local extension = vim.fn.fnamemodify(filename, ":e")
|
||||||
|
self.icon, self.icon_color = require("nvim-web-devicons").get_icon_color(filename, extension, { default = true })
|
||||||
|
end,
|
||||||
|
provider = function(self)
|
||||||
|
return self.icon and (self.icon .. " ")
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
return { fg = self.icon_color }
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
local FileName = {
|
||||||
|
provider = function(self)
|
||||||
|
-- first, trim the pattern relative to the current directory. For other
|
||||||
|
-- options, see :h filename-modifers
|
||||||
|
local filename = vim.fn.fnamemodify(self.filename, ":.")
|
||||||
|
if filename == "" then return "[No Name]" end
|
||||||
|
-- now, if the filename would occupy more than 1/4th of the available
|
||||||
|
-- space, we trim the file path to its initials
|
||||||
|
-- See Flexible Components section below for dynamic truncation
|
||||||
|
if not conditions.width_percent_below(#filename, 0.25) then
|
||||||
|
filename = vim.fn.pathshorten(filename)
|
||||||
|
end
|
||||||
|
return filename
|
||||||
|
end,
|
||||||
|
hl = { fg = utils.get_highlight("Directory").fg },
|
||||||
|
}
|
||||||
|
|
||||||
|
local FileFlags = {
|
||||||
|
{
|
||||||
|
condition = function()
|
||||||
|
return vim.bo.modified
|
||||||
|
end,
|
||||||
|
provider = "[+]",
|
||||||
|
hl = { fg = "green" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
condition = function()
|
||||||
|
return not vim.bo.modifiable or vim.bo.readonly
|
||||||
|
end,
|
||||||
|
provider = "",
|
||||||
|
hl = { fg = "orange" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Now, let's say that we want the filename color to change if the buffer is
|
||||||
|
-- modified. Of course, we could do that directly using the FileName.hl field,
|
||||||
|
-- but we'll see how easy it is to alter existing components using a "modifier"
|
||||||
|
-- component
|
||||||
|
|
||||||
|
local FileNameModifer = {
|
||||||
|
hl = function()
|
||||||
|
if vim.bo.modified then
|
||||||
|
-- use `force` because we need to override the child's hl foreground
|
||||||
|
return { fg = "cyan", bold = true, force=true }
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- let's add the children to our FileNameBlock component
|
||||||
|
FileNameBlock = utils.insert(FileNameBlock,
|
||||||
|
FileIcon,
|
||||||
|
utils.insert(FileNameModifer, FileName), -- a new table where FileName is a child of FileNameModifier
|
||||||
|
FileFlags,
|
||||||
|
{ provider = '%<'} -- this means that the statusline is cut here when there's not enough space
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
local FileSize = {
|
||||||
|
provider = function()
|
||||||
|
-- stackoverflow, compute human readable file size
|
||||||
|
local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' }
|
||||||
|
local fsize = vim.fn.getfsize(vim.api.nvim_buf_get_name(0))
|
||||||
|
fsize = (fsize < 0 and 0) or fsize
|
||||||
|
if fsize < 1024 then
|
||||||
|
return fsize..suffix[1]
|
||||||
|
end
|
||||||
|
local i = math.floor((math.log(fsize) / math.log(1024)))
|
||||||
|
return string.format("%.2g%s", fsize / math.pow(1024, i), suffix[i + 1])
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
local FileLastModified = {
|
||||||
|
-- did you know? Vim is full of functions!
|
||||||
|
provider = function()
|
||||||
|
local ftime = vim.fn.getftime(vim.api.nvim_buf_get_name(0))
|
||||||
|
return (ftime > 0) and os.date("%c", ftime)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
FileNameBlock = utils.surround({ "", "" }, "bright_bg", FileNameBlock)
|
||||||
|
|
||||||
|
-- We're getting minimalists here!
|
||||||
|
local Ruler = {
|
||||||
|
-- %l = current line number
|
||||||
|
-- %L = number of lines in the buffer
|
||||||
|
-- %c = column number
|
||||||
|
-- %P = percentage through file of displayed window
|
||||||
|
provider = "%7(%l/%3L%):%2c %P",
|
||||||
|
}
|
||||||
|
Ruler = utils.surround({ "", "" }, "bright_bg", Ruler)
|
||||||
|
|
||||||
|
-- I take no credits for this! :lion:
|
||||||
|
local ScrollBar ={
|
||||||
|
static = {
|
||||||
|
sbar = { '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█' }
|
||||||
|
-- Another variant, because the more choice the better.
|
||||||
|
-- sbar = { '🭶', '🭷', '🭸', '🭹', '🭺', '🭻' }
|
||||||
|
},
|
||||||
|
provider = function(self)
|
||||||
|
local curr_line = vim.api.nvim_win_get_cursor(0)[1]
|
||||||
|
local lines = vim.api.nvim_buf_line_count(0)
|
||||||
|
local i = math.floor((curr_line - 1) / lines * #self.sbar) + 1
|
||||||
|
return string.rep(self.sbar[i], 2)
|
||||||
|
end,
|
||||||
|
hl = { fg = "blue", bg = "bright_bg" },
|
||||||
|
}
|
||||||
|
|
||||||
|
local LSPActive = {
|
||||||
|
condition = conditions.lsp_attached,
|
||||||
|
update = {'LspAttach', 'LspDetach'},
|
||||||
|
|
||||||
|
-- You can keep it simple,
|
||||||
|
-- provider = " [LSP]",
|
||||||
|
|
||||||
|
-- Or complicate things a bit and get the servers names
|
||||||
|
provider = function()
|
||||||
|
local names = {}
|
||||||
|
for i, server in pairs(vim.lsp.get_active_clients({ bufnr = 0 })) do
|
||||||
|
table.insert(names, server.name)
|
||||||
|
end
|
||||||
|
return " [" .. table.concat(names, " ") .. "]"
|
||||||
|
end,
|
||||||
|
hl = { fg = "green", bold = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
LSPActive = utils.surround({ "", "" }, "bright_bg", LSPActive)
|
||||||
|
|
||||||
|
-- Full nerd (with icon colors and clickable elements)!
|
||||||
|
-- works in multi window, but does not support flexible components (yet ...)
|
||||||
|
local Navic = {
|
||||||
|
condition = function() return require("nvim-navic").is_available() end,
|
||||||
|
static = {
|
||||||
|
-- create a type highlight map
|
||||||
|
type_hl = {
|
||||||
|
File = "Directory",
|
||||||
|
Module = "@include",
|
||||||
|
Namespace = "@namespace",
|
||||||
|
Package = "@include",
|
||||||
|
Class = "@structure",
|
||||||
|
Method = "@method",
|
||||||
|
Property = "@property",
|
||||||
|
Field = "@field",
|
||||||
|
Constructor = "@constructor",
|
||||||
|
Enum = "@field",
|
||||||
|
Interface = "@type",
|
||||||
|
Function = "@function",
|
||||||
|
Variable = "@variable",
|
||||||
|
Constant = "@constant",
|
||||||
|
String = "@string",
|
||||||
|
Number = "@number",
|
||||||
|
Boolean = "@boolean",
|
||||||
|
Array = "@field",
|
||||||
|
Object = "@type",
|
||||||
|
Key = "@keyword",
|
||||||
|
Null = "@comment",
|
||||||
|
EnumMember = "@field",
|
||||||
|
Struct = "@structure",
|
||||||
|
Event = "@keyword",
|
||||||
|
Operator = "@operator",
|
||||||
|
TypeParameter = "@type",
|
||||||
|
},
|
||||||
|
-- bit operation dark magic, see below...
|
||||||
|
enc = function(line, col, winnr)
|
||||||
|
return bit.bor(bit.lshift(line, 16), bit.lshift(col, 6), winnr)
|
||||||
|
end,
|
||||||
|
-- line: 16 bit (65535); col: 10 bit (1023); winnr: 6 bit (63)
|
||||||
|
dec = function(c)
|
||||||
|
local line = bit.rshift(c, 16)
|
||||||
|
local col = bit.band(bit.rshift(c, 6), 1023)
|
||||||
|
local winnr = bit.band(c, 63)
|
||||||
|
return line, col, winnr
|
||||||
|
end
|
||||||
|
},
|
||||||
|
init = function(self)
|
||||||
|
local data = require("nvim-navic").get_data() or {}
|
||||||
|
local children = {}
|
||||||
|
-- create a child for each level
|
||||||
|
for i, d in ipairs(data) do
|
||||||
|
-- encode line and column numbers into a single integer
|
||||||
|
local pos = self.enc(d.scope.start.line, d.scope.start.character, self.winnr)
|
||||||
|
local child = {
|
||||||
|
{
|
||||||
|
provider = d.icon,
|
||||||
|
hl = self.type_hl[d.type],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- escape `%`s (elixir) and buggy default separators
|
||||||
|
provider = d.name:gsub("%%", "%%%%"):gsub("%s*->%s*", ''),
|
||||||
|
-- highlight icon only or location name as well
|
||||||
|
-- hl = self.type_hl[d.type],
|
||||||
|
|
||||||
|
on_click = {
|
||||||
|
-- pass the encoded position through minwid
|
||||||
|
minwid = pos,
|
||||||
|
callback = function(_, minwid)
|
||||||
|
-- decode
|
||||||
|
local line, col, winnr = self.dec(minwid)
|
||||||
|
vim.api.nvim_win_set_cursor(vim.fn.win_getid(winnr), {line, col})
|
||||||
|
end,
|
||||||
|
name = "heirline_navic",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
-- add a separator only if needed
|
||||||
|
if #data > 1 and i < #data then
|
||||||
|
table.insert(child, {
|
||||||
|
provider = " > ",
|
||||||
|
hl = { fg = 'bright_fg' },
|
||||||
|
})
|
||||||
|
end
|
||||||
|
table.insert(children, child)
|
||||||
|
end
|
||||||
|
-- instantiate the new child, overwriting the previous one
|
||||||
|
self.child = self:new(children, 1)
|
||||||
|
end,
|
||||||
|
-- evaluate the children containing navic components
|
||||||
|
provider = function(self)
|
||||||
|
return self.child:eval()
|
||||||
|
end,
|
||||||
|
hl = { fg = "gray" },
|
||||||
|
update = 'CursorMoved'
|
||||||
|
}
|
||||||
|
|
||||||
|
-- local Diagnostics = {
|
||||||
|
--
|
||||||
|
-- condition = conditions.has_diagnostics,
|
||||||
|
--
|
||||||
|
-- static = {
|
||||||
|
-- error_icon = vim.fn.sign_getdefined("DiagnosticSignError")[1].text,
|
||||||
|
-- warn_icon = vim.fn.sign_getdefined("DiagnosticSignWarn")[1].text,
|
||||||
|
-- info_icon = vim.fn.sign_getdefined("DiagnosticSignInfo")[1].text,
|
||||||
|
-- hint_icon = vim.fn.sign_getdefined("DiagnosticSignHint")[1].text,
|
||||||
|
-- },
|
||||||
|
--
|
||||||
|
-- init = function(self)
|
||||||
|
-- self.errors = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.ERROR })
|
||||||
|
-- self.warnings = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.WARN })
|
||||||
|
-- self.hints = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.HINT })
|
||||||
|
-- self.info = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.INFO })
|
||||||
|
-- end,
|
||||||
|
--
|
||||||
|
-- update = { "DiagnosticChanged", "BufEnter" },
|
||||||
|
--
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- -- 0 is just another output, we can decide to print it or not!
|
||||||
|
-- return self.errors > 0 and (self.error_icon .. self.errors .. " ")
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_error" },
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- return self.warnings > 0 and (self.warn_icon .. self.warnings .. " ")
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_warn" },
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- return self.info > 0 and (self.info_icon .. self.info .. " ")
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_info" },
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- return self.hints > 0 and (self.hint_icon .. self.hints)
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_hint" },
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
local Git = {
|
||||||
|
condition = conditions.is_git_repo,
|
||||||
|
|
||||||
|
init = function(self)
|
||||||
|
self.status_dict = vim.b.gitsigns_status_dict
|
||||||
|
self.has_changes = self.status_dict.added ~= 0 or self.status_dict.removed ~= 0 or self.status_dict.changed ~= 0
|
||||||
|
end,
|
||||||
|
|
||||||
|
hl = { fg = "orange" },
|
||||||
|
|
||||||
|
|
||||||
|
{ -- git branch name
|
||||||
|
provider = function(self)
|
||||||
|
return " " .. self.status_dict.head
|
||||||
|
end,
|
||||||
|
hl = { bold = true }
|
||||||
|
},
|
||||||
|
-- You could handle delimiters, icons and counts similar to Diagnostics
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return self.has_changes
|
||||||
|
end,
|
||||||
|
provider = "("
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider = function(self)
|
||||||
|
local count = self.status_dict.added or 0
|
||||||
|
return count > 0 and ("+" .. count)
|
||||||
|
end,
|
||||||
|
hl = { fg = "git_add" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider = function(self)
|
||||||
|
local count = self.status_dict.removed or 0
|
||||||
|
return count > 0 and ("-" .. count)
|
||||||
|
end,
|
||||||
|
hl = { fg = "git_del" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider = function(self)
|
||||||
|
local count = self.status_dict.changed or 0
|
||||||
|
return count > 0 and ("~" .. count)
|
||||||
|
end,
|
||||||
|
hl = { fg = "git_change" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return self.has_changes
|
||||||
|
end,
|
||||||
|
provider = ")",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
local DAPMessages = {
|
||||||
|
condition = function()
|
||||||
|
local session = require("dap").session()
|
||||||
|
return session ~= nil
|
||||||
|
end,
|
||||||
|
provider = function()
|
||||||
|
return " " .. require("dap").status()
|
||||||
|
end,
|
||||||
|
hl = "Debug"
|
||||||
|
-- see Click-it! section for clickable actions
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
local WorkDir = {
|
||||||
|
provider = function()
|
||||||
|
local icon = (vim.fn.haslocaldir(0) == 1 and "l" or "g") .. " " .. " "
|
||||||
|
local cwd = vim.fn.getcwd(0)
|
||||||
|
cwd = vim.fn.fnamemodify(cwd, ":~")
|
||||||
|
if not conditions.width_percent_below(#cwd, 0.25) then
|
||||||
|
cwd = vim.fn.pathshorten(cwd)
|
||||||
|
end
|
||||||
|
local trail = cwd:sub(-1) == '/' and '' or "/"
|
||||||
|
return icon .. cwd .. trail
|
||||||
|
end,
|
||||||
|
hl = { fg = "blue", bold = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
local TerminalName = {
|
||||||
|
-- we could add a condition to check that buftype == 'terminal'
|
||||||
|
-- or we could do that later (see #conditional-statuslines below)
|
||||||
|
provider = function()
|
||||||
|
local tname, _ = vim.api.nvim_buf_get_name(0):gsub(".*:", "")
|
||||||
|
return " " .. tname
|
||||||
|
end,
|
||||||
|
hl = { fg = "blue", bold = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
local TablineBufnr = {
|
||||||
|
provider = function(self)
|
||||||
|
return tostring(self.bufnr) .. ". "
|
||||||
|
end,
|
||||||
|
hl = "Comment",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- we redefine the filename component, as we probably only want the tail and not the relative path
|
||||||
|
local TablineFileName = {
|
||||||
|
provider = function(self)
|
||||||
|
-- self.filename will be defined later, just keep looking at the example!
|
||||||
|
local filename = self.filename
|
||||||
|
filename = filename == "" and "[No Name]" or vim.fn.fnamemodify(filename, ":t")
|
||||||
|
return filename
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
return { bold = self.is_active or self.is_visible, italic = true }
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- this looks exactly like the FileFlags component that we saw in
|
||||||
|
-- #crash-course-part-ii-filename-and-friends, but we are indexing the bufnr explicitly
|
||||||
|
-- also, we are adding a nice icon for terminal buffers.
|
||||||
|
local TablineFileFlags = {
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return vim.api.nvim_buf_get_option(self.bufnr, "modified")
|
||||||
|
end,
|
||||||
|
provider = "[+]",
|
||||||
|
hl = { fg = "green" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return not vim.api.nvim_buf_get_option(self.bufnr, "modifiable")
|
||||||
|
or vim.api.nvim_buf_get_option(self.bufnr, "readonly")
|
||||||
|
end,
|
||||||
|
provider = function(self)
|
||||||
|
if vim.api.nvim_buf_get_option(self.bufnr, "buftype") == "terminal" then
|
||||||
|
return " "
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
hl = { fg = "orange" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Here the filename block finally comes together
|
||||||
|
local TablineFileNameBlock = {
|
||||||
|
init = function(self)
|
||||||
|
self.filename = vim.api.nvim_buf_get_name(self.bufnr)
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
if self.is_active then
|
||||||
|
return "TabLineSel"
|
||||||
|
-- why not?
|
||||||
|
-- elseif not vim.api.nvim_buf_is_loaded(self.bufnr) then
|
||||||
|
-- return { fg = "gray" }
|
||||||
|
else
|
||||||
|
return "TabLine"
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
on_click = {
|
||||||
|
callback = function(_, minwid, _, button)
|
||||||
|
if (button == "m") then -- close on mouse middle click
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.api.nvim_buf_delete(minwid, { force = false })
|
||||||
|
end)
|
||||||
|
else
|
||||||
|
vim.api.nvim_win_set_buf(0, minwid)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
minwid = function(self)
|
||||||
|
return self.bufnr
|
||||||
|
end,
|
||||||
|
name = "heirline_tabline_buffer_callback",
|
||||||
|
},
|
||||||
|
TablineBufnr,
|
||||||
|
FileIcon, -- turns out the version defined in #crash-course-part-ii-filename-and-friends can be reutilized as is here!
|
||||||
|
TablineFileName,
|
||||||
|
TablineFileFlags,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- a nice "x" button to close the buffer
|
||||||
|
local TablineCloseButton = {
|
||||||
|
condition = function(self)
|
||||||
|
return not vim.api.nvim_buf_get_option(self.bufnr, "modified")
|
||||||
|
end,
|
||||||
|
{ provider = " " },
|
||||||
|
{
|
||||||
|
provider = "",
|
||||||
|
hl = { fg = "gray" },
|
||||||
|
on_click = {
|
||||||
|
callback = function(_, minwid)
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.api.nvim_buf_delete(minwid, { force = false })
|
||||||
|
end)
|
||||||
|
vim.cmd.redrawtabline()
|
||||||
|
end,
|
||||||
|
minwid = function(self)
|
||||||
|
return self.bufnr
|
||||||
|
end,
|
||||||
|
name = "heirline_tabline_close_buffer_callback",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- The final touch!
|
||||||
|
local TablineBufferBlock = utils.surround({ "", "" }, function(self)
|
||||||
|
if self.is_active then
|
||||||
|
return utils.get_highlight("TabLineSel").bg
|
||||||
|
else
|
||||||
|
return utils.get_highlight("TabLine").bg
|
||||||
|
end
|
||||||
|
end, { TablineFileNameBlock, TablineCloseButton })
|
||||||
|
|
||||||
|
-- and here we go
|
||||||
|
local BufferLine = utils.make_buflist(
|
||||||
|
TablineBufferBlock,
|
||||||
|
{ provider = "", hl = { fg = "gray" } }, -- left truncation, optional (defaults to "<")
|
||||||
|
{ provider = "", hl = { fg = "gray" } } -- right trunctation, also optional (defaults to ...... yep, ">")
|
||||||
|
-- by the way, open a lot of buffers and try clicking them ;)
|
||||||
|
)
|
||||||
|
|
||||||
|
local Tabpage = {
|
||||||
|
provider = function(self)
|
||||||
|
return "%" .. self.tabnr .. "T " .. self.tabpage .. " %T"
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
if not self.is_active then
|
||||||
|
return "TabLine"
|
||||||
|
else
|
||||||
|
return "TabLineSel"
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabpageClose = {
|
||||||
|
provider = "%999X %X",
|
||||||
|
hl = "TabLine",
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabPages = {
|
||||||
|
-- only show this component if there's 2 or more tabpages
|
||||||
|
condition = function()
|
||||||
|
return #vim.api.nvim_list_tabpages() >= 2
|
||||||
|
end,
|
||||||
|
{ provider = "%=" },
|
||||||
|
utils.make_tablist(Tabpage),
|
||||||
|
TabpageClose,
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabLineOffset = {
|
||||||
|
condition = function(self)
|
||||||
|
local win = vim.api.nvim_tabpage_list_wins(0)[1]
|
||||||
|
local bufnr = vim.api.nvim_win_get_buf(win)
|
||||||
|
self.winid = win
|
||||||
|
|
||||||
|
if vim.bo[bufnr].filetype == "NvimTree" then
|
||||||
|
self.title = "NvimTree"
|
||||||
|
return true
|
||||||
|
elseif vim.bo[bufnr].filetype == "neo-tree" then
|
||||||
|
self.title = "NeoTree"
|
||||||
|
return true
|
||||||
|
elseif vim.bo[bufnr].filetype == "nerdtree" then
|
||||||
|
self.title = "NerdTree"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
-- elseif vim.bo[bufnr].filetype == "TagBar" then
|
||||||
|
-- ...
|
||||||
|
end,
|
||||||
|
|
||||||
|
provider = function(self)
|
||||||
|
local title = self.title
|
||||||
|
local width = vim.api.nvim_win_get_width(self.winid)
|
||||||
|
local pad = math.ceil((width - #title) / 2)
|
||||||
|
return string.rep(" ", pad) .. title .. string.rep(" ", pad)
|
||||||
|
end,
|
||||||
|
|
||||||
|
hl = function(self)
|
||||||
|
if vim.api.nvim_get_current_win() == self.winid then
|
||||||
|
return "TablineSel"
|
||||||
|
else
|
||||||
|
return "Tabline"
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
local Align = { provider = "%=" }
|
||||||
|
local Space = { provider = " " }
|
||||||
|
|
||||||
|
local StatusLine = {
|
||||||
|
ViMode, Space, FileNameBlock, Space, Git, Space, Align,
|
||||||
|
DAPMessages, Align,
|
||||||
|
LSPActive, Space, Ruler
|
||||||
|
}
|
||||||
|
|
||||||
|
local WinBar = {
|
||||||
|
utils.surround({"", ""}, "#000000", Navic)
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabBar = {
|
||||||
|
TabLineOffset, BufferLine, TabPages,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("heirline").setup({
|
||||||
|
statusline = StatusLine,
|
||||||
|
tabline = TabBar,
|
||||||
|
winbar = WinBar,
|
||||||
|
opts = {
|
||||||
|
disable_winbar_cb = function(args)
|
||||||
|
local buf = args.buf
|
||||||
|
local buftype = vim.tbl_contains({ "prompt", "nofile", "help", "quickfix" }, vim.bo[buf].buftype)
|
||||||
|
local filetype = vim.tbl_contains({ "gitcommit", "fugitive", "Trouble", "packer", "neo-tree", "nerdtree", "NvimTree" }, vim.bo[buf].filetype)
|
||||||
|
return buftype or filetype
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.o.showtabline = 2
|
||||||
|
vim.o.laststatus = 3
|
||||||
|
|
||||||
|
-- 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 = {}
|
||||||
|
-- }
|
29
.latestBackup/after/plugin/tabline.lua
Executable file
29
.latestBackup/after/plugin/tabline.lua
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
-- require("bufferline").setup {
|
||||||
|
-- animation = true,
|
||||||
|
-- auto_hide = true,
|
||||||
|
-- tabpages = true,
|
||||||
|
-- closable = true,
|
||||||
|
-- clickable = true,
|
||||||
|
-- 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)
|
12
.latestBackup/after/plugin/telescope.lua
Executable file
12
.latestBackup/after/plugin/telescope.lua
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
require "telescope".setup {
|
||||||
|
pickers = {
|
||||||
|
colorscheme = {
|
||||||
|
enable_preview = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pcall(require("telescope").load_extension, "fzf")
|
||||||
|
require("telescope").load_extension("dap")
|
||||||
|
require('telescope').load_extension('projects')
|
24
.latestBackup/after/plugin/treesitter.lua
Executable file
24
.latestBackup/after/plugin/treesitter.lua
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
vim.filetype.add({extension = {wgsl = "wgsl"}})
|
||||||
|
|
||||||
|
require"nvim-treesitter.configs".setup {
|
||||||
|
ensure_installed = { "wgsl", "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,
|
||||||
|
},
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "gnn",
|
||||||
|
node_incremental = "grn",
|
||||||
|
scope_incremental = "grc",
|
||||||
|
node_decremental = "grm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.wo.foldmethod = "expr"
|
||||||
|
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
|
vim.o.foldlevelstart = 99 -- do not close folds when a buffer is opened
|
1
.latestBackup/init.lua
Executable file
1
.latestBackup/init.lua
Executable file
|
@ -0,0 +1 @@
|
||||||
|
require("config")
|
82
.latestBackup/lua/.luarc.json
Executable file
82
.latestBackup/lua/.luarc.json
Executable file
|
@ -0,0 +1,82 @@
|
||||||
|
{
|
||||||
|
"workspace.library": [
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/neodev.nvim/types/stable",
|
||||||
|
"/usr/share/nvim/runtime/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/opt/hop.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/opt/lsp_signature.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/opt/neoscroll.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/opt/nvim-bqf/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textobjects/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/opt/telescope-fzf-native.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/opt/todo-comments.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/Comment.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/LuaSnip/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/adwaita.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/barbar.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/cmp-buffer/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/cmp-path/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/cmp_luasnip/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/copilot.vim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/crates.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/dashboard-nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/fidget.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/github-nvim-theme/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/gitsigns.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/glow.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/gruvbox-baby/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/gruvbox-material/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/lualine.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/mason.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/material.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/mellow.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/minimal.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/neodev.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/neorg/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/neorg-telescope/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nightfox.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nord.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/numb.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-autopairs/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-cmp/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-dap/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-dap-ui/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-jdtls/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-lspconfig/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-navic/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-tree.lua/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-treesitter/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/nvim-web-devicons/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/oh-lucy.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/one_monokai.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/onedarkpro.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/onenord.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/org-bullets.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/orgmode/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/packer.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/playground/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/plenary.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/popup.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/presence.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/project.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/rust-tools.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/sonokai/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/tailwindcss-colorizer-cmp.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/telescope-dap.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/telescope.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/toggleterm.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/tokyodark.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/which-key.nvim/lua",
|
||||||
|
"/home/d/.local/share/nvim/site/pack/packer/start/wilder.nvim/lua",
|
||||||
|
"/home/d/.config/nvim/lua",
|
||||||
|
"${3rd}/luv/library",
|
||||||
|
"${3rd}/luv/library",
|
||||||
|
"/home/d/.local/share/nvim/mason/packages/lua-language-server/libexec/meta/0d6b62fe",
|
||||||
|
"/home/d/.local/share/nvim/mason/packages/lua-language-server/libexec/meta/306b5cb1"
|
||||||
|
]
|
||||||
|
}
|
62
.latestBackup/lua/config/commands.lua
Executable file
62
.latestBackup/lua/config/commands.lua
Executable file
|
@ -0,0 +1,62 @@
|
||||||
|
local pickers = require "telescope.pickers"
|
||||||
|
local finders = require "telescope.finders"
|
||||||
|
local conf = require("telescope.config").values
|
||||||
|
local actions = require "telescope.actions"
|
||||||
|
local action_state = require "telescope.actions.state"
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("OP", function ()
|
||||||
|
local folders = vim.fn.systemlist("\\ls -d $HOME/projects/*/")
|
||||||
|
for i, folder in ipairs(folders) do
|
||||||
|
folders[i] = string.match(string.match(folder, "[^/]*/$"), "^[^/]*")
|
||||||
|
end
|
||||||
|
pickers.new({}, {
|
||||||
|
prompt_title = "Open project",
|
||||||
|
finder = finders.new_table {
|
||||||
|
results = folders
|
||||||
|
},
|
||||||
|
sorter = conf.generic_sorter({}),
|
||||||
|
attach_mappings = function (prompt_bufnr, map)
|
||||||
|
actions.select_default:replace(function ()
|
||||||
|
actions.close(prompt_bufnr)
|
||||||
|
local selection = action_state.get_selected_entry()
|
||||||
|
selection = selection[1]
|
||||||
|
vim.cmd("cd $HOME/projects/" .. selection)
|
||||||
|
vim.cmd("Alpha")
|
||||||
|
vim.cmd("BWipeout other")
|
||||||
|
end)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
}):find()
|
||||||
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("OD", function ()
|
||||||
|
local folders = vim.fn.systemlist("\\ls -d */")
|
||||||
|
for i, folder in ipairs(folders) do
|
||||||
|
folders[i] = string.match(string.match(folder, "[^/]*/$"), "^[^/]*")
|
||||||
|
end
|
||||||
|
pickers.new({}, {
|
||||||
|
prompt_title = "Open directory",
|
||||||
|
finder = finders.new_table {
|
||||||
|
results = folders
|
||||||
|
},
|
||||||
|
sorter = conf.generic_sorter({}),
|
||||||
|
attach_mappings = function (prompt_bufnr, map)
|
||||||
|
actions.select_default:replace(function ()
|
||||||
|
actions.close(prompt_bufnr)
|
||||||
|
local selection = action_state.get_selected_entry()
|
||||||
|
selection = selection[1]
|
||||||
|
vim.cmd("cd " .. selection)
|
||||||
|
vim.cmd("Alpha")
|
||||||
|
vim.cmd("BWipeout other")
|
||||||
|
end)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
}):find()
|
||||||
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("Config", function ()
|
||||||
|
vim.cmd("cd $HOME/.config/nvim")
|
||||||
|
vim.cmd("Alpha")
|
||||||
|
vim.cmd("BWipeout other")
|
||||||
|
vim.cmd("NeoTreeFloatToggle")
|
||||||
|
end, {})
|
4
.latestBackup/lua/config/init.lua
Executable file
4
.latestBackup/lua/config/init.lua
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
require("config.packer")
|
||||||
|
require("config.set")
|
||||||
|
require("config.map")
|
||||||
|
require("config.commands")
|
187
.latestBackup/lua/config/map.lua
Executable file
187
.latestBackup/lua/config/map.lua
Executable file
|
@ -0,0 +1,187 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
|
local wk = require("which-key")
|
||||||
|
|
||||||
|
local keys = {
|
||||||
|
a = {"<cmd>Copilot suggestion accept<cr>", "Copilot"},
|
||||||
|
e = {
|
||||||
|
name = "Toggle",
|
||||||
|
e = {"<cmd>NeoTreeFloatToggle<CR>", "NeoTree"},
|
||||||
|
w = {vim.cmd.Ex, "netrw"},
|
||||||
|
l = {
|
||||||
|
name = "LSP",
|
||||||
|
k = {"<cmd>LspStop<cr>", "Stop"},
|
||||||
|
s = {"<cmd>LspStart<cr>", "Start"},
|
||||||
|
},
|
||||||
|
g = {"<cmd>NeoTreeFloatToggle git_status<CR>", "Git Status"},
|
||||||
|
b = {"<cmd>NeoTreeFloatToggle buffers<CR>", "Buffers"},
|
||||||
|
c = {"<cmd>NeoTreeClose<CR>" , "Close"},
|
||||||
|
s = {"<cmd>Navbuddy<CR>" , "Symbols"},
|
||||||
|
o = {function () require("oil").open_float(vim.fn.getcwd()) end, "Oil"},
|
||||||
|
},
|
||||||
|
c = {
|
||||||
|
name = "LSP",
|
||||||
|
S = {"<cmd>AerialToggle<cr>", "Symbol sidebar"},
|
||||||
|
w = {function () vim.lsp.buf.workspace_symbol("") end, "workspace symbol"},
|
||||||
|
d = {function () vim.diagnostic.open_float() end, "diagnostic"},
|
||||||
|
a = {function () vim.lsp.buf.code_action() end, "code actions"},
|
||||||
|
r = {function () vim.lsp.buf.references() end, "references"},
|
||||||
|
n = {function () vim.lsp.buf.rename() end, "rename"},
|
||||||
|
h = {function () vim.lsp.buf.hover() end, "Hover"},
|
||||||
|
t = {function () vim.lsp.buf.type_definition() end,"Type Definition"},
|
||||||
|
s = {"<cmd>Navbuddy<cr>", "Navbuddy"},
|
||||||
|
-- s = {require("telescope.builtin").lsp_document_symbols, "Document Symbols"},
|
||||||
|
o = {
|
||||||
|
name = "Copilot",
|
||||||
|
a = {"<cmd>Copilot suggestion accept<cr>", "Accept"},
|
||||||
|
w = {"<cmd>Copilot suggestion accept_word<cr>", "Word"},
|
||||||
|
l = {"<cmd>Copilot suggestion accept_line<cr>", "Line"},
|
||||||
|
d = {"<cmd>Copilot suggestion dismiss<cr>", "Decline"},
|
||||||
|
n = {"<cmd>Copilot suggestion next<cr>", "Next"},
|
||||||
|
p = {"<cmd>Copilot suggestion prev<cr>", "Previous"},
|
||||||
|
t = {"<cmd>Copilot suggestion toggle_auto_trigger", "toggle"},
|
||||||
|
P = {
|
||||||
|
name = "Panel",
|
||||||
|
t = {"<cmd>Copilot panel open<cr>", "Open"},
|
||||||
|
r = {"<cmd>Copilot panel refresg<cr>", "Refresh"},
|
||||||
|
n = {"<cmd>Copilot panel jump_next<cr>", "Next"},
|
||||||
|
p = {"<cmd>Copilot panel jump_prev<cr>", "Previous"},
|
||||||
|
a = {"<cmd>Copilot panel accept<cr>", "Accept"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
g = {
|
||||||
|
name = "Goto Preview",
|
||||||
|
d = {function () require('goto-preview').goto_preview_definition() end, "Definition"},
|
||||||
|
r = {function () require('goto-preview').goto_preview_references() end, "References"},
|
||||||
|
t = {function () require("goto-preview").goto_preview_type_definitions() end, "Type"},
|
||||||
|
i = {function () require("goto-preview").goto_preview_implementation() end, "Implementation"},
|
||||||
|
c = {function () require("goto-preview").close_all_win() end, "Close"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
q = {
|
||||||
|
name = "Nvim",
|
||||||
|
q = {"<cmd>q<cr>", "Quit"},
|
||||||
|
W = {"<cmd>wq<cr>", "Save and Quit"},
|
||||||
|
w = {"<cmd>w<cr>", "Save"},
|
||||||
|
},
|
||||||
|
u = {"vim.cmd.UndotreeToggle", "UndoTree"},
|
||||||
|
b = {
|
||||||
|
name = "Buffer",
|
||||||
|
h = {vim.cmd.bprevious, "Previous"},
|
||||||
|
l = {vim.cmd.bnext, "Next"},
|
||||||
|
H = {vim.cmd.bfirst, "First"},
|
||||||
|
L = {vim.cmd.blast, "Last"},
|
||||||
|
b = {require("telescope.builtin").buffers, "Picker"},
|
||||||
|
c = {"<cmd>:bp | sp | bn | bd<cr>", "Close"},
|
||||||
|
},
|
||||||
|
f = {
|
||||||
|
name = "Telescope & fzf",
|
||||||
|
c = {require("telescope.builtin").colorscheme, "Find Colorscheme"},
|
||||||
|
d = {require("telescope.builtin").diagnostics, "Find Diagnostics"},
|
||||||
|
w = {require("telescope.builtin").grep_string, "Find current Word"},
|
||||||
|
f = {require("telescope.builtin").find_files, "telescope find files"},
|
||||||
|
g = {require("telescope.builtin").live_grep, "live grep"},
|
||||||
|
b = {require("telescope.builtin").buffers, "buffers"},
|
||||||
|
h = {require("telescope.builtin").help_tags, "help tags"},
|
||||||
|
s = {function () require("telescope.builtin").grep_string({ search = vim.fn.input("Grep > ")}); end, "grep search through files"},
|
||||||
|
p = {"<cmd>Telescope projects<cr>", "Projects"},
|
||||||
|
},
|
||||||
|
s = {
|
||||||
|
name = "Settings",
|
||||||
|
c = {function ()
|
||||||
|
vim.opt.scrolloff = 100
|
||||||
|
end, "Always center cursor"},
|
||||||
|
x = {function ()
|
||||||
|
vim.opt.scrolloff = 8
|
||||||
|
end, "Disable Cursor center"},
|
||||||
|
f = {function ()
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
end, "Fix number and relative numbers"},
|
||||||
|
m = {function ()
|
||||||
|
vim.cmd[[
|
||||||
|
highlight CursorColumn guibg=none ctermbg=none
|
||||||
|
highlight link CursorColumn CursorLine
|
||||||
|
]]
|
||||||
|
end, "Fix cursor highlight"},
|
||||||
|
},
|
||||||
|
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"},
|
||||||
|
h = {vim.cmd.HopChar2, "Hop"},
|
||||||
|
},
|
||||||
|
d = {
|
||||||
|
name = "Debug",
|
||||||
|
b = {function () require("dap").toggle_breakpoint() end, "toggle breakpoint"},
|
||||||
|
c = {function () require("dap").continue() end, "launch or continue execution"},
|
||||||
|
s = {function () require("dap").step_into() end, "step into"},
|
||||||
|
o = {function () require("dap").step_over() end, "step over"},
|
||||||
|
r = {function () require("dap").repl.open() end, "open repl"},
|
||||||
|
w = {
|
||||||
|
name = "Debug UI",
|
||||||
|
b = {function () require("dapui").float_element("breakpoints", {}) end, "open breakpoints window"},
|
||||||
|
c = {function () require("dapui").float_element("console", {}) end, "open integrated console"},
|
||||||
|
r = {function () require("dapui").float_element("repl", {}) end, "open repl"},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
w = {
|
||||||
|
name = "workspace",
|
||||||
|
a = {vim.lsp.buf.add_workspace_folder, "add folder"},
|
||||||
|
r = {vim.lsp.buf.remove_workspace_folder, "remove folder"},
|
||||||
|
l = {function() print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, "list folders"},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
wk.register(keys, {prefix = "<leader>"})
|
||||||
|
wk.register(keys, {prefix = "<C-Space>"})
|
||||||
|
wk.register(keys, {prefix = "<C-Space>", mode = "i"})
|
||||||
|
wk.register(keys, {prefix = "<C-Space>", mode = "v"})
|
||||||
|
|
||||||
|
-- LSP
|
||||||
|
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, {desc = "goto definition"})
|
||||||
|
vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, {})
|
||||||
|
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, {desc = "goto next"})
|
||||||
|
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, {desc = "goto prev"})
|
||||||
|
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end)
|
||||||
|
vim.keymap.set("i", "<C-h>", function () vim.lsp.buf.hover() end, {})
|
||||||
|
|
||||||
|
-- term
|
||||||
|
vim.keymap.set("n", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
vim.keymap.set("t", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
|
||||||
|
-- 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")
|
||||||
|
|
||||||
|
-- visual move
|
||||||
|
vim.keymap.set("x", "K", ":move '<-2<CR>gv=gv")
|
||||||
|
vim.keymap.set("x", "J", ":move '>+1<CR>gv=gv")
|
||||||
|
|
||||||
|
-- me lazy
|
||||||
|
vim.keymap.set("i", "<C-c>", "<Esc>")
|
||||||
|
|
||||||
|
|
||||||
|
-- non char keybinds
|
||||||
|
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("i", "<C-Space>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('i', '<C-Space>f?', require('telescope.builtin').oldfiles, { desc = 'Find recently opened files' })
|
566
.latestBackup/lua/config/packer.lua
Executable file
566
.latestBackup/lua/config/packer.lua
Executable file
|
@ -0,0 +1,566 @@
|
||||||
|
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 {
|
||||||
|
"jose-elias-alvarez/null-ls.nvim",
|
||||||
|
"jay-babu/mason-null-ls.nvim",
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
"SmiteshP/nvim-navic",
|
||||||
|
requires = "neovim/nvim-lspconfig",
|
||||||
|
config = function()
|
||||||
|
require("nvim-navic").setup({
|
||||||
|
highlight = true,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
"ray-x/lsp_signature.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
config = function() require"lsp_signature".on_attach() end,
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
'stevearc/aerial.nvim',
|
||||||
|
config = function() require('aerial').setup() end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- cmp && snippets
|
||||||
|
use {
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
requires = {
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
"saadparwaiz1/cmp_luasnip",
|
||||||
|
"hrsh7th/cmp-nvim-lua",
|
||||||
|
"hrsh7th/cmp-buffer",
|
||||||
|
"hrsh7th/cmp-path",
|
||||||
|
"rafamadriz/friendly-snippets"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
use { "zbirenbaum/copilot.lua",
|
||||||
|
cmd = "Copilot",
|
||||||
|
event = "InsertEnter",
|
||||||
|
config = function ()
|
||||||
|
require("copilot").setup({
|
||||||
|
suggestion = {
|
||||||
|
auto_trigger = true,
|
||||||
|
keymap = {
|
||||||
|
accept = "<M-l>",
|
||||||
|
accept_word = "<M-K>",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
-- use {"mattn/emmet-vim"}
|
||||||
|
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-context'
|
||||||
|
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"
|
||||||
|
|
||||||
|
-- debugging
|
||||||
|
use "mfussenegger/nvim-dap"
|
||||||
|
use "jay-babu/mason-nvim-dap.nvim"
|
||||||
|
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 {"simrat39/inlay-hints.nvim",
|
||||||
|
-- config = {
|
||||||
|
-- require("inlay-hints").setup({
|
||||||
|
-- renderer = "eol"
|
||||||
|
-- })
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
use {"lvimuser/lsp-inlayhints.nvim",
|
||||||
|
config = {
|
||||||
|
require("lsp-inlayhints").setup()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
use {"s1n7ax/nvim-window-picker"}
|
||||||
|
use {"echasnovski/mini.nvim"}
|
||||||
|
use {
|
||||||
|
'stevearc/oil.nvim',
|
||||||
|
config = function() require('oil').setup({
|
||||||
|
columns = {
|
||||||
|
"icon",
|
||||||
|
"permissions",
|
||||||
|
"size",
|
||||||
|
},
|
||||||
|
keymap = {
|
||||||
|
["<Esc>"] = "actions.close",
|
||||||
|
},
|
||||||
|
view_options = {
|
||||||
|
show_hidden = true,
|
||||||
|
},
|
||||||
|
}) end
|
||||||
|
}
|
||||||
|
use {"ThePrimeagen/vim-be-good"}
|
||||||
|
use 'kazhala/close-buffers.nvim'
|
||||||
|
use {"VonHeikemen/fine-cmdline.nvim",
|
||||||
|
requires = {{"MunifTanjim/nui.nvim"}},
|
||||||
|
config = function()
|
||||||
|
require("fine-cmdline").setup({
|
||||||
|
cmdline = {
|
||||||
|
prompt = ">",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
vim.api.nvim_set_keymap('n', ':', '<cmd>FineCmdline<CR>', {noremap = true})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use {'stevearc/dressing.nvim',
|
||||||
|
config = function()
|
||||||
|
require('dressing').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
'stevearc/overseer.nvim',
|
||||||
|
config = function()
|
||||||
|
require('overseer').setup({
|
||||||
|
strategy = "toggleterm",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use "itchyny/screensaver.vim"
|
||||||
|
use "christoomey/vim-tmux-navigator"
|
||||||
|
use { 'anuvyklack/pretty-fold.nvim',
|
||||||
|
config = function()
|
||||||
|
require('pretty-fold').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use 'eandrju/cellular-automaton.nvim'
|
||||||
|
use {
|
||||||
|
"ahmedkhalf/project.nvim",
|
||||||
|
config = function()
|
||||||
|
require("project_nvim").setup {
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use "dhruvasagar/vim-table-mode"
|
||||||
|
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 {"kylechui/nvim-surround",
|
||||||
|
config = function ()
|
||||||
|
require("nvim-surround").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 "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",
|
||||||
|
config = function ()
|
||||||
|
vim.cmd("let g:VM_leader='<Space>m'")
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- mics visuals
|
||||||
|
use { 'bennypowers/nvim-regexplainer',
|
||||||
|
config = function() require'regexplainer'.setup() end,
|
||||||
|
requires = {
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
} }
|
||||||
|
use {"rcarriga/nvim-notify",
|
||||||
|
config = function ()
|
||||||
|
vim.notify = require("notify")
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
'nmac427/guess-indent.nvim',
|
||||||
|
config = function() require('guess-indent').setup {} end,
|
||||||
|
}
|
||||||
|
use('mrjones2014/smart-splits.nvim')
|
||||||
|
-- use 'glepnir/dashboard-nvim'
|
||||||
|
use {"goolord/alpha-nvim", config = function () end}
|
||||||
|
-- use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'}
|
||||||
|
--use {"akinsho/bufferline.nvim", tag = "v3.*",}
|
||||||
|
use "preservim/nerdtree"
|
||||||
|
use {"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
branch = "v2.x",
|
||||||
|
requires = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
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 {"rebelot/heirline.nvim",
|
||||||
|
}
|
||||||
|
-- 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 {
|
||||||
|
'numToStr/Comment.nvim',
|
||||||
|
config = function()
|
||||||
|
require('Comment').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
"SmiteshP/nvim-navbuddy",
|
||||||
|
requires = {"neovim/nvim-lspconfig",
|
||||||
|
"SmiteshP/nvim-navic",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
"numToStr/Comment.nvim",
|
||||||
|
"nvim-telescope/telescope.nvim"},
|
||||||
|
config = function ()
|
||||||
|
require("nvim-navbuddy").setup({
|
||||||
|
window = {border="rounded",},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
'rmagatti/goto-preview',
|
||||||
|
config = function()
|
||||||
|
require('goto-preview').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
|
||||||
|
-- nim
|
||||||
|
use {"alaviss/nim.nvim"}
|
||||||
|
-- use {"zah/nim.vim"}
|
||||||
|
|
||||||
|
-- csv
|
||||||
|
use {
|
||||||
|
'cameron-wags/rainbow_csv.nvim',
|
||||||
|
config = function()
|
||||||
|
require 'rainbow_csv'.setup()
|
||||||
|
end,
|
||||||
|
-- optional lazy-loading below
|
||||||
|
-- module = {
|
||||||
|
-- 'rainbow_csv',
|
||||||
|
-- 'rainbow_csv.fns'
|
||||||
|
-- },
|
||||||
|
-- ft = {
|
||||||
|
-- 'csv',
|
||||||
|
-- 'tsv',
|
||||||
|
-- 'csv_semicolon',
|
||||||
|
-- 'csv_whitespace',
|
||||||
|
-- 'csv_pipe',
|
||||||
|
-- 'rfc_csv',
|
||||||
|
-- 'rfc_semicolon'
|
||||||
|
-- }
|
||||||
|
}
|
||||||
|
-- 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"
|
||||||
|
use({
|
||||||
|
"NTBBloodbath/zig-tools.nvim",
|
||||||
|
-- Load zig-tools.nvim only in Zig buffers
|
||||||
|
ft = "zig",
|
||||||
|
config = function()
|
||||||
|
-- Initialize with default config
|
||||||
|
require("zig-tools").setup({
|
||||||
|
integrations = {
|
||||||
|
zls = {
|
||||||
|
hints = true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- glsl
|
||||||
|
use {"tikhomirov/vim-glsl"}
|
||||||
|
|
||||||
|
-- java
|
||||||
|
use "mfussenegger/nvim-jdtls"
|
||||||
|
|
||||||
|
-- c && c++ && cmake
|
||||||
|
use { "igankevich/mesonic",
|
||||||
|
config = function()
|
||||||
|
vim.cmd[[
|
||||||
|
let b:meson_command = 'meson'
|
||||||
|
let b:meson_ninja_command = 'ninja'
|
||||||
|
|
||||||
|
autocmd FileType c call ConsiderMesonForLinting()
|
||||||
|
function ConsiderMesonForLinting()
|
||||||
|
if filereadable('meson.build')
|
||||||
|
let g:syntastic_c_checkers = ['meson']
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
]]
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use "cdelledonne/vim-cmake"
|
||||||
|
|
||||||
|
-- web
|
||||||
|
use { "evanleck/vim-svelte" }
|
||||||
|
use { "posva/vim-vue" }
|
||||||
|
|
||||||
|
-- yuck
|
||||||
|
use "elkowar/yuck.vim"
|
||||||
|
|
||||||
|
-- themes
|
||||||
|
use "xiyaowong/transparent.nvim"
|
||||||
|
|
||||||
|
-- f#
|
||||||
|
use {"adelarsq/neofsharp.vim"}
|
||||||
|
use {"autozimu/LanguageClient-neovim", branch = "next", run = "bash install.sh"}
|
||||||
|
use {"ionide/Ionide-vim"}
|
||||||
|
|
||||||
|
|
||||||
|
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"
|
||||||
|
use "rebelot/kanagawa.nvim"
|
||||||
|
use { "catppuccin/nvim", as = "catppuccin", config = function ()
|
||||||
|
require("catppuccin").setup({
|
||||||
|
flavor = "macchiato",
|
||||||
|
navic = {
|
||||||
|
enabled = true,
|
||||||
|
custom_bg = "NONE",
|
||||||
|
},
|
||||||
|
indent_blankline = {
|
||||||
|
enabled = true,
|
||||||
|
colored_indent_levels = true,
|
||||||
|
},
|
||||||
|
dap = {
|
||||||
|
enabled = true,
|
||||||
|
enable_ui = true,
|
||||||
|
},
|
||||||
|
integrations = {
|
||||||
|
hop = true,
|
||||||
|
cmp = true,
|
||||||
|
telescope = true,
|
||||||
|
which_key = true,
|
||||||
|
},
|
||||||
|
-- color_overrides = {
|
||||||
|
-- macchiato = {
|
||||||
|
-- base = "#000000",
|
||||||
|
-- mantle = "#000000",
|
||||||
|
-- crust = "#000000"
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
})
|
||||||
|
vim.cmd("colorscheme catppuccin")
|
||||||
|
end }
|
||||||
|
end)
|
58
.latestBackup/lua/config/set.lua
Executable file
58
.latestBackup/lua/config/set.lua
Executable file
|
@ -0,0 +1,58 @@
|
||||||
|
-- set leader
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
|
-- numbers
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.number = 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 catppuccin")
|
||||||
|
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
vim.opt.cursorcolumn = true
|
||||||
|
vim.cmd[[
|
||||||
|
highlight CursorColumn guibg=none ctermbg=none
|
||||||
|
highlight link CursorColumn CursorLine
|
||||||
|
]]
|
||||||
|
|
||||||
|
-- misc
|
||||||
|
vim.opt.swapfile = false
|
||||||
|
vim.opt.backup = false
|
||||||
|
vim.opt.scrolloff = 8
|
||||||
|
vim.opt.sidescrolloff = 8
|
||||||
|
vim.opt.signcolumn = "yes"
|
||||||
|
vim.opt.isfname:append("@-@")
|
||||||
|
vim.opt.updatetime = 50
|
||||||
|
vim.o.mouse = "a"
|
||||||
|
vim.opt.showmode = false
|
||||||
|
|
||||||
|
vim.o.completeopt = "menuone,noselect"
|
||||||
|
|
||||||
|
-- idfk pls fix nim
|
||||||
|
vim.opt.path = vim.opt.path + "/home/d/.nimble/bin/**"
|
11
after/init.lua
Executable file
11
after/init.lua
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.number = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
vim.opt.cursorcolumn = true
|
||||||
|
vim.cmd[[
|
||||||
|
highlight CursorColumn guibg=none ctermbg=none
|
||||||
|
highlight link CursorColumn CursorLine
|
||||||
|
]]
|
15
after/plugin/autopairs.lua
Executable file
15
after/plugin/autopairs.lua
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
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")
|
24
after/plugin/dap.lua
Normal file
24
after/plugin/dap.lua
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
local dap = require("dap")
|
||||||
|
local dapui = require("dapui")
|
||||||
|
|
||||||
|
dapui.setup()
|
||||||
|
|
||||||
|
local sign = vim.fn.sign_define
|
||||||
|
|
||||||
|
sign("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = ""})
|
||||||
|
sign("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = ""})
|
||||||
|
sign("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = ""})
|
||||||
|
|
||||||
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||||
|
dapui.open()
|
||||||
|
end
|
||||||
|
dap.listeners.before.event_terminated["dapui_config"] = function()
|
||||||
|
dapui.close()
|
||||||
|
end
|
||||||
|
dap.listeners.before.event_exited["dapui_config"] = function()
|
||||||
|
dapui.close()
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("DapUIFloat", function ()
|
||||||
|
dapui.float_element()
|
||||||
|
end, {})
|
43
after/plugin/dash.lua
Executable file
43
after/plugin/dash.lua
Executable file
|
@ -0,0 +1,43 @@
|
||||||
|
-- local db = require('dashboard')
|
||||||
|
--
|
||||||
|
local header = {"",
|
||||||
|
" /$$ /$$ /$$ /$$ /$$ ",
|
||||||
|
"| $$$ | $$ | $$ | $$|__/ ",
|
||||||
|
"| $$$$| $$ /$$$$$$ /$$$$$$ | $$ | $$ /$$ /$$$$$$/$$$$ ",
|
||||||
|
"| $$ $$ $$ /$$__ $$ /$$__ $$| $$ / $$/| $$| $$_ $$_ $$",
|
||||||
|
"| $$ $$$$| $$$$$$$$| $$ \\ $$ \\ $$ $$/ | $$| $$ \\ $$ \\ $$",
|
||||||
|
"| $$\\ $$$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$",
|
||||||
|
"| $$ \\ $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$",
|
||||||
|
"|__/ \\__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
}
|
||||||
|
-- db.custom_header = header
|
||||||
|
-- db.custom_center = {
|
||||||
|
-- {
|
||||||
|
-- icon = ' ',
|
||||||
|
-- desc ='File Browser ',
|
||||||
|
-- action = 'Telescope file_browser',
|
||||||
|
-- shortcut = 'SPC e e'
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
local dashboard = require("alpha.themes.dashboard")
|
||||||
|
dashboard.section.header.val = header
|
||||||
|
dashboard.section.buttons.val = {
|
||||||
|
dashboard.button("op", "Open Project", ":OP<cr>"),
|
||||||
|
dashboard.button("oc", "Open Config", ":Config<cr>"),
|
||||||
|
}
|
||||||
|
|
||||||
|
-- dashboard.section.footer.opts.hl = "Constant"
|
||||||
|
-- dashboard.section.header.opts.hl = "Include"
|
||||||
|
-- dashboard.section.buttons.opts.hl = "Function"
|
||||||
|
-- dashboard.section.buttons.opts.hl_shortcut = "Type"
|
||||||
|
dashboard.opts.opts.noautocmd = true
|
||||||
|
|
||||||
|
require("alpha").setup(dashboard.opts)
|
22
after/plugin/fixmap.lua
Executable file
22
after/plugin/fixmap.lua
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
vim.cmd[[
|
||||||
|
map <Space>m\ <nop>
|
||||||
|
map <Space>m/ <nop>
|
||||||
|
map <Space>mA <nop>
|
||||||
|
map <Space>mgS <nop>
|
||||||
|
|
||||||
|
map <Space>tt <nop>
|
||||||
|
map <Space>tm <nop>
|
||||||
|
]]
|
||||||
|
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.number = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
vim.opt.cursorcolumn = true
|
||||||
|
vim.cmd[[
|
||||||
|
highlight CursorColumn guibg=none ctermbg=none
|
||||||
|
highlight link CursorColumn CursorLine
|
||||||
|
]]
|
||||||
|
|
9
after/plugin/git.lua
Executable file
9
after/plugin/git.lua
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
require('gitsigns').setup {
|
||||||
|
signs = {
|
||||||
|
add = { text = '+' },
|
||||||
|
change = { text = '~' },
|
||||||
|
delete = { text = '_' },
|
||||||
|
topdelete = { text = '‾' },
|
||||||
|
changedelete = { text = '~' },
|
||||||
|
},
|
||||||
|
}
|
209
after/plugin/lsp.lua
Executable file
209
after/plugin/lsp.lua
Executable file
|
@ -0,0 +1,209 @@
|
||||||
|
-- local ih = require("inlay-hints")
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
-- ih.on_attach(client, bufnr)
|
||||||
|
require("lsp-inlayhints").on_attach(client, bufnr)
|
||||||
|
|
||||||
|
if client.server_capabilities.documentSymbolProvider then
|
||||||
|
navic.attach(client, bufnr)
|
||||||
|
require("nvim-navbuddy").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('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
|
||||||
|
|
||||||
|
-- Lesser used LSP functionality
|
||||||
|
nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||||
|
|
||||||
|
-- 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 = {},
|
||||||
|
rust_analyzer = {},
|
||||||
|
-- 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()
|
||||||
|
require("mason-nvim-dap").setup({automatic_installation = true, handlers = {
|
||||||
|
function (config)
|
||||||
|
require("mason-nvim-dap").default_setup(config)
|
||||||
|
end
|
||||||
|
}})
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("lspconfig").nimls.setup{
|
||||||
|
cmd = {"nimlsp", "--log", "/tmp/nimlsp.log"},
|
||||||
|
on_attach = on_attach,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("lspconfig").zls.setup{
|
||||||
|
cmd = {"zls"},
|
||||||
|
on_attach = on_attach,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- lspinfo
|
||||||
|
require('fidget').setup()
|
||||||
|
|
||||||
|
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||||
|
|
||||||
|
local cmp = require 'cmp'
|
||||||
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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><C-Space>"] = cmp.mapping.complete({}),
|
||||||
|
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
|
['<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" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
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"}
|
||||||
|
-- })
|
||||||
|
|
||||||
|
|
||||||
|
require("aerial").setup({})
|
8
after/plugin/mini.lua
Executable file
8
after/plugin/mini.lua
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
require("mini.ai").setup({
|
||||||
|
custom_textobjects = {
|
||||||
|
[','] = require("mini.ai").gen_spec.pair(',', ',', {})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
require("mini.jump").setup({})
|
||||||
|
require("mini.sessions").setup({autowrite = false, directory = '~/projects/sessions'})
|
||||||
|
|
10
after/plugin/neotree.lua
Executable file
10
after/plugin/neotree.lua
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
require("neo-tree").setup({
|
||||||
|
source_selector = {
|
||||||
|
winbar = true,
|
||||||
|
statusline = false,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
vim.keymap.set("t", "<C-\\>", vim.cmd.ToggleTerm)
|
22
after/plugin/presence.lua
Executable file
22
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)
|
||||||
|
--})
|
158
after/plugin/rust.lua
Executable file
158
after/plugin/rust.lua
Executable file
|
@ -0,0 +1,158 @@
|
||||||
|
local rt = require("rust-tools")
|
||||||
|
|
||||||
|
rt.setup({
|
||||||
|
server = {
|
||||||
|
on_attach = function(_, bufnr)
|
||||||
|
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",
|
||||||
|
},
|
||||||
|
}
|
762
after/plugin/statusline.lua
Executable file
762
after/plugin/statusline.lua
Executable file
|
@ -0,0 +1,762 @@
|
||||||
|
local conditions = require("heirline.conditions")
|
||||||
|
local utils = require("heirline.utils")
|
||||||
|
|
||||||
|
local colors = {
|
||||||
|
bright_bg = utils.get_highlight("Folded").bg,
|
||||||
|
bright_fg = utils.get_highlight("Folded").fg,
|
||||||
|
red = utils.get_highlight("DiagnosticError").fg,
|
||||||
|
dark_red = utils.get_highlight("diffDelete").bg,
|
||||||
|
green = utils.get_highlight("String").fg,
|
||||||
|
blue = utils.get_highlight("Function").fg,
|
||||||
|
gray = utils.get_highlight("NonText").fg,
|
||||||
|
orange = utils.get_highlight("Constant").fg,
|
||||||
|
purple = utils.get_highlight("Statement").fg,
|
||||||
|
cyan = utils.get_highlight("Special").fg,
|
||||||
|
diag_warn = utils.get_highlight("DiagnosticWarn").fg,
|
||||||
|
diag_error = utils.get_highlight("DiagnosticError").fg,
|
||||||
|
diag_hint = utils.get_highlight("DiagnosticHint").fg,
|
||||||
|
diag_info = utils.get_highlight("DiagnosticInfo").fg,
|
||||||
|
git_del = utils.get_highlight("diffRemoved").fg,
|
||||||
|
git_add = utils.get_highlight("diffAdded").fg,
|
||||||
|
git_change = utils.get_highlight("diffChanged").fg,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("heirline").load_colors(colors)
|
||||||
|
|
||||||
|
local ViMode = {
|
||||||
|
-- get vim current mode, this information will be required by the provider
|
||||||
|
-- and the highlight functions, so we compute it only once per component
|
||||||
|
-- evaluation and store it as a component attribute
|
||||||
|
init = function(self)
|
||||||
|
self.mode = vim.fn.mode(1) -- :h mode()
|
||||||
|
end,
|
||||||
|
-- Now we define some dictionaries to map the output of mode() to the
|
||||||
|
-- corresponding string and color. We can put these into `static` to compute
|
||||||
|
-- them at initialisation time.
|
||||||
|
static = {
|
||||||
|
mode_names = { -- change the strings if you like it vvvvverbose!
|
||||||
|
n = "N",
|
||||||
|
no = "N?",
|
||||||
|
nov = "N?",
|
||||||
|
noV = "N?",
|
||||||
|
["no\22"] = "N?",
|
||||||
|
niI = "Ni",
|
||||||
|
niR = "Nr",
|
||||||
|
niV = "Nv",
|
||||||
|
nt = "Nt",
|
||||||
|
v = "V",
|
||||||
|
vs = "Vs",
|
||||||
|
V = "V_",
|
||||||
|
Vs = "Vs",
|
||||||
|
["\22"] = "^V",
|
||||||
|
["\22s"] = "^V",
|
||||||
|
s = "S",
|
||||||
|
S = "S_",
|
||||||
|
["\19"] = "^S",
|
||||||
|
i = "I",
|
||||||
|
ic = "Ic",
|
||||||
|
ix = "Ix",
|
||||||
|
R = "R",
|
||||||
|
Rc = "Rc",
|
||||||
|
Rx = "Rx",
|
||||||
|
Rv = "Rv",
|
||||||
|
Rvc = "Rv",
|
||||||
|
Rvx = "Rv",
|
||||||
|
c = "C",
|
||||||
|
cv = "Ex",
|
||||||
|
r = "...",
|
||||||
|
rm = "M",
|
||||||
|
["r?"] = "?",
|
||||||
|
["!"] = "!",
|
||||||
|
t = "T",
|
||||||
|
},
|
||||||
|
mode_colors = {
|
||||||
|
n = "red" ,
|
||||||
|
i = "green",
|
||||||
|
v = "cyan",
|
||||||
|
V = "cyan",
|
||||||
|
["\22"] = "cyan",
|
||||||
|
c = "orange",
|
||||||
|
s = "purple",
|
||||||
|
S = "purple",
|
||||||
|
["\19"] = "purple",
|
||||||
|
R = "orange",
|
||||||
|
r = "orange",
|
||||||
|
["!"] = "red",
|
||||||
|
t = "red",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- We can now access the value of mode() that, by now, would have been
|
||||||
|
-- computed by `init()` and use it to index our strings dictionary.
|
||||||
|
-- note how `static` fields become just regular attributes once the
|
||||||
|
-- component is instantiated.
|
||||||
|
-- To be extra meticulous, we can also add some vim statusline syntax to
|
||||||
|
-- control the padding and make sure our string is always at least 2
|
||||||
|
-- characters long. Plus a nice Icon.
|
||||||
|
provider = function(self)
|
||||||
|
return " %2("..self.mode_names[self.mode].."%)"
|
||||||
|
end,
|
||||||
|
-- Same goes for the highlight. Now the foreground will change according to the current mode.
|
||||||
|
hl = function(self)
|
||||||
|
local mode = self.mode:sub(1, 1) -- get only the first mode character
|
||||||
|
return { fg = self.mode_colors[mode], bold = true, }
|
||||||
|
end,
|
||||||
|
-- Re-evaluate the component only on ModeChanged event!
|
||||||
|
-- Also allorws the statusline to be re-evaluated when entering operator-pending mode
|
||||||
|
update = {
|
||||||
|
"ModeChanged",
|
||||||
|
pattern = "*:*",
|
||||||
|
callback = vim.schedule_wrap(function()
|
||||||
|
vim.cmd("redrawstatus")
|
||||||
|
end),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
ViMode = utils.surround({ "", "" }, "bright_bg", { ViMode})
|
||||||
|
|
||||||
|
local FileNameBlock = {
|
||||||
|
-- let's first set up some attributes needed by this component and it's children
|
||||||
|
init = function(self)
|
||||||
|
self.filename = vim.api.nvim_buf_get_name(0)
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
-- We can now define some children separately and add them later
|
||||||
|
|
||||||
|
local FileIcon = {
|
||||||
|
init = function(self)
|
||||||
|
local filename = self.filename
|
||||||
|
local extension = vim.fn.fnamemodify(filename, ":e")
|
||||||
|
self.icon, self.icon_color = require("nvim-web-devicons").get_icon_color(filename, extension, { default = true })
|
||||||
|
end,
|
||||||
|
provider = function(self)
|
||||||
|
return self.icon and (self.icon .. " ")
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
return { fg = self.icon_color }
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
local FileName = {
|
||||||
|
provider = function(self)
|
||||||
|
-- first, trim the pattern relative to the current directory. For other
|
||||||
|
-- options, see :h filename-modifers
|
||||||
|
local filename = vim.fn.fnamemodify(self.filename, ":.")
|
||||||
|
if filename == "" then return "[No Name]" end
|
||||||
|
-- now, if the filename would occupy more than 1/4th of the available
|
||||||
|
-- space, we trim the file path to its initials
|
||||||
|
-- See Flexible Components section below for dynamic truncation
|
||||||
|
if not conditions.width_percent_below(#filename, 0.25) then
|
||||||
|
filename = vim.fn.pathshorten(filename)
|
||||||
|
end
|
||||||
|
return filename
|
||||||
|
end,
|
||||||
|
hl = { fg = utils.get_highlight("Directory").fg },
|
||||||
|
}
|
||||||
|
|
||||||
|
local FileFlags = {
|
||||||
|
{
|
||||||
|
condition = function()
|
||||||
|
return vim.bo.modified
|
||||||
|
end,
|
||||||
|
provider = "[+]",
|
||||||
|
hl = { fg = "green" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
condition = function()
|
||||||
|
return not vim.bo.modifiable or vim.bo.readonly
|
||||||
|
end,
|
||||||
|
provider = "",
|
||||||
|
hl = { fg = "orange" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Now, let's say that we want the filename color to change if the buffer is
|
||||||
|
-- modified. Of course, we could do that directly using the FileName.hl field,
|
||||||
|
-- but we'll see how easy it is to alter existing components using a "modifier"
|
||||||
|
-- component
|
||||||
|
|
||||||
|
local FileNameModifer = {
|
||||||
|
hl = function()
|
||||||
|
if vim.bo.modified then
|
||||||
|
-- use `force` because we need to override the child's hl foreground
|
||||||
|
return { fg = "cyan", bold = true, force=true }
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- let's add the children to our FileNameBlock component
|
||||||
|
FileNameBlock = utils.insert(FileNameBlock,
|
||||||
|
FileIcon,
|
||||||
|
utils.insert(FileNameModifer, FileName), -- a new table where FileName is a child of FileNameModifier
|
||||||
|
FileFlags,
|
||||||
|
{ provider = '%<'} -- this means that the statusline is cut here when there's not enough space
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
local FileSize = {
|
||||||
|
provider = function()
|
||||||
|
-- stackoverflow, compute human readable file size
|
||||||
|
local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' }
|
||||||
|
local fsize = vim.fn.getfsize(vim.api.nvim_buf_get_name(0))
|
||||||
|
fsize = (fsize < 0 and 0) or fsize
|
||||||
|
if fsize < 1024 then
|
||||||
|
return fsize..suffix[1]
|
||||||
|
end
|
||||||
|
local i = math.floor((math.log(fsize) / math.log(1024)))
|
||||||
|
return string.format("%.2g%s", fsize / math.pow(1024, i), suffix[i + 1])
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
local FileLastModified = {
|
||||||
|
-- did you know? Vim is full of functions!
|
||||||
|
provider = function()
|
||||||
|
local ftime = vim.fn.getftime(vim.api.nvim_buf_get_name(0))
|
||||||
|
return (ftime > 0) and os.date("%c", ftime)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
FileNameBlock = utils.surround({ "", "" }, "bright_bg", FileNameBlock)
|
||||||
|
|
||||||
|
-- We're getting minimalists here!
|
||||||
|
local Ruler = {
|
||||||
|
-- %l = current line number
|
||||||
|
-- %L = number of lines in the buffer
|
||||||
|
-- %c = column number
|
||||||
|
-- %P = percentage through file of displayed window
|
||||||
|
provider = "%7(%l/%3L%):%2c %P",
|
||||||
|
}
|
||||||
|
Ruler = utils.surround({ "", "" }, "bright_bg", Ruler)
|
||||||
|
|
||||||
|
-- I take no credits for this! :lion:
|
||||||
|
local ScrollBar ={
|
||||||
|
static = {
|
||||||
|
sbar = { '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█' }
|
||||||
|
-- Another variant, because the more choice the better.
|
||||||
|
-- sbar = { '🭶', '🭷', '🭸', '🭹', '🭺', '🭻' }
|
||||||
|
},
|
||||||
|
provider = function(self)
|
||||||
|
local curr_line = vim.api.nvim_win_get_cursor(0)[1]
|
||||||
|
local lines = vim.api.nvim_buf_line_count(0)
|
||||||
|
local i = math.floor((curr_line - 1) / lines * #self.sbar) + 1
|
||||||
|
return string.rep(self.sbar[i], 2)
|
||||||
|
end,
|
||||||
|
hl = { fg = "blue", bg = "bright_bg" },
|
||||||
|
}
|
||||||
|
|
||||||
|
local LSPActive = {
|
||||||
|
condition = conditions.lsp_attached,
|
||||||
|
update = {'LspAttach', 'LspDetach'},
|
||||||
|
|
||||||
|
-- You can keep it simple,
|
||||||
|
-- provider = " [LSP]",
|
||||||
|
|
||||||
|
-- Or complicate things a bit and get the servers names
|
||||||
|
provider = function()
|
||||||
|
local names = {}
|
||||||
|
for i, server in pairs(vim.lsp.get_active_clients({ bufnr = 0 })) do
|
||||||
|
table.insert(names, server.name)
|
||||||
|
end
|
||||||
|
return " [" .. table.concat(names, " ") .. "]"
|
||||||
|
end,
|
||||||
|
hl = { fg = "green", bold = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
LSPActive = utils.surround({ "", "" }, "bright_bg", LSPActive)
|
||||||
|
|
||||||
|
-- Full nerd (with icon colors and clickable elements)!
|
||||||
|
-- works in multi window, but does not support flexible components (yet ...)
|
||||||
|
local Navic = {
|
||||||
|
condition = function() return require("nvim-navic").is_available() end,
|
||||||
|
static = {
|
||||||
|
-- create a type highlight map
|
||||||
|
type_hl = {
|
||||||
|
File = "Directory",
|
||||||
|
Module = "@include",
|
||||||
|
Namespace = "@namespace",
|
||||||
|
Package = "@include",
|
||||||
|
Class = "@structure",
|
||||||
|
Method = "@method",
|
||||||
|
Property = "@property",
|
||||||
|
Field = "@field",
|
||||||
|
Constructor = "@constructor",
|
||||||
|
Enum = "@field",
|
||||||
|
Interface = "@type",
|
||||||
|
Function = "@function",
|
||||||
|
Variable = "@variable",
|
||||||
|
Constant = "@constant",
|
||||||
|
String = "@string",
|
||||||
|
Number = "@number",
|
||||||
|
Boolean = "@boolean",
|
||||||
|
Array = "@field",
|
||||||
|
Object = "@type",
|
||||||
|
Key = "@keyword",
|
||||||
|
Null = "@comment",
|
||||||
|
EnumMember = "@field",
|
||||||
|
Struct = "@structure",
|
||||||
|
Event = "@keyword",
|
||||||
|
Operator = "@operator",
|
||||||
|
TypeParameter = "@type",
|
||||||
|
},
|
||||||
|
-- bit operation dark magic, see below...
|
||||||
|
enc = function(line, col, winnr)
|
||||||
|
return bit.bor(bit.lshift(line, 16), bit.lshift(col, 6), winnr)
|
||||||
|
end,
|
||||||
|
-- line: 16 bit (65535); col: 10 bit (1023); winnr: 6 bit (63)
|
||||||
|
dec = function(c)
|
||||||
|
local line = bit.rshift(c, 16)
|
||||||
|
local col = bit.band(bit.rshift(c, 6), 1023)
|
||||||
|
local winnr = bit.band(c, 63)
|
||||||
|
return line, col, winnr
|
||||||
|
end
|
||||||
|
},
|
||||||
|
init = function(self)
|
||||||
|
local data = require("nvim-navic").get_data() or {}
|
||||||
|
local children = {}
|
||||||
|
-- create a child for each level
|
||||||
|
for i, d in ipairs(data) do
|
||||||
|
-- encode line and column numbers into a single integer
|
||||||
|
local pos = self.enc(d.scope.start.line, d.scope.start.character, self.winnr)
|
||||||
|
local child = {
|
||||||
|
{
|
||||||
|
provider = d.icon,
|
||||||
|
hl = self.type_hl[d.type],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- escape `%`s (elixir) and buggy default separators
|
||||||
|
provider = d.name:gsub("%%", "%%%%"):gsub("%s*->%s*", ''),
|
||||||
|
-- highlight icon only or location name as well
|
||||||
|
-- hl = self.type_hl[d.type],
|
||||||
|
|
||||||
|
on_click = {
|
||||||
|
-- pass the encoded position through minwid
|
||||||
|
minwid = pos,
|
||||||
|
callback = function(_, minwid)
|
||||||
|
-- decode
|
||||||
|
local line, col, winnr = self.dec(minwid)
|
||||||
|
vim.api.nvim_win_set_cursor(vim.fn.win_getid(winnr), {line, col})
|
||||||
|
end,
|
||||||
|
name = "heirline_navic",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
-- add a separator only if needed
|
||||||
|
if #data > 1 and i < #data then
|
||||||
|
table.insert(child, {
|
||||||
|
provider = " > ",
|
||||||
|
hl = { fg = 'bright_fg' },
|
||||||
|
})
|
||||||
|
end
|
||||||
|
table.insert(children, child)
|
||||||
|
end
|
||||||
|
-- instantiate the new child, overwriting the previous one
|
||||||
|
self.child = self:new(children, 1)
|
||||||
|
end,
|
||||||
|
-- evaluate the children containing navic components
|
||||||
|
provider = function(self)
|
||||||
|
return self.child:eval()
|
||||||
|
end,
|
||||||
|
hl = { fg = "gray" },
|
||||||
|
update = 'CursorMoved'
|
||||||
|
}
|
||||||
|
|
||||||
|
-- local Diagnostics = {
|
||||||
|
--
|
||||||
|
-- condition = conditions.has_diagnostics,
|
||||||
|
--
|
||||||
|
-- static = {
|
||||||
|
-- error_icon = vim.fn.sign_getdefined("DiagnosticSignError")[1].text,
|
||||||
|
-- warn_icon = vim.fn.sign_getdefined("DiagnosticSignWarn")[1].text,
|
||||||
|
-- info_icon = vim.fn.sign_getdefined("DiagnosticSignInfo")[1].text,
|
||||||
|
-- hint_icon = vim.fn.sign_getdefined("DiagnosticSignHint")[1].text,
|
||||||
|
-- },
|
||||||
|
--
|
||||||
|
-- init = function(self)
|
||||||
|
-- self.errors = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.ERROR })
|
||||||
|
-- self.warnings = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.WARN })
|
||||||
|
-- self.hints = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.HINT })
|
||||||
|
-- self.info = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.INFO })
|
||||||
|
-- end,
|
||||||
|
--
|
||||||
|
-- update = { "DiagnosticChanged", "BufEnter" },
|
||||||
|
--
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- -- 0 is just another output, we can decide to print it or not!
|
||||||
|
-- return self.errors > 0 and (self.error_icon .. self.errors .. " ")
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_error" },
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- return self.warnings > 0 and (self.warn_icon .. self.warnings .. " ")
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_warn" },
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- return self.info > 0 and (self.info_icon .. self.info .. " ")
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_info" },
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- provider = function(self)
|
||||||
|
-- return self.hints > 0 and (self.hint_icon .. self.hints)
|
||||||
|
-- end,
|
||||||
|
-- hl = { fg = "diag_hint" },
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
local Git = {
|
||||||
|
condition = conditions.is_git_repo,
|
||||||
|
|
||||||
|
init = function(self)
|
||||||
|
self.status_dict = vim.b.gitsigns_status_dict
|
||||||
|
self.has_changes = self.status_dict.added ~= 0 or self.status_dict.removed ~= 0 or self.status_dict.changed ~= 0
|
||||||
|
end,
|
||||||
|
|
||||||
|
hl = { fg = "orange" },
|
||||||
|
|
||||||
|
|
||||||
|
{ -- git branch name
|
||||||
|
provider = function(self)
|
||||||
|
return " " .. self.status_dict.head
|
||||||
|
end,
|
||||||
|
hl = { bold = true }
|
||||||
|
},
|
||||||
|
-- You could handle delimiters, icons and counts similar to Diagnostics
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return self.has_changes
|
||||||
|
end,
|
||||||
|
provider = "("
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider = function(self)
|
||||||
|
local count = self.status_dict.added or 0
|
||||||
|
return count > 0 and ("+" .. count)
|
||||||
|
end,
|
||||||
|
hl = { fg = "git_add" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider = function(self)
|
||||||
|
local count = self.status_dict.removed or 0
|
||||||
|
return count > 0 and ("-" .. count)
|
||||||
|
end,
|
||||||
|
hl = { fg = "git_del" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider = function(self)
|
||||||
|
local count = self.status_dict.changed or 0
|
||||||
|
return count > 0 and ("~" .. count)
|
||||||
|
end,
|
||||||
|
hl = { fg = "git_change" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return self.has_changes
|
||||||
|
end,
|
||||||
|
provider = ")",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
local DAPMessages = {
|
||||||
|
condition = function()
|
||||||
|
local session = require("dap").session()
|
||||||
|
return session ~= nil
|
||||||
|
end,
|
||||||
|
provider = function()
|
||||||
|
return " " .. require("dap").status()
|
||||||
|
end,
|
||||||
|
hl = "Debug"
|
||||||
|
-- see Click-it! section for clickable actions
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
local WorkDir = {
|
||||||
|
provider = function()
|
||||||
|
local icon = (vim.fn.haslocaldir(0) == 1 and "l" or "g") .. " " .. " "
|
||||||
|
local cwd = vim.fn.getcwd(0)
|
||||||
|
cwd = vim.fn.fnamemodify(cwd, ":~")
|
||||||
|
if not conditions.width_percent_below(#cwd, 0.25) then
|
||||||
|
cwd = vim.fn.pathshorten(cwd)
|
||||||
|
end
|
||||||
|
local trail = cwd:sub(-1) == '/' and '' or "/"
|
||||||
|
return icon .. cwd .. trail
|
||||||
|
end,
|
||||||
|
hl = { fg = "blue", bold = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
local TerminalName = {
|
||||||
|
-- we could add a condition to check that buftype == 'terminal'
|
||||||
|
-- or we could do that later (see #conditional-statuslines below)
|
||||||
|
provider = function()
|
||||||
|
local tname, _ = vim.api.nvim_buf_get_name(0):gsub(".*:", "")
|
||||||
|
return " " .. tname
|
||||||
|
end,
|
||||||
|
hl = { fg = "blue", bold = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
local TablineBufnr = {
|
||||||
|
provider = function(self)
|
||||||
|
return tostring(self.bufnr) .. ". "
|
||||||
|
end,
|
||||||
|
hl = "Comment",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- we redefine the filename component, as we probably only want the tail and not the relative path
|
||||||
|
local TablineFileName = {
|
||||||
|
provider = function(self)
|
||||||
|
-- self.filename will be defined later, just keep looking at the example!
|
||||||
|
local filename = self.filename
|
||||||
|
filename = filename == "" and "[No Name]" or vim.fn.fnamemodify(filename, ":t")
|
||||||
|
return filename
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
return { bold = self.is_active or self.is_visible, italic = true }
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- this looks exactly like the FileFlags component that we saw in
|
||||||
|
-- #crash-course-part-ii-filename-and-friends, but we are indexing the bufnr explicitly
|
||||||
|
-- also, we are adding a nice icon for terminal buffers.
|
||||||
|
local TablineFileFlags = {
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return vim.api.nvim_buf_get_option(self.bufnr, "modified")
|
||||||
|
end,
|
||||||
|
provider = "[+]",
|
||||||
|
hl = { fg = "green" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
condition = function(self)
|
||||||
|
return not vim.api.nvim_buf_get_option(self.bufnr, "modifiable")
|
||||||
|
or vim.api.nvim_buf_get_option(self.bufnr, "readonly")
|
||||||
|
end,
|
||||||
|
provider = function(self)
|
||||||
|
if vim.api.nvim_buf_get_option(self.bufnr, "buftype") == "terminal" then
|
||||||
|
return " "
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
hl = { fg = "orange" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Here the filename block finally comes together
|
||||||
|
local TablineFileNameBlock = {
|
||||||
|
init = function(self)
|
||||||
|
self.filename = vim.api.nvim_buf_get_name(self.bufnr)
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
if self.is_active then
|
||||||
|
return "TabLineSel"
|
||||||
|
-- why not?
|
||||||
|
-- elseif not vim.api.nvim_buf_is_loaded(self.bufnr) then
|
||||||
|
-- return { fg = "gray" }
|
||||||
|
else
|
||||||
|
return "TabLine"
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
on_click = {
|
||||||
|
callback = function(_, minwid, _, button)
|
||||||
|
if (button == "m") then -- close on mouse middle click
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.api.nvim_buf_delete(minwid, { force = false })
|
||||||
|
end)
|
||||||
|
else
|
||||||
|
vim.api.nvim_win_set_buf(0, minwid)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
minwid = function(self)
|
||||||
|
return self.bufnr
|
||||||
|
end,
|
||||||
|
name = "heirline_tabline_buffer_callback",
|
||||||
|
},
|
||||||
|
TablineBufnr,
|
||||||
|
FileIcon, -- turns out the version defined in #crash-course-part-ii-filename-and-friends can be reutilized as is here!
|
||||||
|
TablineFileName,
|
||||||
|
TablineFileFlags,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- a nice "x" button to close the buffer
|
||||||
|
local TablineCloseButton = {
|
||||||
|
condition = function(self)
|
||||||
|
return not vim.api.nvim_buf_get_option(self.bufnr, "modified")
|
||||||
|
end,
|
||||||
|
{ provider = " " },
|
||||||
|
{
|
||||||
|
provider = "",
|
||||||
|
hl = { fg = "gray" },
|
||||||
|
on_click = {
|
||||||
|
callback = function(_, minwid)
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.api.nvim_buf_delete(minwid, { force = false })
|
||||||
|
end)
|
||||||
|
vim.cmd.redrawtabline()
|
||||||
|
end,
|
||||||
|
minwid = function(self)
|
||||||
|
return self.bufnr
|
||||||
|
end,
|
||||||
|
name = "heirline_tabline_close_buffer_callback",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- The final touch!
|
||||||
|
local TablineBufferBlock = utils.surround({ "", "" }, function(self)
|
||||||
|
if self.is_active then
|
||||||
|
return utils.get_highlight("TabLineSel").bg
|
||||||
|
else
|
||||||
|
return utils.get_highlight("TabLine").bg
|
||||||
|
end
|
||||||
|
end, { TablineFileNameBlock, TablineCloseButton })
|
||||||
|
|
||||||
|
-- and here we go
|
||||||
|
local BufferLine = utils.make_buflist(
|
||||||
|
TablineBufferBlock,
|
||||||
|
{ provider = "", hl = { fg = "gray" } }, -- left truncation, optional (defaults to "<")
|
||||||
|
{ provider = "", hl = { fg = "gray" } } -- right trunctation, also optional (defaults to ...... yep, ">")
|
||||||
|
-- by the way, open a lot of buffers and try clicking them ;)
|
||||||
|
)
|
||||||
|
|
||||||
|
local Tabpage = {
|
||||||
|
provider = function(self)
|
||||||
|
return "%" .. self.tabnr .. "T " .. self.tabpage .. " %T"
|
||||||
|
end,
|
||||||
|
hl = function(self)
|
||||||
|
if not self.is_active then
|
||||||
|
return "TabLine"
|
||||||
|
else
|
||||||
|
return "TabLineSel"
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabpageClose = {
|
||||||
|
provider = "%999X %X",
|
||||||
|
hl = "TabLine",
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabPages = {
|
||||||
|
-- only show this component if there's 2 or more tabpages
|
||||||
|
condition = function()
|
||||||
|
return #vim.api.nvim_list_tabpages() >= 2
|
||||||
|
end,
|
||||||
|
{ provider = "%=" },
|
||||||
|
utils.make_tablist(Tabpage),
|
||||||
|
TabpageClose,
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabLineOffset = {
|
||||||
|
condition = function(self)
|
||||||
|
local win = vim.api.nvim_tabpage_list_wins(0)[1]
|
||||||
|
local bufnr = vim.api.nvim_win_get_buf(win)
|
||||||
|
self.winid = win
|
||||||
|
|
||||||
|
if vim.bo[bufnr].filetype == "NvimTree" then
|
||||||
|
self.title = "NvimTree"
|
||||||
|
return true
|
||||||
|
elseif vim.bo[bufnr].filetype == "neo-tree" then
|
||||||
|
self.title = "NeoTree"
|
||||||
|
return true
|
||||||
|
elseif vim.bo[bufnr].filetype == "nerdtree" then
|
||||||
|
self.title = "NerdTree"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
-- elseif vim.bo[bufnr].filetype == "TagBar" then
|
||||||
|
-- ...
|
||||||
|
end,
|
||||||
|
|
||||||
|
provider = function(self)
|
||||||
|
local title = self.title
|
||||||
|
local width = vim.api.nvim_win_get_width(self.winid)
|
||||||
|
local pad = math.ceil((width - #title) / 2)
|
||||||
|
return string.rep(" ", pad) .. title .. string.rep(" ", pad)
|
||||||
|
end,
|
||||||
|
|
||||||
|
hl = function(self)
|
||||||
|
if vim.api.nvim_get_current_win() == self.winid then
|
||||||
|
return "TablineSel"
|
||||||
|
else
|
||||||
|
return "Tabline"
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
local Align = { provider = "%=" }
|
||||||
|
local Space = { provider = " " }
|
||||||
|
|
||||||
|
local StatusLine = {
|
||||||
|
ViMode, Space, FileNameBlock, Space, Git, Space, Align,
|
||||||
|
DAPMessages, Align,
|
||||||
|
LSPActive, Space, Ruler
|
||||||
|
}
|
||||||
|
|
||||||
|
local WinBar = {
|
||||||
|
utils.surround({"", ""}, "#000000", Navic)
|
||||||
|
}
|
||||||
|
|
||||||
|
local TabBar = {
|
||||||
|
TabLineOffset, BufferLine, TabPages,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("heirline").setup({
|
||||||
|
statusline = StatusLine,
|
||||||
|
tabline = TabBar,
|
||||||
|
winbar = WinBar,
|
||||||
|
opts = {
|
||||||
|
disable_winbar_cb = function(args)
|
||||||
|
local buf = args.buf
|
||||||
|
local buftype = vim.tbl_contains({ "prompt", "nofile", "help", "quickfix" }, vim.bo[buf].buftype)
|
||||||
|
local filetype = vim.tbl_contains({ "gitcommit", "fugitive", "Trouble", "packer", "neo-tree", "nerdtree", "NvimTree" }, vim.bo[buf].filetype)
|
||||||
|
return buftype or filetype
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.o.showtabline = 2
|
||||||
|
vim.o.laststatus = 3
|
||||||
|
|
||||||
|
-- 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 = {}
|
||||||
|
-- }
|
29
after/plugin/tabline.lua
Executable file
29
after/plugin/tabline.lua
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
-- require("bufferline").setup {
|
||||||
|
-- animation = true,
|
||||||
|
-- auto_hide = true,
|
||||||
|
-- tabpages = true,
|
||||||
|
-- closable = true,
|
||||||
|
-- clickable = true,
|
||||||
|
-- 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)
|
18
after/plugin/telescope.lua
Executable file
18
after/plugin/telescope.lua
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
require "telescope".setup {
|
||||||
|
extensions = {
|
||||||
|
workspaces = {
|
||||||
|
keep_insert = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
pickers = {
|
||||||
|
colorscheme = {
|
||||||
|
enable_preview = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pcall(require("telescope").load_extension, "fzf")
|
||||||
|
require("telescope").load_extension("dap")
|
||||||
|
require('telescope').load_extension('projects')
|
||||||
|
require("telescope").load_extension("workspaces")
|
||||||
|
require("telescope").load_extension("harpoon")
|
24
after/plugin/treesitter.lua
Executable file
24
after/plugin/treesitter.lua
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
vim.filetype.add({extension = {wgsl = "wgsl"}})
|
||||||
|
|
||||||
|
require"nvim-treesitter.configs".setup {
|
||||||
|
ensure_installed = { "wgsl", "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,
|
||||||
|
},
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "gnn",
|
||||||
|
node_incremental = "grn",
|
||||||
|
scope_incremental = "grc",
|
||||||
|
node_decremental = "grm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.wo.foldmethod = "expr"
|
||||||
|
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
|
vim.o.foldlevelstart = 99 -- do not close folds when a buffer is opened
|
1
init.lua
Executable file
1
init.lua
Executable file
|
@ -0,0 +1 @@
|
||||||
|
require("config")
|
131
lazy-lock.json
Normal file
131
lazy-lock.json
Normal file
|
@ -0,0 +1,131 @@
|
||||||
|
{
|
||||||
|
"Comment.nvim": { "branch": "master", "commit": "176e85eeb63f1a5970d6b88f1725039d85ca0055" },
|
||||||
|
"Ionide-vim": { "branch": "master", "commit": "8435bae84b26b602dbb68399661b3989915cc4d3" },
|
||||||
|
"LspUI.nvim": { "branch": "main", "commit": "6499fc3b17609a0a7ecee8623b3f9210da3bc5a3" },
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "e81cbe6004051c390721d8570a4a0541ceb0df10" },
|
||||||
|
"adwaita.nvim": { "branch": "main", "commit": "bb421a3439a515862ecb57970f10722cdcc4d089" },
|
||||||
|
"aerial.nvim": { "branch": "master", "commit": "fb1f08c9f90e8b0c04b2f2c5d95d06288a14c5b2" },
|
||||||
|
"alpha-nvim": { "branch": "main", "commit": "e4fc5e29b731bdf55d204c5c6a11dc3be70f3b65" },
|
||||||
|
"catppuccin": { "branch": "main", "commit": "17ae783b88bb7ae73dc004370473138d9d43ee46" },
|
||||||
|
"cellular-automaton.nvim": { "branch": "main", "commit": "679943b8e1e5ef79aaeeaf4b00782c52eb4e928f" },
|
||||||
|
"close-buffers.nvim": { "branch": "master", "commit": "3acbcad1211572342632a6c0151f839e7dead27f" },
|
||||||
|
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||||
|
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
|
||||||
|
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
|
||||||
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
|
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
|
||||||
|
"color-picker.nvim": { "branch": "master", "commit": "06cb5f853535dea529a523e9a0e8884cdf9eba4d" },
|
||||||
|
"crates.nvim": { "branch": "main", "commit": "1dffccc0a95f656ebe00cacb4de282473430c5a1" },
|
||||||
|
"dotnet.nvim": { "branch": "main", "commit": "d020a7587548d67535be3ead007f424b6d2d44ff" },
|
||||||
|
"dressing.nvim": { "branch": "master", "commit": "39611852fd7bbac117e939a26759bb37361f0c90" },
|
||||||
|
"editorconfig-vim": { "branch": "master", "commit": "7f4e4dfc58c480d154116614e616d90aac77204d" },
|
||||||
|
"fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "bc38057e513458cb2486b6cd82d365fa294ee398" },
|
||||||
|
"github-nvim-theme": { "branch": "main", "commit": "7e08e9cbf6da64b151f708a3e7e9f43447ae0171" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "5d73da785a3c05fd63ac31769079db05169a6ec7" },
|
||||||
|
"glow.nvim": { "branch": "main", "commit": "8942dfb05794f436af4fbc90a34393f1fd36f361" },
|
||||||
|
"goto-preview": { "branch": "main", "commit": "84532db88f8ee272bcd1c07cda55884e23fd9087" },
|
||||||
|
"gruvbox-baby": { "branch": "main", "commit": "4f45f5182b986ea8099b8ad0207e07f1bc49a47f" },
|
||||||
|
"gruvbox-material": { "branch": "master", "commit": "b17daceec6ed9a5fb46e0f293f2ac666c90e5459" },
|
||||||
|
"guess-indent.nvim": { "branch": "main", "commit": "b8ae749fce17aa4c267eec80a6984130b94f80b2" },
|
||||||
|
"harpoon": { "branch": "master", "commit": "21f4c47c6803d64ddb934a5b314dcb1b8e7365dc" },
|
||||||
|
"heirline.nvim": { "branch": "master", "commit": "1840fe27dbb38efa13c8af4614acafe6efa41988" },
|
||||||
|
"hop.nvim": { "branch": "master", "commit": "03f0434869f1f38868618198b5f4f2ab6d39aef2" },
|
||||||
|
"indent-blankline.nvim": { "branch": "master", "commit": "4541d690816cb99a7fc248f1486aa87f3abce91c" },
|
||||||
|
"kanagawa.nvim": { "branch": "master", "commit": "1749cea392acb7d1548a946fcee1e6f1304cd3cb" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" },
|
||||||
|
"lsp-inlayhints.nvim": { "branch": "main", "commit": "d981f65c9ae0b6062176f0accb9c151daeda6f16" },
|
||||||
|
"lsp-lens.nvim": { "branch": "main", "commit": "13d25ad8bd55aa34cc0aa3082e78a4157c401346" },
|
||||||
|
"lsp_signature.nvim": { "branch": "master", "commit": "58d4e810801da74c29313da86075d6aea537501f" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "e86a4c84ff35240639643ffed56ee1c4d55f538e" },
|
||||||
|
"mason-null-ls.nvim": { "branch": "main", "commit": "ae0c5fa57468ac65617f1bf821ba0c3a1e251f0c" },
|
||||||
|
"mason-nvim-dap.nvim": { "branch": "main", "commit": "e4d56b400e9757b1dc77d620fd3069396e92d5fc" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "fe9e34a9ab4d64321cdc3ecab4ea1809239bb73f" },
|
||||||
|
"material.nvim": { "branch": "main", "commit": "1ecaa2d065a1ea308bd7702a77c2bf35ede8f536" },
|
||||||
|
"mellow.nvim": { "branch": "main", "commit": "882c9dcf4e97f41e22fcc8190827ae4ac2fa9134" },
|
||||||
|
"mesonic": { "branch": "master", "commit": "b7e8e4ed41c49c671ce424c0697aa9c08af0805d" },
|
||||||
|
"mini.nvim": { "branch": "main", "commit": "aac602e097b99a06bc84e43356f080eb6256dd21" },
|
||||||
|
"minimal.nvim": { "branch": "main", "commit": "22d837b814d3bd22625640ef63cc73b8507f291d" },
|
||||||
|
"neo-tree.nvim": { "branch": "v2.x", "commit": "80dc74d081823649809f78370fa5b204aa9a853a" },
|
||||||
|
"neodev.nvim": { "branch": "main", "commit": "6adf4931c2a1a532d3f7a5c2217c280a07a1aabb" },
|
||||||
|
"neofsharp.vim": { "branch": "master", "commit": "f28bb9665fa859be8543b9828b477dd932743827" },
|
||||||
|
"neogit": { "branch": "master", "commit": "1b6edb56e8c754494be1564912d33e50ddd8a023" },
|
||||||
|
"neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" },
|
||||||
|
"nerdtree": { "branch": "master", "commit": "c46e12a886b4a6618a9e834c90f6245952567115" },
|
||||||
|
"nightfox.nvim": { "branch": "main", "commit": "77aa7458d2b725c2d9ff55a18befe1b891ac473e" },
|
||||||
|
"nim.nvim": { "branch": "master", "commit": "87afde2ae995723e0338e1851c3b3c1cbd81d955" },
|
||||||
|
"nnn.nvim": { "branch": "master", "commit": "4616ec65eb0370af548e356c3ec542c1b167b415" },
|
||||||
|
"nord.nvim": { "branch": "master", "commit": "fab04b2dd4b64f4b1763b9250a8824d0b5194b8f" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "9e3916e784660f55f47daa6f26053ad044db5d6a" },
|
||||||
|
"null-ls.nvim": { "branch": "main", "commit": "db09b6c691def0038c456551e4e2772186449f35" },
|
||||||
|
"numb.nvim": { "branch": "master", "commit": "2c89245d1185e02fec1494c45bc765a38b6b40b3" },
|
||||||
|
"nvim": { "branch": "main", "commit": "9a0e695fdd57b340d3ba2b72406e3ca519029f25" },
|
||||||
|
"nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" },
|
||||||
|
"nvim-bqf": { "branch": "main", "commit": "65397976cec59a1e9892b93e3ab1ea987064b0dc" },
|
||||||
|
"nvim-cmp": { "branch": "main", "commit": "c4e491a87eeacf0408902c32f031d802c7eafce8" },
|
||||||
|
"nvim-dap": { "branch": "master", "commit": "2f28ea843bcdb378b171a66ddcd568516e431d55" },
|
||||||
|
"nvim-dap-ui": { "branch": "master", "commit": "85b16ac2309d85c88577cd8ee1733ce52be8227e" },
|
||||||
|
"nvim-jdtls": { "branch": "master", "commit": "96e3978c3fdae3950f6ccda548775e8b8952f74a" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "b6091272422bb0fbd729f7f5d17a56d37499c54f" },
|
||||||
|
"nvim-navbuddy": { "branch": "master", "commit": "244a4cded6f2b568403684131d148048efe4e8af" },
|
||||||
|
"nvim-navic": { "branch": "master", "commit": "9c89730da6a05acfeb6a197e212dfadf5aa60ca0" },
|
||||||
|
"nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
|
||||||
|
"nvim-regexplainer": { "branch": "main", "commit": "ae651b187bdaa0fc6cbf60e660da5ebf74013d72" },
|
||||||
|
"nvim-surround": { "branch": "main", "commit": "10b20ca7d9da1ac8df8339e140ffef94f9ab3b18" },
|
||||||
|
"nvim-tree.lua": { "branch": "master", "commit": "4bd30f0137e44dcf3e74cc1164efb568f78f2b02" },
|
||||||
|
"nvim-treesitter": { "branch": "master", "commit": "ee107fc759647293a84ad42b867f518331364fbe" },
|
||||||
|
"nvim-treesitter-context": { "branch": "master", "commit": "6f8f788738b968f24a108ee599c5be0031f94f06" },
|
||||||
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "9e519b6146512c8e2e702faf8ac48420f4f5deec" },
|
||||||
|
"nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" },
|
||||||
|
"nvim-window-picker": { "branch": "main", "commit": "1b1bb834b0acb9eebb11a61664efc665757f1ba2" },
|
||||||
|
"oh-lucy.nvim": { "branch": "main", "commit": "706c74fe8dcc2014dc17bbc861a05d27623e06e3" },
|
||||||
|
"oil.nvim": { "branch": "master", "commit": "eaa20a6aee7c4df89d80ec8208de63ec2fa4d38a" },
|
||||||
|
"one_monokai.nvim": { "branch": "main", "commit": "cb45ecb019be679e32373896bb42545818b6d884" },
|
||||||
|
"onedarkpro.nvim": { "branch": "main", "commit": "5b447b2d5937a66033084b05ced0f79bcf6e6f64" },
|
||||||
|
"onenord.nvim": { "branch": "main", "commit": "222839e392a79c48ce0f52d754cccbc79322c01f" },
|
||||||
|
"overseer.nvim": { "branch": "master", "commit": "514a5e1af18b490721836fa19b62ca60761e5b59" },
|
||||||
|
"playground": { "branch": "master", "commit": "2b81a018a49f8e476341dfcb228b7b808baba68b" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" },
|
||||||
|
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
|
||||||
|
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
||||||
|
"pretty-fold.nvim": { "branch": "master", "commit": "a7d8b424abe0eedf50116c460fbe6dfd5783b1d5" },
|
||||||
|
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
|
||||||
|
"rainbow_csv.nvim": { "branch": "main", "commit": "5eadace1015ca08caa4f42cc18ae93ed190c12f6" },
|
||||||
|
"rust-tools.nvim": { "branch": "master", "commit": "0cc8adab23117783a0292a0c8a2fbed1005dc645" },
|
||||||
|
"screensaver.vim": { "branch": "master", "commit": "2fce86da020f762608e7a4fc221fdde220301105" },
|
||||||
|
"smart-splits.nvim": { "branch": "master", "commit": "7aad6019dee974a01333523a5b8e122b7e7da454" },
|
||||||
|
"sonokai": { "branch": "master", "commit": "adb066ac5250556ccfca22f901c9710a735f23c2" },
|
||||||
|
"sort.nvim": { "branch": "main", "commit": "c789da6968337d2a61104a929880b5f144e02855" },
|
||||||
|
"suda.vim": { "branch": "master", "commit": "8b0fc3711760195aba104e2d190cff9af8267052" },
|
||||||
|
"tailwindcss-colorizer-cmp.nvim": { "branch": "main", "commit": "65565c62963579897d28390dbd1ba8fb15ba545f" },
|
||||||
|
"telescope-dap.nvim": { "branch": "master", "commit": "313d2ea12ae59a1ca51b62bf01fc941a983d9c9c" },
|
||||||
|
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9bc8237565ded606e6c366a71c64c0af25cd7a50" },
|
||||||
|
"telescope.nvim": { "branch": "0.1.x", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
|
||||||
|
"todo-comments.nvim": { "branch": "main", "commit": "3094ead8edfa9040de2421deddec55d3762f64d1" },
|
||||||
|
"toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" },
|
||||||
|
"tokyodark.nvim": { "branch": "master", "commit": "b44f0cac4ab00b25ba91905ff0f8d51b7473bbba" },
|
||||||
|
"transparent.nvim": { "branch": "main", "commit": "f6a0f8387fbea5fbc2b78137444a9de4fdd02459" },
|
||||||
|
"undotree": { "branch": "master", "commit": "0e11ba7325efbbb3f3bebe06213afa3e7ec75131" },
|
||||||
|
"vim-be-good": { "branch": "master", "commit": "c290810728a4f75e334b07dc0f3a4cdea908d351" },
|
||||||
|
"vim-cmake": { "branch": "master", "commit": "6b7b18130c30e1d498c0ec8fca3c18951273e4ea" },
|
||||||
|
"vim-css-color": { "branch": "master", "commit": "6cc65734bc7105d9677ca54e2255fcbc953ba6bf" },
|
||||||
|
"vim-fugitive": { "branch": "master", "commit": "b3b838d690f315a503ec4af8c634bdff3b200aaf" },
|
||||||
|
"vim-glsl": { "branch": "master", "commit": "bfd330a271933c3372fcfa8ce052970746c8e9dd" },
|
||||||
|
"vim-nerdtree-tabs": { "branch": "master", "commit": "07d19f0299762669c6f93fbadb8249da6ba9de62" },
|
||||||
|
"vim-racer": { "branch": "master", "commit": "d1aead98a936cd8165b3329511d7c987226eb3a6" },
|
||||||
|
"vim-rhubarb": { "branch": "master", "commit": "ee69335de176d9325267b0fd2597a22901d927b1" },
|
||||||
|
"vim-sanegx": { "branch": "master", "commit": "e97c10401d781199ba1aecd07790d0771314f3f5" },
|
||||||
|
"vim-sleuth": { "branch": "master", "commit": "1cc4557420f215d02c4d2645a748a816c220e99b" },
|
||||||
|
"vim-svelte": { "branch": "main", "commit": "0e93ec53c3667753237282926fec626785622c1c" },
|
||||||
|
"vim-table-mode": { "branch": "master", "commit": "9555a3e6e5bcf285ec181b7fc983eea90500feb4" },
|
||||||
|
"vim-tmux-navigator": { "branch": "master", "commit": "cdd66d6a37d991bba7997d593586fc51a5b37aa8" },
|
||||||
|
"vim-visual-multi": { "branch": "master", "commit": "724bd53adfbaf32e129b001658b45d4c5c29ca1a" },
|
||||||
|
"vim-vue": { "branch": "master", "commit": "c424294e769b26659176065f9713c395731f7b3a" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" },
|
||||||
|
"wilder.nvim": { "branch": "master", "commit": "679f348dc90d80ff9ba0e7c470c40a4d038dcecf" },
|
||||||
|
"workspaces.nvim": { "branch": "master", "commit": "c8bd98990d322b107e58ff5373038b753a8ef66d" },
|
||||||
|
"yuck.vim": { "branch": "master", "commit": "9b5e0370f70cc30383e1dabd6c215475915fe5c3" },
|
||||||
|
"zig-tools.nvim": { "branch": "master", "commit": "78a85278fe5d480da2f01df4db898757d7e953b5" },
|
||||||
|
"zig.vim": { "branch": "master", "commit": "15841fc4fecfb1b6c02da9b4cc17ced135edbf8e" }
|
||||||
|
}
|
69
lua/config/commands.lua
Normal file
69
lua/config/commands.lua
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
local pickers = require "telescope.pickers"
|
||||||
|
local finders = require "telescope.finders"
|
||||||
|
local conf = require("telescope.config").values
|
||||||
|
local actions = require "telescope.actions"
|
||||||
|
local action_state = require "telescope.actions.state"
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("OP", function ()
|
||||||
|
local folders = vim.fn.systemlist("\\ls -d $HOME/projects/*/")
|
||||||
|
for i, folder in ipairs(folders) do
|
||||||
|
folders[i] = string.match(string.match(folder, "[^/]*/$"), "^[^/]*")
|
||||||
|
end
|
||||||
|
pickers.new({}, {
|
||||||
|
prompt_title = "Open project",
|
||||||
|
finder = finders.new_table {
|
||||||
|
results = folders
|
||||||
|
},
|
||||||
|
sorter = conf.generic_sorter({}),
|
||||||
|
attach_mappings = function (prompt_bufnr, map)
|
||||||
|
actions.select_default:replace(function ()
|
||||||
|
actions.close(prompt_bufnr)
|
||||||
|
local selection = action_state.get_selected_entry()
|
||||||
|
selection = selection[1]
|
||||||
|
vim.cmd("cd $HOME/projects/" .. selection)
|
||||||
|
vim.cmd("Alpha")
|
||||||
|
vim.cmd("BWipeout other")
|
||||||
|
end)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
}):find()
|
||||||
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("OD", function ()
|
||||||
|
local folders = vim.fn.systemlist("\\ls -d */")
|
||||||
|
for i, folder in ipairs(folders) do
|
||||||
|
folders[i] = string.match(string.match(folder, "[^/]*/$"), "^[^/]*")
|
||||||
|
end
|
||||||
|
pickers.new({}, {
|
||||||
|
prompt_title = "Open directory",
|
||||||
|
finder = finders.new_table {
|
||||||
|
results = folders
|
||||||
|
},
|
||||||
|
sorter = conf.generic_sorter({}),
|
||||||
|
attach_mappings = function (prompt_bufnr, map)
|
||||||
|
actions.select_default:replace(function ()
|
||||||
|
actions.close(prompt_bufnr)
|
||||||
|
local selection = action_state.get_selected_entry()
|
||||||
|
selection = selection[1]
|
||||||
|
vim.cmd("cd " .. selection)
|
||||||
|
vim.cmd("Alpha")
|
||||||
|
vim.cmd("BWipeout other")
|
||||||
|
end)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
}):find()
|
||||||
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("Config", function ()
|
||||||
|
vim.cmd("cd $HOME/.config/nvim")
|
||||||
|
vim.cmd("Alpha")
|
||||||
|
vim.cmd("BWipeout other")
|
||||||
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("O", function ()
|
||||||
|
require("oil").open_float(vim.fn.getcwd())
|
||||||
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("RetabFile", function ()
|
||||||
|
vim.cmd(":set ts=2 sts=2 noet | retab! | set ts=4 sts=4 et | retab!")
|
||||||
|
end, {})
|
4
lua/config/init.lua
Normal file
4
lua/config/init.lua
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require("config.pmstrap")
|
||||||
|
require("config.sets")
|
||||||
|
require("config.keymap")
|
||||||
|
require("config.commands")
|
171
lua/config/keymap.lua
Normal file
171
lua/config/keymap.lua
Normal file
|
@ -0,0 +1,171 @@
|
||||||
|
local wk = require("which-key")
|
||||||
|
|
||||||
|
local keys = {
|
||||||
|
e = {
|
||||||
|
name = "Toggle",
|
||||||
|
e = {"<cmd>NeoTreeFloatToggle<CR>", "NeoTree"},
|
||||||
|
w = {vim.cmd.Ex, "netrw"},
|
||||||
|
g = {"<cmd>NeoTreeFloatToggle git_status<CR>", "Git Status"},
|
||||||
|
b = {"<cmd>NeoTreeFloatToggle buffers<CR>", "Buffers"},
|
||||||
|
c = {"<cmd>NeoTreeClose<CR>" , "Close"},
|
||||||
|
u = {vim.cmd.UndotreeToggle, "UndoTree"},
|
||||||
|
o = {function () require("oil").open_float(vim.fn.getcwd()) end, "Oil"},
|
||||||
|
},
|
||||||
|
c = {
|
||||||
|
name = "LSP",
|
||||||
|
S = {vim.cmd.AerialToggle, "Symbol sidebar"},
|
||||||
|
w = {function () vim.lsp.buf.workspace_symbol("") end, "workspace symbol"},
|
||||||
|
d = {function () vim.diagnostic.open_float() end, "diagnostic"},
|
||||||
|
a = {function () vim.lsp.buf.code_action() end, "code actions"},
|
||||||
|
R = {function () vim.lsp.buf.references() end, "references"},
|
||||||
|
r = {function () vim.lsp.buf.rename() end, "rename"},
|
||||||
|
h = {function () vim.lsp.buf.hover() end, "Hover"},
|
||||||
|
t = {function () vim.lsp.buf.type_definition() end,"Type Definition"},
|
||||||
|
s = {"<cmd>Navbuddy<cr>", "Navbuddy"},
|
||||||
|
-- s = {require("telescope.builtin").lsp_document_symbols, "Document Symbols"},
|
||||||
|
g = {
|
||||||
|
name = "Goto Preview",
|
||||||
|
d = {function () require('goto-preview').goto_preview_definition() end, "Definition"},
|
||||||
|
r = {function () require('goto-preview').goto_preview_references() end, "References"},
|
||||||
|
t = {function () require("goto-preview").goto_preview_type_definitions() end, "Type"},
|
||||||
|
i = {function () require("goto-preview").goto_preview_implementation() end, "Implementation"},
|
||||||
|
c = {function () require("goto-preview").close_all_win() end, "Close"},
|
||||||
|
},
|
||||||
|
c = {
|
||||||
|
name = "LSP",
|
||||||
|
k = {"<cmd>LspStop<cr>", "Stop"},
|
||||||
|
s = {"<cmd>LspStart<cr>", "Start"},
|
||||||
|
r = {"<cmd>LspRestart<cr>", "Restart"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
q = {
|
||||||
|
name = "Nvim",
|
||||||
|
q = {"<cmd>q<cr>", "Quit"},
|
||||||
|
W = {"<cmd>wq<cr>", "Save and Quit"},
|
||||||
|
w = {"<cmd>w<cr>", "Save"},
|
||||||
|
},
|
||||||
|
b = {
|
||||||
|
name = "Buffer",
|
||||||
|
h = {vim.cmd.bprevious, "Previous"},
|
||||||
|
l = {vim.cmd.bnext, "Next"},
|
||||||
|
H = {vim.cmd.bfirst, "First"},
|
||||||
|
L = {vim.cmd.blast, "Last"},
|
||||||
|
b = {require("telescope.builtin").buffers, "Picker"},
|
||||||
|
c = {"<cmd>:bp | sp | bn | bd<cr>", "Close"},
|
||||||
|
},
|
||||||
|
f = {
|
||||||
|
name = "Telescope & fzf",
|
||||||
|
c = {require("telescope.builtin").colorscheme, "Find Colorscheme"},
|
||||||
|
d = {require("telescope.builtin").diagnostics, "Find Diagnostics"},
|
||||||
|
w = {require("telescope.builtin").grep_string, "Find current Word"},
|
||||||
|
f = {require("telescope.builtin").find_files, "telescope find files"},
|
||||||
|
g = {require("telescope.builtin").live_grep, "live grep"},
|
||||||
|
b = {require("telescope.builtin").buffers, "buffers"},
|
||||||
|
h = {require("telescope.builtin").help_tags, "help tags"},
|
||||||
|
s = {function () require("telescope.builtin").grep_string({ search = vim.fn.input("Grep > ")}); end, "grep search through files"},
|
||||||
|
p = {"<cmd>Telescope projects<cr>", "Projects"},
|
||||||
|
},
|
||||||
|
s = {
|
||||||
|
name = "Settings",
|
||||||
|
c = {function ()
|
||||||
|
vim.opt.scrolloff = 100
|
||||||
|
end, "Always center cursor"},
|
||||||
|
x = {function ()
|
||||||
|
vim.opt.scrolloff = 8
|
||||||
|
end, "Disable Cursor center"},
|
||||||
|
f = {function ()
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
end, "Fix number and relative numbers"},
|
||||||
|
m = {function ()
|
||||||
|
vim.cmd[[
|
||||||
|
highlight CursorColumn guibg=none ctermbg=none
|
||||||
|
highlight link CursorColumn CursorLine
|
||||||
|
]]
|
||||||
|
end, "Fix cursor highlight"},
|
||||||
|
},
|
||||||
|
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"},
|
||||||
|
h = {vim.cmd.HopChar2, "Hop"},
|
||||||
|
},
|
||||||
|
d = {
|
||||||
|
name = "Debug",
|
||||||
|
b = {function () require("dap").toggle_breakpoint() end, "toggle breakpoint"},
|
||||||
|
c = {function () require("dap").continue() end, "launch or continue execution"},
|
||||||
|
s = {function () require("dap").step_into() end, "step into"},
|
||||||
|
o = {function () require("dap").step_over() end, "step over"},
|
||||||
|
r = {function () require("dap").repl.open() end, "open repl"},
|
||||||
|
w = {"<cmd>DapUIFloat<cr>", "DapUI"},
|
||||||
|
},
|
||||||
|
w = {
|
||||||
|
name = "workspace",
|
||||||
|
a = {vim.lsp.buf.add_workspace_folder, "add folder"},
|
||||||
|
r = {vim.lsp.buf.remove_workspace_folder, "remove folder"},
|
||||||
|
l = {function() print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, "list folders"},
|
||||||
|
},
|
||||||
|
q = {
|
||||||
|
name = "Quick nav",
|
||||||
|
q = {require("harpoon.ui").toggle_quick_menu, "Menu"},
|
||||||
|
a = {require("harpoon.mark").add_file, "Add file"},
|
||||||
|
r = {require("harpoon.mark").rm_file, "Remove File"},
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
wk.register(keys, {prefix = "<leader>"})
|
||||||
|
wk.register(keys, {prefix = "<C-Space>"})
|
||||||
|
wk.register(keys, {prefix = "<C-Space>", mode = "i"})
|
||||||
|
wk.register(keys, {prefix = "<C-Space>", mode = "v"})
|
||||||
|
|
||||||
|
-- LSP
|
||||||
|
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, {desc = "goto definition"})
|
||||||
|
vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, {})
|
||||||
|
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, {desc = "goto next"})
|
||||||
|
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, {desc = "goto prev"})
|
||||||
|
vim.keymap.set("i", "<C-s>", function() vim.lsp.buf.signature_help() end)
|
||||||
|
vim.keymap.set("i", "<C-h>", function () vim.lsp.buf.hover() end, {})
|
||||||
|
|
||||||
|
-- term
|
||||||
|
vim.keymap.set("n", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
vim.keymap.set("t", "<C-\\>", vim.cmd.ToggleTerm)
|
||||||
|
|
||||||
|
-- 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")
|
||||||
|
|
||||||
|
-- visual move
|
||||||
|
vim.keymap.set("x", "K", ":move '<-2<CR>gv=gv")
|
||||||
|
vim.keymap.set("x", "J", ":move '>+1<CR>gv=gv")
|
||||||
|
|
||||||
|
-- me lazy
|
||||||
|
vim.keymap.set("i", "<C-c>", "<Esc>")
|
||||||
|
|
||||||
|
|
||||||
|
-- non char keybinds
|
||||||
|
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("i", "<C-Space>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('i', '<C-Space>f?', require('telescope.builtin').oldfiles, { desc = 'Find recently opened files' })
|
||||||
|
|
||||||
|
for i = 9, 1, -1 do
|
||||||
|
vim.keymap.set("n", "<M-" .. i .. ">", function() require("harpoon.ui").nav_file(i) end, {desc = ""})
|
||||||
|
end
|
485
lua/config/packages.lua
Normal file
485
lua/config/packages.lua
Normal file
|
@ -0,0 +1,485 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
dependencies = {
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
"j-hui/fidget.nvim",
|
||||||
|
"folke/neodev.nvim",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jinzhongjia/LspUI.nvim",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"VidocqH/lsp-lens.nvim",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"j-hui/fidget.nvim",
|
||||||
|
tag = "legacy",
|
||||||
|
dependencies = {
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"jose-elias-alvarez/null-ls.nvim",
|
||||||
|
"jay-babu/mason-null-ls.nvim",
|
||||||
|
{
|
||||||
|
"SmiteshP/nvim-navic",
|
||||||
|
dependencies = {"neovim/nvim-lspconfig"},
|
||||||
|
opts = {highlight = true},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ray-x/lsp_signature.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
config = function() require"lsp_signature".on_attach() end,
|
||||||
|
},
|
||||||
|
'stevearc/aerial.nvim',
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
dependencies = {
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
"saadparwaiz1/cmp_luasnip",
|
||||||
|
"hrsh7th/cmp-nvim-lua",
|
||||||
|
"hrsh7th/cmp-buffer",
|
||||||
|
"hrsh7th/cmp-path",
|
||||||
|
"rafamadriz/friendly-snippets"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"roobert/tailwindcss-colorizer-cmp.nvim",
|
||||||
|
opts = {color_square_width = 2},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- syntax highlighting
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
build = ":TSUpdate"
|
||||||
|
},
|
||||||
|
'nvim-treesitter/nvim-treesitter-context',
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
|
dependencies = {"nvim-treesitter"},
|
||||||
|
},
|
||||||
|
"nvim-treesitter/playground",
|
||||||
|
|
||||||
|
-- fzf Telescope
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
branch = "0.1.x",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope-fzf-native.nvim",
|
||||||
|
build = "make",
|
||||||
|
},
|
||||||
|
"nvim-lua/popup.nvim",
|
||||||
|
|
||||||
|
-- debugging
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
"jay-babu/mason-nvim-dap.nvim",
|
||||||
|
{
|
||||||
|
"rcarriga/nvim-dap-ui",
|
||||||
|
dependencies = {
|
||||||
|
"mfussenegger/nvim-dap"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"nvim-telescope/telescope-dap.nvim",
|
||||||
|
|
||||||
|
-- git
|
||||||
|
{
|
||||||
|
"NeogitOrg/neogit",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim"
|
||||||
|
},
|
||||||
|
config=true,
|
||||||
|
},
|
||||||
|
"tpope/vim-fugitive",
|
||||||
|
"tpope/vim-rhubarb",
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
|
||||||
|
"lvimuser/lsp-inlayhints.nvim",
|
||||||
|
"s1n7ax/nvim-window-picker",
|
||||||
|
"echasnovski/mini.nvim",
|
||||||
|
{
|
||||||
|
'stevearc/oil.nvim',
|
||||||
|
opts = {
|
||||||
|
columns = {
|
||||||
|
"icon",
|
||||||
|
"permissions",
|
||||||
|
"size",
|
||||||
|
},
|
||||||
|
-- keymap = {
|
||||||
|
-- ["<C-c>"] = "actions.close",
|
||||||
|
-- },
|
||||||
|
view_options = {
|
||||||
|
show_hidden = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ThePrimeagen/vim-be-good",
|
||||||
|
'kazhala/close-buffers.nvim',
|
||||||
|
-- {
|
||||||
|
-- "VonHeikemen/fine-cmdline.nvim",
|
||||||
|
-- dependencies = {{"MunifTanjim/nui.nvim"}},
|
||||||
|
-- config = function()
|
||||||
|
-- require("fine-cmdline").setup({
|
||||||
|
-- cmdline = {
|
||||||
|
-- prompt = ">",
|
||||||
|
-- }
|
||||||
|
-- })
|
||||||
|
-- vim.api.nvim_set_keymap('n', ':', '<cmd>FineCmdline<CR>', {noremap = true})
|
||||||
|
-- end
|
||||||
|
-- },
|
||||||
|
'stevearc/dressing.nvim',
|
||||||
|
{
|
||||||
|
'stevearc/overseer.nvim',
|
||||||
|
opts = {
|
||||||
|
strategy = "toggleterm",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"itchyny/screensaver.vim",
|
||||||
|
"christoomey/vim-tmux-navigator",
|
||||||
|
'anuvyklack/pretty-fold.nvim',
|
||||||
|
'eandrju/cellular-automaton.nvim',
|
||||||
|
"ahmedkhalf/project.nvim",
|
||||||
|
"dhruvasagar/vim-table-mode",
|
||||||
|
"editorconfig/editorconfig-vim",
|
||||||
|
"andweeb/presence.nvim",
|
||||||
|
"nacro90/numb.nvim",
|
||||||
|
{"ellisonleao/glow.nvim", config = true, cmd = "Glow"},
|
||||||
|
"kylechui/nvim-surround",
|
||||||
|
{
|
||||||
|
"phaazon/hop.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
opts = {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
filters = {
|
||||||
|
dotfiles = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ThePrimeagen/harpoon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sQVe/sort.nvim",
|
||||||
|
opts = {}
|
||||||
|
},
|
||||||
|
|
||||||
|
-- misc editing
|
||||||
|
{
|
||||||
|
"ziontee113/color-picker.nvim",
|
||||||
|
opts = {
|
||||||
|
["border"] = "rounded",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"natecraddock/workspaces.nvim",
|
||||||
|
opts = {
|
||||||
|
auto_open = true,
|
||||||
|
hooks = {
|
||||||
|
add = {},
|
||||||
|
remove = {},
|
||||||
|
rename = {},
|
||||||
|
open_pre = {},
|
||||||
|
open = {},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lambdalisue/suda.vim",
|
||||||
|
"tpope/vim-sleuth",
|
||||||
|
"mbbill/undotree",
|
||||||
|
"windwp/nvim-autopairs",
|
||||||
|
"windwp/nvim-ts-autotag",
|
||||||
|
{
|
||||||
|
"mg979/vim-visual-multi",
|
||||||
|
config = function ()
|
||||||
|
vim.cmd("let g:VM_leader='<Space>m'")
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
-- mics visuals
|
||||||
|
{
|
||||||
|
'bennypowers/nvim-regexplainer',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
config = function ()
|
||||||
|
vim.notify = require("notify")
|
||||||
|
end
|
||||||
|
},
|
||||||
|
'nmac427/guess-indent.nvim',
|
||||||
|
'mrjones2014/smart-splits.nvim',
|
||||||
|
"goolord/alpha-nvim",
|
||||||
|
"preservim/nerdtree",
|
||||||
|
"luukvbaal/nnn.nvim",
|
||||||
|
{
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
branch = "v2.x",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"jistr/vim-nerdtree-tabs",
|
||||||
|
{
|
||||||
|
"kevinhwang91/nvim-bqf",
|
||||||
|
event = { "BufRead", "BufNew" },
|
||||||
|
opts = {
|
||||||
|
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", "> " },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
"ap/vim-css-color",
|
||||||
|
{
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
opts = {
|
||||||
|
char = '┊',
|
||||||
|
show_trailing_blankline_indent = false,
|
||||||
|
filetype_exclude = {"dashboard"},
|
||||||
|
show_end_of_line = true,
|
||||||
|
show_current_context = true,
|
||||||
|
show_current_context_start = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"rebelot/heirline.nvim",
|
||||||
|
{
|
||||||
|
"akinsho/toggleterm.nvim",
|
||||||
|
version = "*",
|
||||||
|
opts = {
|
||||||
|
direction = "float",
|
||||||
|
float_opts = {
|
||||||
|
border = "curved"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"karb94/neoscroll.nvim",
|
||||||
|
event = "WinScrolled",
|
||||||
|
opts = {
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"folke/todo-comments.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
},
|
||||||
|
'numToStr/Comment.nvim',
|
||||||
|
{
|
||||||
|
"SmiteshP/nvim-navbuddy",
|
||||||
|
dependencies = {
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"SmiteshP/nvim-navic",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
"numToStr/Comment.nvim",
|
||||||
|
"nvim-telescope/telescope.nvim"
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
window = {border="rounded",},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'rmagatti/goto-preview',
|
||||||
|
{
|
||||||
|
"felipec/vim-sanegx",
|
||||||
|
event = "BufRead",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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
|
||||||
|
-- nim
|
||||||
|
"alaviss/nim.nvim",
|
||||||
|
|
||||||
|
-- csv
|
||||||
|
'cameron-wags/rainbow_csv.nvim',
|
||||||
|
|
||||||
|
-- rust
|
||||||
|
{"racer-rust/vim-racer",
|
||||||
|
config = function ()
|
||||||
|
vim.cmd [[ let g:racer_cmd = "/usr/bin/racer"]]
|
||||||
|
end
|
||||||
|
},
|
||||||
|
"simrat39/rust-tools.nvim",
|
||||||
|
{
|
||||||
|
"saecki/crates.nvim",
|
||||||
|
tag = "v0.3.0",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- zig
|
||||||
|
"ziglang/zig.vim",
|
||||||
|
{
|
||||||
|
"NTBBloodbath/zig-tools.nvim",
|
||||||
|
ft = "zig",
|
||||||
|
opts = {
|
||||||
|
integrations = {
|
||||||
|
zls = {
|
||||||
|
hints = true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
-- glsl
|
||||||
|
"tikhomirov/vim-glsl",
|
||||||
|
|
||||||
|
-- java
|
||||||
|
"mfussenegger/nvim-jdtls",
|
||||||
|
|
||||||
|
-- c && c++ && cmake
|
||||||
|
{ "igankevich/mesonic",
|
||||||
|
config = function()
|
||||||
|
vim.cmd[[
|
||||||
|
let b:meson_command = 'meson'
|
||||||
|
let b:meson_ninja_command = 'ninja'
|
||||||
|
|
||||||
|
autocmd FileType c call ConsiderMesonForLinting()
|
||||||
|
function ConsiderMesonForLinting()
|
||||||
|
if filereadable('meson.build')
|
||||||
|
let g:syntastic_c_checkers = ['meson']
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
]]
|
||||||
|
end
|
||||||
|
},
|
||||||
|
"cdelledonne/vim-cmake",
|
||||||
|
|
||||||
|
-- web
|
||||||
|
"evanleck/vim-svelte",
|
||||||
|
"posva/vim-vue",
|
||||||
|
|
||||||
|
-- yuck
|
||||||
|
"elkowar/yuck.vim",
|
||||||
|
|
||||||
|
|
||||||
|
-- f#
|
||||||
|
"adelarsq/neofsharp.vim",
|
||||||
|
{
|
||||||
|
"ionide/Ionide-vim",
|
||||||
|
config = function ()
|
||||||
|
vim.cmd [[
|
||||||
|
let g:fsharp#backend = "nvim"
|
||||||
|
]]
|
||||||
|
end
|
||||||
|
},
|
||||||
|
"aurum77/dotnet.nvim",
|
||||||
|
|
||||||
|
-- themes
|
||||||
|
"xiyaowong/transparent.nvim",
|
||||||
|
|
||||||
|
"sainnhe/gruvbox-material",
|
||||||
|
"shaunsingh/nord.nvim",
|
||||||
|
"projekt0n/github-nvim-theme",
|
||||||
|
"EdenEast/nightfox.nvim",
|
||||||
|
"Everblush/nvim",
|
||||||
|
"olimorris/onedarkpro.nvim",
|
||||||
|
"rmehri01/onenord.nvim",
|
||||||
|
"luisiacc/gruvbox-baby",
|
||||||
|
"tiagovla/tokyodark.nvim",
|
||||||
|
"cpea2506/one_monokai.nvim",
|
||||||
|
"yazeed1s/minimal.nvim",
|
||||||
|
"Mofiqul/adwaita.nvim",
|
||||||
|
"kvrohit/mellow.nvim",
|
||||||
|
"yazeed1s/oh-lucy.nvim",
|
||||||
|
"marko-cerovac/material.nvim",
|
||||||
|
"sainnhe/sonokai",
|
||||||
|
"rebelot/kanagawa.nvim",
|
||||||
|
{
|
||||||
|
"catppuccin/nvim",
|
||||||
|
priority = 1000,
|
||||||
|
name = "catppuccin",
|
||||||
|
config = function()
|
||||||
|
require("catppuccin").setup{
|
||||||
|
flavor = "mocha",
|
||||||
|
navic = {
|
||||||
|
enabled = true,
|
||||||
|
custom_bg = "NONE",
|
||||||
|
},
|
||||||
|
indent_blankline = {
|
||||||
|
enabled = true,
|
||||||
|
colored_indent_levels = true,
|
||||||
|
},
|
||||||
|
dap = {
|
||||||
|
enabled = true,
|
||||||
|
enable_ui = true,
|
||||||
|
},
|
||||||
|
integrations = {
|
||||||
|
hop = true,
|
||||||
|
cmp = true,
|
||||||
|
telescope = true,
|
||||||
|
which_key = true,
|
||||||
|
},
|
||||||
|
-- color_overrides = {
|
||||||
|
-- macchiato = {
|
||||||
|
-- base = "#000000",
|
||||||
|
-- mantle = "#000000",
|
||||||
|
-- crust = "#000000"
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
}
|
||||||
|
vim.cmd("colorscheme catppuccin")
|
||||||
|
end
|
||||||
|
},
|
||||||
|
}
|
24
lua/config/pmstrap.lua
Normal file
24
lua/config/pmstrap.lua
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
"--branch=stable", -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
-- bootstrap lazy.nvim
|
||||||
|
require("lazy").setup("config.packages", {
|
||||||
|
defaults = {
|
||||||
|
lazy = false
|
||||||
|
},
|
||||||
|
-- install = {
|
||||||
|
-- colorscheme = { "catppuccin" },
|
||||||
|
-- }
|
||||||
|
})
|
57
lua/config/sets.lua
Normal file
57
lua/config/sets.lua
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
-- numbers
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.number = 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
|
||||||
|
|
||||||
|
vim.opt.list = true
|
||||||
|
vim.opt.listchars:append "eol:↴"
|
||||||
|
|
||||||
|
-- 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 catppuccin")
|
||||||
|
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
vim.opt.cursorcolumn = true
|
||||||
|
vim.cmd[[
|
||||||
|
highlight CursorColumn guibg=none ctermbg=none
|
||||||
|
highlight link CursorColumn CursorLine
|
||||||
|
]]
|
||||||
|
|
||||||
|
-- misc
|
||||||
|
vim.opt.swapfile = false
|
||||||
|
vim.opt.backup = false
|
||||||
|
vim.opt.scrolloff = 8
|
||||||
|
vim.opt.sidescrolloff = 8
|
||||||
|
vim.opt.signcolumn = "yes"
|
||||||
|
vim.opt.isfname:append("@-@")
|
||||||
|
vim.opt.updatetime = 50
|
||||||
|
vim.o.mouse = "a"
|
||||||
|
vim.opt.showmode = false
|
||||||
|
|
||||||
|
vim.o.completeopt = "menuone,noselect"
|
||||||
|
|
||||||
|
-- idfk pls fix nim
|
||||||
|
vim.opt.path = vim.opt.path + "/home/d/.nimble/bin/**"
|
Loading…
Reference in a new issue