mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
22 lines
603 B
Lua
22 lines
603 B
Lua
local mylsp = require("lsp")
|
|
local capabilities = mylsp.capabilities
|
|
local on_attach = mylsp.on_attach
|
|
|
|
local metals = require("metals")
|
|
local config = metals.bare_config()
|
|
config.capabilities = capabilities
|
|
|
|
-- I think this is for nix
|
|
config.settings.useGlobalExecutable = true
|
|
|
|
config.on_attach = function(client, bufnr)
|
|
-- local function nnoremap(bind, callback, userargs)
|
|
-- local args = userargs or {}
|
|
-- args.buffer = bufnr
|
|
-- vim.keymap.set("n", bind, callback, args)
|
|
-- end
|
|
-- nnoremap("<leader>ws", metals.hover_worksheet)
|
|
|
|
on_attach(client, bufnr)
|
|
end
|
|
|