update
This commit is contained in:
parent
0e257cc231
commit
f6a1c8640c
5 changed files with 33 additions and 32 deletions
|
|
@ -78,7 +78,7 @@ return {
|
|||
|
||||
-- Send didChangeConfiguration to update the server
|
||||
vim.schedule(function()
|
||||
client.notify("workspace/didChangeConfiguration", { settings = client.settings })
|
||||
client:notify("workspace/didChangeConfiguration", { settings = client.settings })
|
||||
end)
|
||||
end
|
||||
end,
|
||||
|
|
|
|||
|
|
@ -1,22 +1,24 @@
|
|||
return {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
config = function()
|
||||
require("mason-lspconfig").setup({
|
||||
-- mason-lspconfig currently expects the legacy name "tsserver"
|
||||
-- Note: lua_ls installed via system package manager (not Mason)
|
||||
ensure_installed = {
|
||||
"ts_ls",
|
||||
"html",
|
||||
"cssls",
|
||||
"jsonls",
|
||||
"bashls",
|
||||
"marksman",
|
||||
"intelephense",
|
||||
"pyright",
|
||||
"ruff", -- Ruff LSP for Python linting + formatting
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
end,
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"neovim/nvim-lspconfig",
|
||||
},
|
||||
opts = {
|
||||
-- lua_ls is installed through the system package manager.
|
||||
ensure_installed = {
|
||||
"ts_ls",
|
||||
"html",
|
||||
"cssls",
|
||||
"jsonls",
|
||||
"bashls",
|
||||
"marksman",
|
||||
"intelephense",
|
||||
"pyright",
|
||||
"ruff", -- Python linting and code actions
|
||||
},
|
||||
-- lsp.lua owns configuration and activation through vim.lsp.config/enable.
|
||||
automatic_enable = false,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,10 +187,3 @@ function vim.lsp.util.open_floating_preview(contents, syntax, opts, ...)
|
|||
|
||||
return orig_util_open_floating_preview(contents, syntax, opts, ...)
|
||||
end
|
||||
|
||||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
border = border,
|
||||
})
|
||||
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
||||
border = border,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue