nvim/lua/core/lsp.lua 728 B raw
1
vim.lsp.enable({
2
    "gopls",
3
    "lua_ls",
4
    "tsserver",
5
    "rust-analyzer"
6
})
7
8
vim.diagnostic.config({
9
    virtual_lines = false,
10
    -- virtual_text = true,
11
    underline = true,
12
    update_in_insert = false,
13
    severity_sort = true,
14
    float = {
15
        border = "rounded",
16
        source = true,
17
    },
18
    signs = {
19
        text = {
20
            [vim.diagnostic.severity.ERROR] = "󰅚 ",
21
            [vim.diagnostic.severity.WARN] = "󰀪 ",
22
            [vim.diagnostic.severity.INFO] = "󰋽 ",
23
            [vim.diagnostic.severity.HINT] = "󰌶 ",
24
        },
25
        numhl = {
26
            [vim.diagnostic.severity.ERROR] = "ErrorMsg",
27
            [vim.diagnostic.severity.WARN] = "WarningMsg",
28
        },
29
    },
30
})