lsp aktu
This commit is contained in:
parent
9abb2c1fdc
commit
24fec7586e
1 changed files with 11 additions and 9 deletions
|
@ -9,15 +9,12 @@ return {
|
|||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
vim.diagnostic.config({
|
||||
float = {
|
||||
border = "rounded",
|
||||
},
|
||||
virtual_text = false,
|
||||
virtual_lines = {
|
||||
only_current_line = true,
|
||||
},
|
||||
virtual_text = false
|
||||
})
|
||||
local opts = { noremap = true, silent = true }
|
||||
local opts = {
|
||||
noremap = true,
|
||||
silent = true,
|
||||
}
|
||||
vim.keymap.set("n", "<space>e", vim.diagnostic.open_float, opts)
|
||||
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts)
|
||||
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts)
|
||||
|
@ -65,6 +62,11 @@ return {
|
|||
lspconfig.tinymist.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
formatterMode = "typstyle",
|
||||
exportPdf = "onType",
|
||||
semanticTokens = "disable"
|
||||
}
|
||||
})
|
||||
|
||||
lspconfig.elixirls.setup({
|
||||
|
@ -73,7 +75,7 @@ return {
|
|||
capabilities = capabilities,
|
||||
})
|
||||
|
||||
lspconfig.pyright.setup({
|
||||
lspconfig.basedpyright.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue