Change a lot of stuff
This commit is contained in:
parent
f39f45f415
commit
80c8732d93
@ -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,6 +57,12 @@ return {
|
||||
"--query-driver=/usr/bin/*gcc",
|
||||
"--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)
|
||||
local normal = require("lspconfig.util").root_pattern(".git")(vim.fn.getcwd())
|
||||
if normal then
|
||||
|
||||
@ -21,8 +21,8 @@ return {
|
||||
evaluate_template_modifiers = true,
|
||||
received_problems_prompt_path = false,
|
||||
compile_command = {
|
||||
c = { exec = "gcc", args = { "-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" } },
|
||||
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -38,6 +38,7 @@ return {
|
||||
require("nvim-treesitter.configs").setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false
|
||||
},
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
|
||||
@ -1,8 +1,14 @@
|
||||
/* 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user