Added more editor features to support Golang, sql and git

This commit is contained in:
2026-01-19 19:31:11 -07:00
parent a9b956e141
commit 3b41bd1552
16 changed files with 184 additions and 46 deletions

View File

@@ -74,6 +74,7 @@ return {
optional = true,
dependencies = {
"kristijanhusak/vim-dadbod-completion",
"nvim-cmp",
},
opts = function(_, opts)
opts.sources = opts.sources or {}

View File

@@ -46,9 +46,9 @@ return {
["markdown.mdx"] = { "prettier" },
-- SQL
sql = { "sql_formatter" },
mysql = { "sql_formatter" },
plsql = { "sql_formatter" },
sql = { "sql_formatter", "sqlfluff", "pg_format" },
mysql = { "sql_formatter", "sqlfluff" },
plsql = { "sql_formatter", "sqlfluff", "pg_format" },
-- Makefile (no formatter - they require tabs)
-- make = {},

15
lua/plugins/git.lua Normal file
View File

@@ -0,0 +1,15 @@
return {
{
"NeogitOrg/neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
},
cmd = "Neogit",
opts = {
integrations = {
diffview = true,
},
},
},
}

View File

@@ -1,10 +0,0 @@
return {
{
"davecheney/profile",
ft = "go",
},
{
"rbong/vim-flog",
cmd = { "Flog" },
},
}

View File

@@ -1,6 +0,0 @@
return {
{
"nvim-neotest/neotest-python",
dependencies = { "nvim-neotest/neotest" },
},
}

View File

@@ -5,15 +5,28 @@ return {
"nvim-neotest/nvim-nio",
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
-- Adapters
"nvim-neotest/neotest-go",
"nvim-neotest/neotest-python",
},
opts = {
adapters = {
require("neotest-go"),
require("neotest-python")({
dap = { justMyCode = false },
}),
},
},
config = function()
require("neotest").setup({
adapters = {
require("neotest-go")({
experimental = {
test_table = true,
},
args = { "-count=1", "-race" },
}),
require("neotest-python")({
dap = { justMyCode = false },
args = { "--disable-warnings", "-q" },
}),
},
})
end,
},
}

View File

@@ -2,7 +2,7 @@ return {
{
"stevearc/overseer.nvim",
opts = {
templates = { "builtin", "user.go", "user.npm" }
templates = { "builtin", "user" }
},
},
}