nvim fixes

This commit is contained in:
Henrik Bakken
2024-02-07 15:22:42 +01:00
parent d587cb746d
commit a4485dfc3e
+7 -2
View File
@@ -273,6 +273,11 @@ require("lazy").setup({
local map = vim.keymap.set local map = vim.keymap.set
map("", "<leader>gl", "<cmd>vertical Flogsplit -path=%<cr>", {}) map("", "<leader>gl", "<cmd>vertical Flogsplit -path=%<cr>", {})
map("", "<leader>gL", "<cmd>vertical Flogsplit<cr>", {}) map("", "<leader>gL", "<cmd>vertical Flogsplit<cr>", {})
vim.g.flog_permanent_default_opts = {
-- format = "%ad [%h] {%an}%d %s",
format = "%ad [%h]%d %s",
date = "short",
}
end, end,
}, },
{ {
@@ -549,7 +554,7 @@ require("lazy").setup({
end, end,
}, },
{ {
"mhartington/formatter.nvim", "mhartington/formatter.nvim", -- TODO move to conform
-- Utilities for creating configurations -- Utilities for creating configurations
config = function() config = function()
local util = require("formatter.util") local util = require("formatter.util")
@@ -596,7 +601,7 @@ require("lazy").setup({
end, end,
function() function()
return { return {
exe = "black", exe = "black", -- TODO move to ruff
args = { "--quiet", "-C", "--line-length", "100", "-" }, args = { "--quiet", "-C", "--line-length", "100", "-" },
stdin = true, stdin = true,
} }