aboutsummaryrefslogtreecommitdiff
path: root/config/nvim
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-03-15 10:11:38 +0100
committerKarel Kočí <cynerd@email.cz>2024-03-15 10:11:38 +0100
commit11beeefe36e6a906be0a6864c0cdb6d887901f8e (patch)
treeef5785426bcc5c66a1b3bc8ab88c4430950116c2 /config/nvim
parent763088cc58aff67c6eca2a27948916a5a01d429b (diff)
downloadmyconfigs-11beeefe36e6a906be0a6864c0cdb6d887901f8e.tar.gz
myconfigs-11beeefe36e6a906be0a6864c0cdb6d887901f8e.tar.bz2
myconfigs-11beeefe36e6a906be0a6864c0cdb6d887901f8e.zip
nvim: switch to ruff in python and add typst
Diffstat (limited to 'config/nvim')
-rw-r--r--config/nvim/lua/plugins.lua16
1 files changed, 13 insertions, 3 deletions
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)