diff options
| author | Chris <[email protected]> | 2021-07-27 10:50:49 -0400 | 
|---|---|---|
| committer | Chris <[email protected]> | 2021-07-27 10:50:49 -0400 | 
| commit | a82fd81106f8d3266adb162f234b255e7f3b6a23 (patch) | |
| tree | 8eddf50a420f03b3d9122adc58a4cf5dd76ae7e5 /lua/lsp | |
| parent | 908ce4f51a89994908da84acefe7c2cf99cdc6ca (diff) | |
remove ts-tools
Diffstat (limited to 'lua/lsp')
| -rw-r--r-- | lua/lsp/init.lua | 45 | 
1 files changed, 0 insertions, 45 deletions
| diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index 4fac7487..5a0d6c1e 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -231,51 +231,6 @@ function lsp_config.common_capabilities()    return capabilities  end -function lsp_config.tsserver_on_attach(client, _) -  -- lsp_config.common_on_attach(client, bufnr) -  client.resolved_capabilities.document_formatting = false - -  local ts_utils = require "nvim-lsp-ts-utils" - -  -- defaults -  ts_utils.setup { -    debug = false, -    disable_commands = false, -    enable_import_on_completion = false, -    import_all_timeout = 5000, -- ms - -    -- eslint -    eslint_enable_code_actions = true, -    eslint_enable_disable_comments = true, -    -- eslint_bin = lvim.lang.tsserver.linter, -    eslint_config_fallback = nil, -    eslint_enable_diagnostics = true, - -    -- formatting -    enable_formatting = lvim.lang.tsserver.autoformat, -    formatter = lvim.lang.tsserver.formatter.exe, -    formatter_config_fallback = nil, - -    -- parentheses completion -    complete_parens = false, -    signature_help_in_parens = false, - -    -- update imports on file move -    update_imports_on_move = false, -    require_confirmation_on_move = false, -    watch_dir = nil, -  } - -  -- required to fix code action ranges -  ts_utils.setup_client(client) - -  -- TODO: keymap these? -  -- vim.api.nvim_buf_set_keymap(bufnr, "n", "gs", ":TSLspOrganize<CR>", {silent = true}) -  -- vim.api.nvim_buf_set_keymap(bufnr, "n", "qq", ":TSLspFixCurrent<CR>", {silent = true}) -  -- vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", ":TSLspRenameFile<CR>", {silent = true}) -  -- vim.api.nvim_buf_set_keymap(bufnr, "n", "gi", ":TSLspImportAll<CR>", {silent = true}) -end -  require("core.autocmds").define_augroups {    _general_lsp = {      { "FileType", "lspinfo", "nnoremap <silent> <buffer> q :q<CR>" }, | 
