Neovim PDE — Plugins and Configuration Recipes
Plugins and configuration recipes to customize a modern development environment with Neovim.
We will go through plugins and configuration recipes to customize a modern development environment with Neovim.
This article is part of the Neovim PDE series.
The Neovim configuration files are available in this repository.
TypeScript
Replace typescript.nvim with typescript-tools.nvim
In the previous configuration, we configure our TypeScript PDE to use typescript.nvim
.
As typescript.nvim
is getting archived, let’s try out typescript-tools.nvim
.
In the lua/pde/typescript.lua
file, we configure the plugin and the keymappings to use the custom user commands.
{
"pmizio/typescript-tools.nvim",
opts = {},
config = function(_, opts)
require("plugins.lsp.utils").on_attach(function(client, bufnr)
if client.name == "tsserver" then
vim.keymap.set("n", "<leader>lo", "<cmd>TSToolsOrganizeImports<cr>", { buffer = bufnr, desc = "Organize Imports" })
vim.keymap.set("n", "<leader>lO", "<cmd>TSToolsSortImports<cr>", { buffer = bufnr, desc =…