nvim python 100 linewidth + ignore-magic-comma

This commit is contained in:
Henrik Bakken
2024-01-24 20:10:39 +01:00
parent 79886088ea
commit cc7f93e2f6
+3 -5
View File
@@ -158,8 +158,6 @@ require("lazy").setup({
map({ "n", "x" }, "g#", [[<Plug>(asterisk-gz#)<Cmd>lua require('hlslens').start()<CR>]], {}) map({ "n", "x" }, "g#", [[<Plug>(asterisk-gz#)<Cmd>lua require('hlslens').start()<CR>]], {})
map({ "n", "x" }, "n", [[n<Cmd>lua require('hlslens').start()<CR>]], kopts) map({ "n", "x" }, "n", [[n<Cmd>lua require('hlslens').start()<CR>]], kopts)
map({ "n", "x" }, "N", [[N<Cmd>lua require('hlslens').start()<CR>]], kopts) map({ "n", "x" }, "N", [[N<Cmd>lua require('hlslens').start()<CR>]], kopts)
map({ "n", "x" }, "m", "nzz", kopts)
map({ "n", "x" }, "M", "Nzz", kopts)
end, end,
}, },
{ {
@@ -591,14 +589,14 @@ require("lazy").setup({
function() function()
return { return {
exe = "black", exe = "black",
args = { "--quiet", "-" }, args = { "--quiet", "-C", "--line-length", "100", "-" },
stdin = true, stdin = true,
} }
end, end,
function() function()
return { return {
exe = "blackdoc", exe = "blackdoc",
args = { "-q", "-t py311" }, args = { "-q", "--line-length", "100", "-t py311" },
stdin = false, stdin = false,
} }
end, end,
@@ -837,7 +835,7 @@ vim.o.number = false
vim.o.relativenumber = false vim.o.relativenumber = false
vim.o.cursorline = false vim.o.cursorline = false
vim.o.switchbuf = "useopen" -- Use existing window if buffer is already open vim.o.switchbuf = "useopen" -- Use existing window if buffer is already open
vim.o.colorcolumn = "88" vim.o.colorcolumn = "100"
-- diffs -- diffs
vim.o.diffopt = "internal,filler,closeoff,hiddenoff,vertical,algorithm:patience" vim.o.diffopt = "internal,filler,closeoff,hiddenoff,vertical,algorithm:patience"