Change a lot of stuff

This commit is contained in:
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.syntax.vim-sandwich" }
{ import = "astrocommunity.syntax.vim-sandwich" },
{ import = "astrocommunity.pack.java" }
}

View File

@@ -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

View File

@@ -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
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 {
highlight = {
enable = true,
additional_vim_regex_highlighting = false
},
ensure_installed = {
"lua",