Skip to content

Commit

Permalink
update typescript language settings
Browse files Browse the repository at this point in the history
  • Loading branch information
valerius21 committed May 6, 2024
1 parent af8078f commit eb52ac1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/custom/plugins/lang/typescript.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ return {
{
'pmizio/typescript-tools.nvim',
dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' },
ft = file_types,
ft = { 'typescript', 'typescriptreact' },
opts = {
settings = {
code_lens = 'off',
expose_as_code_action = { 'fix_all', 'add_missing_imports', 'remove_unused', 'remove_unused_imports' },
},
},
-- TODO: move to autocommand BufWritePre
keys = {
{ '<C-M-o>', '<cmd>TSToolsOrganizeImports<cr>', { desc = 'Organize the imports' } },
},
},
{
'windwp/nvim-ts-autotag',
Expand Down

0 comments on commit eb52ac1

Please sign in to comment.