Add typescript language server.

main
Joshua Potter 2023-11-20 08:13:13 -07:00
parent 8dc30efbdf
commit 98aa5d6177
2 changed files with 16 additions and 0 deletions

View File

@ -31,9 +31,11 @@ let
nvim-treesitter = { nvim-treesitter = {
plugin = (pkgs.vimPlugins.nvim-treesitter.withPlugins ( plugin = (pkgs.vimPlugins.nvim-treesitter.withPlugins (
ps: with ps; [ ps: with ps; [
bash
lua lua
nix nix
python python
typescript
] ]
)); ));
config = '' config = ''
@ -70,6 +72,7 @@ in
./lang/lua.nix ./lang/lua.nix
./lang/nix.nix ./lang/nix.nix
./lang/python.nix ./lang/python.nix
./lang/typescript.nix
]; ];
config = { config = {

View File

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
programs.neovim = {
nvim-lspconfig = ''
require('init.lsp').setup(require('lspconfig').tsserver) {}
'';
extraPackages = with pkgs; [
nodePackages.typescript-language-server
];
};
}