typescript-tools, diagnostic signs

This commit is contained in:
Amanda Graven 2023-06-22 20:46:31 +02:00
parent adefe5c331
commit 605216bcbb
Signed by: amanda
GPG key ID: F747582C5608F4CB

View file

@ -196,6 +196,10 @@ vim.diagnostic.config {
severity = { min = vim.diagnostic.severity.WARN } 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 -- netrw
-- Set special URL handler -- Set special URL handler
@ -295,6 +299,7 @@ require'packer'.startup(function(use)
use 'nanotee/sqls.nvim' use 'nanotee/sqls.nvim'
use 'mfussenegger/nvim-jdtls' use 'mfussenegger/nvim-jdtls'
use 'simrat39/rust-tools.nvim' use 'simrat39/rust-tools.nvim'
use 'pmizio/typescript-tools.nvim'
use {'jose-elias-alvarez/null-ls.nvim', requires = {'nvim-lua/plenary.nvim'}, config = function () use {'jose-elias-alvarez/null-ls.nvim', requires = {'nvim-lua/plenary.nvim'}, config = function ()
local null_ls = require'null-ls' local null_ls = require'null-ls'
null_ls.setup { null_ls.setup {
@ -571,6 +576,7 @@ require'packer'.startup(function(use)
b = {'<Cmd>Telescope buffers<CR>', 'Buffers'}, b = {'<Cmd>Telescope buffers<CR>', 'Buffers'},
e = {'<Cmd>Telescope diagnostics<CR>', 'Diagnostics'}, e = {'<Cmd>Telescope diagnostics<CR>', 'Diagnostics'},
h = {'<Cmd>Telescope help_tags<CR>', 'Help page'}, h = {'<Cmd>Telescope help_tags<CR>', 'Help page'},
o = {'<Cmd>Telescope options<CR>', 'Options'},
p = {'<Cmd>Telescope project<CR>', 'Projects'}, p = {'<Cmd>Telescope project<CR>', 'Projects'},
s = {'<Cmd>Telescope lsp_dynamic_workspace_symbols<CR>', 'Symbols'}, s = {'<Cmd>Telescope lsp_dynamic_workspace_symbols<CR>', 'Symbols'},
S = {'<Cmd>Telescope lsp_document_symbols<CR>', 'Symbols - current file'}, S = {'<Cmd>Telescope lsp_document_symbols<CR>', 'Symbols - current file'},
@ -992,7 +998,7 @@ au('FileType', {
} }
end, end,
}) })
require'lspconfig'.tsserver.setup(default) require'typescript-tools'.setup(default)
require'lspconfig'.vimls.setup(default) require'lspconfig'.vimls.setup(default)
-- Completion menu bahevior -- Completion menu bahevior