feat: add typst dependencies and make conform use isort
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
vim.loader.enable()
|
||||
|
||||
require("options")
|
||||
require("plugins.lsp")
|
||||
require("plugins.completion")
|
||||
|
||||
@@ -33,7 +33,7 @@ require("lz.n").load({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
python = { "isort", "black" },
|
||||
python = { "ruff_fix", "ruff_format", "ruff_organize_imports" },
|
||||
--
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
@@ -46,4 +46,4 @@ require("lz.n").load({
|
||||
})
|
||||
end,
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,9 +6,7 @@ require("lz.n").load({
|
||||
-- Setup typst-preview
|
||||
require("typst-preview").setup({
|
||||
-- Optionally configure things here
|
||||
dependencies_bin = {
|
||||
-- For example, use tinymist as the LSP if that's what you are running
|
||||
},
|
||||
dependencies_bin = require("nix-info").settings.typstPreviewDependencies,
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<leader>tp", "<cmd>TypstPreviewToggle<cr>", { desc = "[T]ypst [P]review Toggle" })
|
||||
|
||||
Reference in New Issue
Block a user