Change a lot of stuff

This commit is contained in:
Segcolt 2025-09-05 20:20:58 -03:00
parent f39f45f415
commit 80c8732d93
6 changed files with 42 additions and 3 deletions

View File

@ -43,5 +43,7 @@ return {
{ import = "astrocommunity.lsp.lsp-signature-nvim" }, { import = "astrocommunity.lsp.lsp-signature-nvim" },
{ import = "astrocommunity.syntax.vim-sandwich" } { import = "astrocommunity.syntax.vim-sandwich" },
{ import = "astrocommunity.pack.java" }
} }

View File

@ -57,6 +57,12 @@ return {
"--query-driver=/usr/bin/*gcc", "--query-driver=/usr/bin/*gcc",
"--function-arg-placeholders=0", "--function-arg-placeholders=0",
}, },
sqls = {
connections = {
driver = "postgres",
dataSourceName = "host=127.0.0.1 port=5432 user=postgres password=postgres dbname=trabalho sslmode=disable"
}
},
root_dir = function(path) 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())
if normal then if normal then

View File

@ -21,8 +21,8 @@ return {
evaluate_template_modifiers = true, evaluate_template_modifiers = true,
received_problems_prompt_path = false, received_problems_prompt_path = false,
compile_command = { compile_command = {
c = { exec = "gcc", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c23", "$(FNAME)", "-o", "$(FNOEXT).out", "-lm" } }, c = { exec = "gcc", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c23", "$(FNAME)", "-o", "$(FNOEXT).out", "-lm" } },
cpp = { exec = "g++", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++20", "$(FNAME)", "-o", "$(FNOEXT).out" } }, cpp = { exec = "g++", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++20", "$(FNAME)", "-o", "$(FNOEXT).out" } },
}, },
run_command = { run_command = {
c = { exec = "./$(FNOEXT).out" }, c = { exec = "./$(FNOEXT).out" },

24
lua/plugins/java.lua Normal file
View 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",
},
},
},
},
}

View File

@ -38,6 +38,7 @@ return {
require("nvim-treesitter.configs").setup { require("nvim-treesitter.configs").setup {
highlight = { highlight = {
enable = true, enable = true,
additional_vim_regex_highlighting = false
}, },
ensure_installed = { ensure_installed = {
"lua", "lua",

View File

@ -1,8 +1,14 @@
/* Problem URL: $(URL) */ /* Problem URL: $(URL) */
#include <bits/stdc++.h> #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std; 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 V vector