fix: load default on_attach callbacks
This commit is contained in:
@@ -370,6 +370,7 @@ function M.setup()
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.config("mesonlsp", {
|
vim.lsp.config("mesonlsp", {
|
||||||
|
on_attach = M.with_defaults("mesonlsp"),
|
||||||
settings = {
|
settings = {
|
||||||
others = {
|
others = {
|
||||||
disableInlayHints = true,
|
disableInlayHints = true,
|
||||||
@@ -378,6 +379,7 @@ function M.setup()
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.config("pyright", {
|
vim.lsp.config("pyright", {
|
||||||
|
on_attach = M.with_defaults("pyright"),
|
||||||
settings = {
|
settings = {
|
||||||
python = {
|
python = {
|
||||||
analysis = {
|
analysis = {
|
||||||
@@ -421,6 +423,7 @@ function M.setup()
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.config("rust_analyzer", {
|
vim.lsp.config("rust_analyzer", {
|
||||||
|
on_attach = M.with_defaults("rust_analyzer"),
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
inlayHints = {
|
inlayHints = {
|
||||||
@@ -439,6 +442,7 @@ function M.setup()
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.config("zls", {
|
vim.lsp.config("zls", {
|
||||||
|
on_attach = M.with_defaults("zls"),
|
||||||
settings = {
|
settings = {
|
||||||
zls = {
|
zls = {
|
||||||
warn_style = true,
|
warn_style = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user