typescript-tools, diagnostic signs

main
Amanda Graven 2023-06-22 20:46:31 +02:00
parent adefe5c331
commit 605216bcbb
Signed by: amanda
GPG Key ID: F747582C5608F4CB
1 changed files with 7 additions and 1 deletions

View File

@ -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 = {'<Cmd>Telescope buffers<CR>', 'Buffers'},
e = {'<Cmd>Telescope diagnostics<CR>', 'Diagnostics'},
h = {'<Cmd>Telescope help_tags<CR>', 'Help page'},
o = {'<Cmd>Telescope options<CR>', 'Options'},
p = {'<Cmd>Telescope project<CR>', 'Projects'},
s = {'<Cmd>Telescope lsp_dynamic_workspace_symbols<CR>', 'Symbols'},
S = {'<Cmd>Telescope lsp_document_symbols<CR>', '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