From 11beeefe36e6a906be0a6864c0cdb6d887901f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 15 Mar 2024 10:11:38 +0100 Subject: nvim: switch to ruff in python and add typst --- config/nvim/lua/plugins.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 6e33f5b..e9421d0 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -97,7 +97,7 @@ require("packer").startup(function(use) lua = { "selene", "editorconfig-checker" }, markdown = { "vale" }, nix = { "statix", "deadnix", "nix", "editorconfig-checker" }, - python = { "pylint", "mypy", "pydocstyle", "editorconfig-checker" }, + python = { "ruff", "mypy", "editorconfig-checker" }, sh = { "shellcheck", "editorconfig-checker" }, } lint.linters.deadnix = { @@ -143,8 +143,9 @@ require("packer").startup(function(use) json = { "jq", "trim_newlines", "twim_whitespace" }, lua = { "stylua", "trim_newlines", "twim_whitespace" }, nix = { "alejandra", "trim_newlines", "twim_whitespace" }, - python = { "isort", "black", "trim_newlines", "twim_whitespace" }, + python = { "ruff_fix", "ruff_format", "trim_newlines", "twim_whitespace" }, sh = { "shfmt", "trim_newlines", "twim_whitespace" }, + typst = { "typstfmt", "trim_newlines", "twim_whitespace" }, yaml = { "yq", "trim_newlines", "twim_whitespace" }, }, }) @@ -154,6 +155,14 @@ require("packer").startup(function(use) use("honza/vim-snippets") use("craigemery/vim-autotag") use("scrooloose/nerdcommenter") + -- Additional integrations ------------------------------------------------- + use({ + "chomosuke/typst-preview.nvim", + tag = "v0.1.*", + run = function() + require("typst-preview").update() + end, + }) -- Movement, format and others --------------------------------------------- use("tpope/vim-surround") use("tpope/vim-repeat") @@ -166,8 +175,9 @@ require("packer").startup(function(use) -- LSP --------------------------------------------------------------------- local lspconfig = require("lspconfig") + lspconfig.bashls.setup({}) lspconfig.clangd.setup({}) lspconfig.nil_ls.setup({}) lspconfig.pylsp.setup({}) - lspconfig.bashls.setup({}) + lspconfig.typst_lsp.setup({}) end) -- cgit v1.2.3