This commit is contained in:
Ray Elliott 2026-10-28 14:58:06 +00:00
commit f6a1c8640c
5 changed files with 33 additions and 32 deletions

View file

@ -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,

View file

@ -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,
},
}

View file

@ -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,
})