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()
|
config = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
float = {
|
virtual_text = false
|
||||||
border = "rounded",
|
|
||||||
},
|
|
||||||
virtual_text = false,
|
|
||||||
virtual_lines = {
|
|
||||||
only_current_line = true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
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", "<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_prev, opts)
|
||||||
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts)
|
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts)
|
||||||
|
@ -65,6 +62,11 @@ return {
|
||||||
lspconfig.tinymist.setup({
|
lspconfig.tinymist.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
formatterMode = "typstyle",
|
||||||
|
exportPdf = "onType",
|
||||||
|
semanticTokens = "disable"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
lspconfig.elixirls.setup({
|
lspconfig.elixirls.setup({
|
||||||
|
@ -73,7 +75,7 @@ return {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
||||||
lspconfig.pyright.setup({
|
lspconfig.basedpyright.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue