First Commit
This commit is contained in:
37
data/lsp_servers/init.lua
Normal file
37
data/lsp_servers/init.lua
Normal file
@ -0,0 +1,37 @@
|
||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||
vim.lsp.diagnostic.on_publish_diagnostics,
|
||||
{
|
||||
underline = true,
|
||||
virtual_text = {
|
||||
prefix = "●",
|
||||
spacing = 2,
|
||||
},
|
||||
update_in_insert = true,
|
||||
severity_sort = true,
|
||||
}
|
||||
)
|
||||
|
||||
vim.fn.sign_define("LspDiagnosticsSignError", {
|
||||
text = "✖",
|
||||
numhl = "LspDiagnosticsDefaultError",
|
||||
})
|
||||
vim.fn.sign_define("LspDiagnosticsSignWarning", {
|
||||
text = "▲",
|
||||
numhl = "LspDiagnosticsDefaultWarning",
|
||||
})
|
||||
vim.fn.sign_define("LspDiagnosticsSignInformation", {
|
||||
text = "●",
|
||||
numhl = "LspDiagnosticsDefaultInformation",
|
||||
})
|
||||
vim.fn.sign_define("LspDiagnosticsSignHint", {
|
||||
text = "✱",
|
||||
numhl = "LspDiagnosticsDefaultHint",
|
||||
})
|
||||
|
||||
require "lsp/bash"
|
||||
require "lsp/css"
|
||||
require "lsp/html"
|
||||
require "lsp/json"
|
||||
require "lsp/typescript"
|
||||
require "lsp/vim"
|
||||
require "lsp/vim"
|
||||
Reference in New Issue
Block a user