From 605216bcbba7eefdd8d1254d16ee887dae3ed1d8 Mon Sep 17 00:00:00 2001 From: Amanda Graven Date: Thu, 22 Jun 2023 20:46:31 +0200 Subject: [PATCH] typescript-tools, diagnostic signs --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index df7b7ad..ff3cfba 100644 --- a/init.lua +++ b/init.lua @@ -196,6 +196,10 @@ vim.diagnostic.config { severity = { min = vim.diagnostic.severity.WARN } } } +fn.sign_define('DiagnosticSignInfo', { text = '', texthl = 'DiagnosticSignInfo' }) +fn.sign_define('DiagnosticSignHint', { text = '', texthl = 'DiagnosticSignHint' }) +fn.sign_define('DiagnosticSignWarn', { text = '', texthl = 'DiagnosticSignWarn' }) +fn.sign_define('DiagnosticSignError', { text = '', texthl = 'DiagnosticSignError' }) -- netrw -- Set special URL handler @@ -295,6 +299,7 @@ require'packer'.startup(function(use) use 'nanotee/sqls.nvim' use 'mfussenegger/nvim-jdtls' use 'simrat39/rust-tools.nvim' + use 'pmizio/typescript-tools.nvim' use {'jose-elias-alvarez/null-ls.nvim', requires = {'nvim-lua/plenary.nvim'}, config = function () local null_ls = require'null-ls' null_ls.setup { @@ -571,6 +576,7 @@ require'packer'.startup(function(use) b = {'Telescope buffers', 'Buffers'}, e = {'Telescope diagnostics', 'Diagnostics'}, h = {'Telescope help_tags', 'Help page'}, + o = {'Telescope options', 'Options'}, p = {'Telescope project', 'Projects'}, s = {'Telescope lsp_dynamic_workspace_symbols', 'Symbols'}, S = {'Telescope lsp_document_symbols', 'Symbols - current file'}, @@ -992,7 +998,7 @@ au('FileType', { } end, }) -require'lspconfig'.tsserver.setup(default) +require'typescript-tools'.setup(default) require'lspconfig'.vimls.setup(default) -- Completion menu bahevior