Skip to content

Commit

Permalink
drop: typescript-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Mar 18, 2024
1 parent b189522 commit df025c9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 45 deletions.
6 changes: 0 additions & 6 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,6 @@
"rev": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4",
"type": "git"
},
"typescript-tools.nvim": {
"branch": "master",
"repo": "[email protected]:pmizio/typescript-tools.nvim",
"rev": "c43d9580c3ff5999a1eabca849f807ab33787ea7",
"type": "git"
},
"vim-abolish": {
"branch": "master",
"repo": "[email protected]:tpope/vim-abolish",
Expand Down
37 changes: 1 addition & 36 deletions plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ return function()
},
}
local simple_servers =
{ "biome", "cmake", "graphql", "hls", "marksman", "nil_ls", "prismals", "pyright", "ruff_lsp", "zls" }
{ "biome", "cmake", "graphql", "hls", "marksman", "nil_ls", "prismals", "pyright", "ruff_lsp", "tsserver", "zls" }
for _, name in ipairs(simple_servers) do
lspconfig[name].setup {
on_init = on_init,
Expand Down Expand Up @@ -376,41 +376,6 @@ return function()
}
end

-- lspconfig.tsserver.setup {
-- on_init = on_init,
-- on_attach = on_attach,
-- capabilities = updated_capabilities,
-- settings = {
-- javascript = {
-- inlayHints = {
-- includeInlayEnumMemberValueHints = true,
-- includeInlayFunctionLikeReturnTypeHints = true,
-- includeInlayFunctionParameterTypeHints = true,
-- includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all';
-- includeInlayParameterNameHintsWhenArgumentMatchesName = true,
-- includeInlayPropertyDeclarationTypeHints = true,
-- includeInlayVariableTypeHints = true,
-- },
-- },
-- typescript = {
-- inlayHints = {
-- includeInlayEnumMemberValueHints = true,
-- includeInlayFunctionLikeReturnTypeHints = true,
-- includeInlayFunctionParameterTypeHints = true,
-- includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all';
-- includeInlayParameterNameHintsWhenArgumentMatchesName = true,
-- includeInlayPropertyDeclarationTypeHints = true,
-- includeInlayVariableTypeHints = true,
-- },
-- },
-- },
-- }
require("typescript-tools").setup {
on_init = on_init,
on_attach = on_attach,
capabilities = updated_capabilities,
}

lspconfig.yamlls.setup {
on_init = on_init,
on_attach = on_attach,
Expand Down
3 changes: 0 additions & 3 deletions plugins/spec.nix
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,6 @@ in rec {
schemastore = {
src = sources."SchemaStore.nvim";
};
typescript-tools = {
src = sources."typescript-tools.nvim";
};
};
paths = with pkgs; [
alejandra # used by nil for formatting
Expand Down

0 comments on commit df025c9

Please sign in to comment.