diff --git a/jrpotter/neovim/default.nix b/jrpotter/neovim/default.nix index aaaa425..f11eea6 100644 --- a/jrpotter/neovim/default.nix +++ b/jrpotter/neovim/default.nix @@ -31,9 +31,11 @@ let nvim-treesitter = { plugin = (pkgs.vimPlugins.nvim-treesitter.withPlugins ( ps: with ps; [ + bash lua nix python + typescript ] )); config = '' @@ -70,6 +72,7 @@ in ./lang/lua.nix ./lang/nix.nix ./lang/python.nix + ./lang/typescript.nix ]; config = { diff --git a/jrpotter/neovim/lang/typescript.nix b/jrpotter/neovim/lang/typescript.nix new file mode 100644 index 0000000..335e703 --- /dev/null +++ b/jrpotter/neovim/lang/typescript.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: +{ + programs.neovim = { + nvim-lspconfig = '' + require('init.lsp').setup(require('lspconfig').tsserver) {} + ''; + + extraPackages = with pkgs; [ + nodePackages.typescript-language-server + ]; + }; +} +