Compare commits
10 Commits
4918f2bcee
...
c2ae5fbf3d
| Author | SHA1 | Date | |
|---|---|---|---|
| c2ae5fbf3d | |||
| f3d4395f72 | |||
| 3227957636 | |||
| 83e4097ab7 | |||
| 80c8732d93 | |||
| f39f45f415 | |||
| 82d279e6d8 | |||
| 8728b9c5da | |||
| 40e91c0226 | |||
| 9f55dc2362 |
@ -1,7 +1,7 @@
|
||||
return {
|
||||
"AstroNvim/astrocommunity",
|
||||
|
||||
{ import = "astrocommunity.colorscheme.catppuccin" },
|
||||
-- { import = "astrocommunity.colorscheme.catppuccin" },
|
||||
-- {
|
||||
-- "catppuccin",
|
||||
-- opts = {
|
||||
@ -43,5 +43,7 @@ return {
|
||||
|
||||
{ import = "astrocommunity.lsp.lsp-signature-nvim" },
|
||||
|
||||
{ import = "astrocommunity.syntax.vim-sandwich" }
|
||||
{ import = "astrocommunity.syntax.vim-sandwich" },
|
||||
|
||||
{ import = "astrocommunity.pack.java" }
|
||||
}
|
||||
|
||||
@ -57,7 +57,22 @@ return {
|
||||
"--query-driver=/usr/bin/*gcc",
|
||||
"--function-arg-placeholders=0",
|
||||
},
|
||||
root_dir = require("lspconfig.util").root_pattern(".git") or vim.fn.getcwd(),
|
||||
sqls = {
|
||||
connections = {
|
||||
driver = "postgres",
|
||||
dataSourceName = "host=127.0.0.1 port=5432 user=postgres password=postgres dbname=trabalho sslmode=disable"
|
||||
}
|
||||
},
|
||||
root_dir = function(path)
|
||||
-- local normal = require("lspconfig.util").root_pattern(".git")(vim.fn.getcwd())
|
||||
-- local normal = require("lspconfig.util").root_pattern(".git")(vim.fn.getcwd())
|
||||
local normal = vim.fs.root(vim.fn.getcwd(), { '.git' })
|
||||
if normal then
|
||||
return normal
|
||||
else
|
||||
return vim.fn.getcwd()
|
||||
end
|
||||
end,
|
||||
filetypes = { "cpp", "c" },
|
||||
capabilities = {
|
||||
offsetEncoding = "utf-8",
|
||||
|
||||
10
lua/plugins/codesnap.lua
Normal file
10
lua/plugins/codesnap.lua
Normal file
@ -0,0 +1,10 @@
|
||||
return {
|
||||
"mistricky/codesnap.nvim",
|
||||
build = "make",
|
||||
|
||||
config = function() require("codesnap").setup{
|
||||
-- bg_theme = "grape",
|
||||
bg_padding = 0,
|
||||
has_line_number = true,
|
||||
} end
|
||||
}
|
||||
102
lua/plugins/colorscheme.lua
Normal file
102
lua/plugins/colorscheme.lua
Normal file
@ -0,0 +1,102 @@
|
||||
return {
|
||||
{ "savq/melange-nvim", lazy = true },
|
||||
{ "AlexvZyl/nordic.nvim", lazy = true },
|
||||
{ "xero/miasma.nvim", lazy = true },
|
||||
{ "tiagovla/tokyodark.nvim", lazy = true, opts = { transparent_background = true } },
|
||||
{ "rebelot/kanagawa.nvim", lazy = true, opts = { transparent = false, theme = "wave" } },
|
||||
{ "ellisonleao/gruvbox.nvim", lazy = true, opts = { transparent_mode = true } },
|
||||
{ "catppuccin/nvim", name = "catppuccin", lazy = true, opts = { transparent_background = false, flavour = "mocha" } },
|
||||
{ "folke/tokyonight.nvim", lazy = true, opts = { style = "night", transparent = true } },
|
||||
{
|
||||
"rose-pine/neovim",
|
||||
name = "rose-pine",
|
||||
lazy = true,
|
||||
opts = { styles = { transparency = false } },
|
||||
},
|
||||
-- superior gruvbox variant
|
||||
{
|
||||
"sainnhe/gruvbox-material",
|
||||
lazy = true,
|
||||
config = function()
|
||||
vim.g.gruvbox_material_enable_italic = true
|
||||
vim.g.gruvbox_material_background = "hard"
|
||||
vim.g.gruvbox_material_transparent_background = 1
|
||||
end,
|
||||
},
|
||||
-- custom theme
|
||||
{
|
||||
"bjarneo/aether.nvim",
|
||||
name = "aether",
|
||||
lazy = true,
|
||||
opts = {
|
||||
disable_italics = false,
|
||||
transparent = true,
|
||||
colors = {
|
||||
-- aamis
|
||||
-- base00 = "#0f0f0f",
|
||||
-- base01 = "#5e5959",
|
||||
-- base02 = "#0f0f0f",
|
||||
-- base03 = "#5e5959",
|
||||
-- base04 = "#e6caab",
|
||||
-- base05 = "#eadccc",
|
||||
-- base06 = "#eadccc",
|
||||
-- base07 = "#e6caab",
|
||||
-- base08 = "#e25d6c",
|
||||
-- base09 = "#e9838f",
|
||||
-- base0A = "#f4bb54",
|
||||
-- base0B = "#cea37f",
|
||||
-- base0C = "#e8ab3b",
|
||||
-- base0D = "#e2be8a",
|
||||
-- base0E = "#f66151",
|
||||
-- base0F = "#edb95a",
|
||||
|
||||
-- sakura
|
||||
base00 = "#0d0509",
|
||||
base01 = "#4a3c45",
|
||||
base02 = "#0d0509",
|
||||
base03 = "#8a6a7a",
|
||||
base04 = "#E3C5AB",
|
||||
base05 = "#f0eaed",
|
||||
base06 = "#ffffff",
|
||||
base07 = "#E3C5AB",
|
||||
base08 = "#E85F6F",
|
||||
base09 = "#FF7A8A",
|
||||
base0A = "#D4A882",
|
||||
base0B = "#F29B9A",
|
||||
base0C = "#E8C099",
|
||||
base0D = "#D9A56C",
|
||||
base0E = "#D1B399",
|
||||
base0F = "#FBD2AB",
|
||||
|
||||
-- forest
|
||||
-- base00 = "#020802",
|
||||
-- base01 = "#518a51",
|
||||
-- base02 = "#020802",
|
||||
-- base03 = "#518a51",
|
||||
-- base04 = "#bff2ab",
|
||||
-- base05 = "#fdfffd",
|
||||
-- base06 = "#fdfffd",
|
||||
-- base07 = "#bff2ab",
|
||||
-- base08 = "#bf5a7c",
|
||||
-- base09 = "#dcb0be",
|
||||
-- base0A = "#DFEC63",
|
||||
-- base0B = "#70cf6c",
|
||||
-- base0C = "#9ed8dd",
|
||||
-- base0D = "#62e2a4",
|
||||
-- base0E = "#e0eb7a",
|
||||
-- base0F = "#f6fdb7",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- fav theme (only this will be loaded on startup)
|
||||
{
|
||||
"vague2k/vague.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = { transparent = true },
|
||||
config = function(_, opts)
|
||||
require("vague").setup(opts)
|
||||
vim.cmd.colorscheme "vague"
|
||||
end,
|
||||
},
|
||||
}
|
||||
@ -7,21 +7,22 @@ return {
|
||||
-- c = "~/.config/nvim/templates/template.c"
|
||||
-- }
|
||||
template_file = "~/.config/nvim/templates/template.$(FEXT)",
|
||||
evaluate_template_modifiers = true,
|
||||
received_contests_directory = "/tmp/Competitive Programming/$(JUDGE)/$(CONTEST)",
|
||||
received_problems_path = function(task, extension)
|
||||
local hyphen = string.find(task.group, " %- ")
|
||||
if hyphen == nil then
|
||||
return string.format("%s/%s/%s.%s", vim.fn.getcwd(), task.name, task.name, extension)
|
||||
return string.format("%s/%s/%s.%s", vim.fn.getcwd(), task.name, task.name, extension):gsub("#", " ")
|
||||
else
|
||||
local contest = string.sub(task.group, hyphen + 3)
|
||||
return string.format("%s/%s/%s.%s", vim.fn.getcwd(), contest, task.name, extension)
|
||||
return string.format("%s/%s/%s.%s", vim.fn.getcwd(), contest, task.name, extension):gsub("#", " ")
|
||||
end
|
||||
end,
|
||||
testcases_use_single_file = true,
|
||||
evaluate_template_modifiers = true,
|
||||
received_problems_prompt_path = false,
|
||||
compile_command = {
|
||||
c = { exec = "gcc", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++17", "$(FNAME)", "-o", "$(FNOEXT).out" } },
|
||||
cpp = { exec = "g++", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++17", "$(FNAME)", "-o", "$(FNOEXT).out" } },
|
||||
c = { exec = "gcc", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c23", "$(FNAME)", "-o", "$(FNOEXT).out", "-lm" } },
|
||||
cpp = { exec = "g++", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++20", "$(FNAME)", "-o", "$(FNOEXT).out" } },
|
||||
},
|
||||
run_command = {
|
||||
c = { exec = "./$(FNOEXT).out" },
|
||||
|
||||
24
lua/plugins/java.lua
Normal file
24
lua/plugins/java.lua
Normal file
@ -0,0 +1,24 @@
|
||||
return {
|
||||
"mfussenegger/nvim-jdtls",
|
||||
opts = {
|
||||
settings = {
|
||||
java = {
|
||||
configuration = {
|
||||
runtimes = {
|
||||
{
|
||||
name = "JavaSE-21",
|
||||
path = "/usr/lib/jvm/openjdk-bin-21/",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
format = {
|
||||
enabled = true,
|
||||
settings = { -- you can use your preferred format style
|
||||
url = "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
|
||||
profile = "GoogleStyle",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
4
lua/plugins/magma.lua
Normal file
4
lua/plugins/magma.lua
Normal file
@ -0,0 +1,4 @@
|
||||
return {
|
||||
"dccsillag/magma-nvim",
|
||||
ft = "python"
|
||||
}
|
||||
@ -9,7 +9,8 @@ return {
|
||||
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
|
||||
"lua_ls",
|
||||
"bashls",
|
||||
"pylsp",
|
||||
-- "pylsp"=,
|
||||
"pyright",
|
||||
"cmake",
|
||||
"mesonlsp",
|
||||
"vimls",
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
return {
|
||||
"matveyt/neoclip",
|
||||
lazy = false,
|
||||
enabled = false,
|
||||
config = function(plugin, opts)
|
||||
require("neoclip"):setup()
|
||||
end,
|
||||
|
||||
@ -1,5 +1,12 @@
|
||||
return {
|
||||
{ "rcarriga/nvim-notify", init = false, config = true },
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
init = false,
|
||||
config = true,
|
||||
opts = {
|
||||
background_colour = "#000000"
|
||||
}
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
|
||||
15
lua/plugins/nvim-ts-autotag.lua
Normal file
15
lua/plugins/nvim-ts-autotag.lua
Normal file
@ -0,0 +1,15 @@
|
||||
return {
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
config = function(plugin, opts)
|
||||
require("nvim-ts-autotag").setup({
|
||||
opts = {
|
||||
enable = true,
|
||||
enable_rename = true,
|
||||
enable_close = true,
|
||||
enable_close_on_slash = true,
|
||||
}
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
@ -38,12 +38,7 @@ return {
|
||||
require("nvim-treesitter.configs").setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
enable_rename = true,
|
||||
enable_close = true,
|
||||
enable_close_on_slash = true,
|
||||
additional_vim_regex_highlighting = false
|
||||
},
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
|
||||
BIN
spell/pt.utf-8.spl
Normal file
BIN
spell/pt.utf-8.spl
Normal file
Binary file not shown.
@ -1,16 +1,22 @@
|
||||
/* Problem URL: $(URL) */
|
||||
|
||||
#include <bits/stdc++.h>
|
||||
#include <ext/pb_ds/assoc_container.hpp>
|
||||
#include <ext/pb_ds/tree_policy.hpp>
|
||||
|
||||
using namespace std;
|
||||
using namespace __gnu_pbds;
|
||||
|
||||
template <class T, class comp = less<>>
|
||||
using ordered_set = tree<T, null_type , comp , rb_tree_tag , tree_order_statistics_node_update>;
|
||||
|
||||
#define V vector
|
||||
|
||||
#define rmin(a, b) a = min(a, b)
|
||||
#define rmax(a, b) a = max(a, b)
|
||||
|
||||
#define rep(i, lim) for (size_t i = 0; i < (lim); i++)
|
||||
#define nrep(i, s, lim) for (size_t i = s; i < (lim); i++)
|
||||
#define rep(i, lim) for (int i = 0; i < (lim); i++)
|
||||
#define nrep(i, s, lim) for (int i = s; i < (lim); i++)
|
||||
|
||||
#define repv(i, v) for (auto &i : (v))
|
||||
#define fillv(v) for (auto &itr_ : (v)) { cin >> itr_; }
|
||||
@ -69,10 +75,32 @@ auto operator>>(istream &is, vector<vector<v>> &vec)->istream& {
|
||||
return is;
|
||||
}
|
||||
|
||||
const int oo = INT32_MAX >> 1;
|
||||
const ll OO = INT64_MAX >> 1;
|
||||
|
||||
|
||||
void pre()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#define TEST 1
|
||||
|
||||
void solve()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
ios::sync_with_stdio(false);
|
||||
cin.tie(nullptr);
|
||||
|
||||
pre();
|
||||
|
||||
int t;
|
||||
(TEST && cin >> t) || (t = 1);
|
||||
while (t--) {
|
||||
solve();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user