Added more editor features to support Golang, sql and git
This commit is contained in:
@@ -74,6 +74,7 @@ return {
|
||||
optional = true,
|
||||
dependencies = {
|
||||
"kristijanhusak/vim-dadbod-completion",
|
||||
"nvim-cmp",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
opts.sources = opts.sources or {}
|
||||
|
||||
@@ -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
15
lua/plugins/git.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
{
|
||||
"NeogitOrg/neogit",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"sindrets/diffview.nvim",
|
||||
},
|
||||
cmd = "Neogit",
|
||||
opts = {
|
||||
integrations = {
|
||||
diffview = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"davecheney/profile",
|
||||
ft = "go",
|
||||
},
|
||||
{
|
||||
"rbong/vim-flog",
|
||||
cmd = { "Flog" },
|
||||
},
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"nvim-neotest/neotest-python",
|
||||
dependencies = { "nvim-neotest/neotest" },
|
||||
},
|
||||
}
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ return {
|
||||
{
|
||||
"stevearc/overseer.nvim",
|
||||
opts = {
|
||||
templates = { "builtin", "user.go", "user.npm" }
|
||||
templates = { "builtin", "user" }
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user