add marksman and diagnostics float
This commit is contained in:
parent
5e4d24cb2f
commit
e4e2c23eab
29
init.lua
29
init.lua
|
@ -430,7 +430,9 @@ local servers = {
|
|||
-- pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- tsserver = {},
|
||||
|
||||
--'marksman',
|
||||
--'clangd',
|
||||
marksman = {},
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
|
@ -511,5 +513,30 @@ cmp.setup {
|
|||
},
|
||||
}
|
||||
|
||||
-- Confgiure the way that diagnostics look
|
||||
|
||||
local diagconfig = {
|
||||
-- disable virtual text
|
||||
virtual_text = false,
|
||||
-- show signs
|
||||
signs = true,
|
||||
update_in_insert = true,
|
||||
underline = true,
|
||||
severity_sort = true,
|
||||
float = {
|
||||
focusable = false,
|
||||
style = "minimal",
|
||||
border = "rounded",
|
||||
source = "always",
|
||||
header = "",
|
||||
--prefix = "",
|
||||
},
|
||||
}
|
||||
|
||||
-- vim.opt.termguicolors = true
|
||||
-- require("bufferline").setup{}
|
||||
|
||||
vim.diagnostic.config(diagconfig)
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
Loading…
Reference in New Issue