mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-05 19:02:24 +00:00
asdf
This commit is contained in:
parent
8063a673f2
commit
029fc44270
3 changed files with 2 additions and 347 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -23,3 +23,4 @@ __pycache__
|
|||
files/.xmonad/xmonad
|
||||
files/.xmonad/xmonad-contrib
|
||||
files/.xmonad/xmonad-x86_64-linux
|
||||
files/.config/nvim/plugin
|
||||
|
|
|
@ -45,6 +45,6 @@ do
|
|||
local function _2_(cnt, lvl, diagnostics_dict)
|
||||
return (" (" .. cnt .. ")")
|
||||
end
|
||||
bufferline.setup({highlights = {background = visible, buffer_selected = selected, buffer_visible = visible, error = visible, error_selected = selected, error_visible = selected, fill = {guibg = colors.bright_red, guifg = colors.light0}, indicator_selected = {guibg = colors.neutral_aqua, guifg = colors.neutral_aqua}, modified = visible, modified_selected = selected, modified_visible = visible, pick_selected = {guibg = colors.bright_red, guifg = colors.bright_red}, separator = visible, tab = {guibg = colors.bright_yellow, guifg = colors.bright_yellow}, tab_selected = {guibg = colors.bright_green, guifg = colors.bright_green}, warning = visible, warning_selected = selected, warning_visible = visible}, options = {diagnostics = "nvim_lsp", diagnostics_indicator = _2_, enforce_regular_tabs = false, show_buffer_close_icons = false, show_close_icon = false, show_tab_indicators = false, tab_size = 10}})
|
||||
bufferline.setup({highlights = {background = visible, buffer_selected = selected, buffer_visible = visible, error = visible, error_selected = selected, error_visible = selected, fill = {guibg = colors.dark0, guifg = colors.light0}, indicator_selected = {guibg = colors.neutral_aqua, guifg = colors.neutral_aqua}, modified = visible, modified_selected = selected, modified_visible = visible, pick_selected = {guibg = colors.bright_red, guifg = colors.bright_red}, separator = visible, tab = {guibg = colors.bright_yellow, guifg = colors.bright_yellow}, tab_selected = {guibg = colors.bright_green, guifg = colors.bright_green}, warning = visible, warning_selected = selected, warning_visible = visible}, options = {diagnostics = "nvim_lsp", diagnostics_indicator = _2_, enforce_regular_tabs = false, show_buffer_close_icons = false, show_close_icon = false, show_tab_indicators = false, tab_size = 10}})
|
||||
end
|
||||
return utils.highlight("BufferLineInfoSelected", {bg = colors.neutral_aqua, fg = colors.dark0, gui = "NONE"})
|
|
@ -1,346 +0,0 @@
|
|||
" Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if !has('nvim-0.5')
|
||||
echohl WarningMsg
|
||||
echom "Invalid Neovim version for packer.nvim!"
|
||||
echohl None
|
||||
finish
|
||||
endif
|
||||
|
||||
packadd packer.nvim
|
||||
|
||||
try
|
||||
|
||||
lua << END
|
||||
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
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time("Luarocks path setup", true)
|
||||
local package_path_str = "/home/leon/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/leon/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/leon/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/leon/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/home/leon/.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))
|
||||
if not success then
|
||||
print('Error running ' .. component .. ' for ' .. name)
|
||||
error(result)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time("try_loadstring definition", false)
|
||||
time("Defining packer_plugins", true)
|
||||
_G.packer_plugins = {
|
||||
aniseed = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/aniseed"
|
||||
},
|
||||
["any-jump.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/any-jump.vim"
|
||||
},
|
||||
detectindent = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/detectindent"
|
||||
},
|
||||
["editorconfig-vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/editorconfig-vim"
|
||||
},
|
||||
["fennel.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/fennel.vim"
|
||||
},
|
||||
["galaxyline.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/galaxyline.nvim"
|
||||
},
|
||||
["goyo.vim"] = {
|
||||
commands = { "Goyo" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/opt/goyo.vim"
|
||||
},
|
||||
gruvbox = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/gruvbox"
|
||||
},
|
||||
["haskell-vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/haskell-vim"
|
||||
},
|
||||
["lsp-trouble.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/lsp-trouble.nvim"
|
||||
},
|
||||
["lsp_signature.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim"
|
||||
},
|
||||
["lspsaga.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/lspsaga.nvim"
|
||||
},
|
||||
["markdown-preview.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim"
|
||||
},
|
||||
nerdcommenter = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nerdcommenter"
|
||||
},
|
||||
["nlua.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nlua.nvim"
|
||||
},
|
||||
["nvim-bqf"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nvim-bqf"
|
||||
},
|
||||
["nvim-bufferline.lua"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nvim-bufferline.lua"
|
||||
},
|
||||
["nvim-compe"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nvim-compe"
|
||||
},
|
||||
["nvim-jqx"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/opt/nvim-jqx"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nvim-lspconfig"
|
||||
},
|
||||
["nvim-lsputils"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nvim-lsputils"
|
||||
},
|
||||
["nvim.lua"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/nvim.lua"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/plenary.nvim"
|
||||
},
|
||||
popfix = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/popfix"
|
||||
},
|
||||
["popup.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/popup.nvim"
|
||||
},
|
||||
["purescript-vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/purescript-vim"
|
||||
},
|
||||
["quick-scope"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/quick-scope"
|
||||
},
|
||||
["rainbow_parentheses.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/rainbow_parentheses.vim"
|
||||
},
|
||||
["rust.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/rust.vim"
|
||||
},
|
||||
["sad.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/sad.vim"
|
||||
},
|
||||
["startuptime.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/startuptime.vim"
|
||||
},
|
||||
["symbols-outline.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim"
|
||||
},
|
||||
tabular = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/tabular"
|
||||
},
|
||||
["targets.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/targets.vim"
|
||||
},
|
||||
["telescope-media-files.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/telescope-media-files.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/telescope.nvim"
|
||||
},
|
||||
["typescript-vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/typescript-vim"
|
||||
},
|
||||
["vim-css-color"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-css-color"
|
||||
},
|
||||
["vim-exchange"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-exchange"
|
||||
},
|
||||
["vim-fugitive"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-fugitive"
|
||||
},
|
||||
["vim-highlightedyank"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-highlightedyank"
|
||||
},
|
||||
["vim-indent-guides"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-indent-guides"
|
||||
},
|
||||
["vim-javascript"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-javascript"
|
||||
},
|
||||
["vim-jsonc"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-jsonc"
|
||||
},
|
||||
["vim-jsx"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-jsx"
|
||||
},
|
||||
["vim-nix"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-nix"
|
||||
},
|
||||
["vim-parinfer"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-parinfer"
|
||||
},
|
||||
["vim-polyglot"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-polyglot"
|
||||
},
|
||||
["vim-raku"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-raku"
|
||||
},
|
||||
["vim-repeat"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-repeat"
|
||||
},
|
||||
["vim-signify"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-signify"
|
||||
},
|
||||
["vim-smoothie"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-smoothie"
|
||||
},
|
||||
["vim-sneak"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-sneak"
|
||||
},
|
||||
["vim-snippets"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-snippets"
|
||||
},
|
||||
["vim-surround"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-surround"
|
||||
},
|
||||
["vim-tmux-navigator"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator"
|
||||
},
|
||||
["vim-tsx"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-tsx"
|
||||
},
|
||||
["vim-visual-multi"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/vim-visual-multi"
|
||||
},
|
||||
["webapi-vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/webapi-vim"
|
||||
},
|
||||
["which-key.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/which-key.nvim"
|
||||
},
|
||||
["yats.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/leon/.local/share/nvim/site/pack/packer/start/yats.vim"
|
||||
}
|
||||
}
|
||||
|
||||
time("Defining packer_plugins", false)
|
||||
|
||||
-- Command lazy-loads
|
||||
time("Defining lazy-load commands", true)
|
||||
vim.cmd [[command! -nargs=* -range -bang -complete=file Goyo lua require("packer.load")({'goyo.vim'}, { cmd = "Goyo", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||||
time("Defining lazy-load commands", false)
|
||||
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Filetype lazy-loads
|
||||
time("Defining lazy-load filetype autocommands", true)
|
||||
vim.cmd [[au FileType json ++once lua require("packer.load")({'nvim-jqx'}, { ft = "json" }, _G.packer_plugins)]]
|
||||
time("Defining lazy-load filetype autocommands", false)
|
||||
vim.cmd("augroup END")
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
END
|
||||
|
||||
catch
|
||||
echohl ErrorMsg
|
||||
echom "Error in packer_compiled: " .. v:exception
|
||||
echom "Please check your config for correctness"
|
||||
echohl None
|
||||
endtry
|
Loading…
Reference in a new issue