Skip to content

Commit

Permalink
Fix TS config in neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
miszo committed Oct 30, 2023
1 parent 47a9abc commit 43d39f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
1 change: 1 addition & 0 deletions home/dot_config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" },
"tokyonight.nvim": { "branch": "main", "commit": "f247ee700b569ed43f39320413a13ba9b0aef0db" },
"trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" },
"tsc.nvim": { "branch": "main", "commit": "26d3c9010f3ef78fbecdfc69d901ab8ed89cff6c" },
"typescript.nvim": { "branch": "main", "commit": "4de85ef699d7e6010528dcfbddc2ed4c2c421467" },
"undotree": { "branch": "master", "commit": "170aa9e516b6926e6bddfe21bbf01f2283a00e7d" },
"vim-illuminate": { "branch": "master", "commit": "3bd2ab64b5d63b29e05691e624927e5ebbf0fb86" },
Expand Down
37 changes: 0 additions & 37 deletions home/dot_config/nvim/lua/plugins/typescript.lua
Original file line number Diff line number Diff line change
@@ -1,41 +1,4 @@
return {
{
'neovim/nvim-lspconfig',
dependencies = { 'jose-elias-alvarez/typescript.nvim' },
opts = {
servers = {
tsserver = {
settings = {
typescript = {
inlayHints = {
-- taken from https://github.com/typescript-language-server/typescript-language-server#workspacedidchangeconfiguration
includeInlayEnumMemberValueHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayParameterNameHints = 'all',
includeInlayParameterNameHintsWhenArgumentMatchesName = true, -- false
includeInlayPropertyDeclarationTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = true, -- false
},
},
javascript = {
inlayHints = {
includeInlayEnumMemberValueHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayParameterNameHints = 'all',
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = true,
},
},
},
},
},
},
},
{
'dmmulroy/tsc.nvim',
config = true,
Expand Down

0 comments on commit 43d39f0

Please sign in to comment.