fix: remove wrong require call

This commit is contained in:
Alexander Gehrke 2024-05-03 11:51:43 +02:00
parent 80cbab3afb
commit be860e4e6d

View file

@ -1,13 +1,13 @@
return { return {
'scalameta/nvim-metals', "scalameta/nvim-metals",
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', "nvim-lua/plenary.nvim",
'mfussenegger/nvim-dap', "mfussenegger/nvim-dap",
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
}, },
ft = { 'scala', 'sbt' }, ft = { "scala", "sbt" },
config = function() config = function()
local metals_config = require('metals').bare_config() local metals_config = require("metals").bare_config()
metals_config.init_options.statusBarProvider = "on" metals_config.init_options.statusBarProvider = "on"
metals_config.settings = { metals_config.settings = {
showImplicitArguments = true, showImplicitArguments = true,
@ -15,7 +15,6 @@ return {
} }
metals_config.on_attach = function(client, bufnr) metals_config.on_attach = function(client, bufnr)
require("metals").setup_dap() require("metals").setup_dap()
require("my_lsp").on_attach(client, bufnr)
end end
metals_config.capabilities = require("cmp_nvim_lsp").default_capabilities() metals_config.capabilities = require("cmp_nvim_lsp").default_capabilities()
-- Debug settings if you're using nvim-dap -- Debug settings if you're using nvim-dap
@ -40,7 +39,6 @@ return {
}, },
} }
-- Autocmd that will actually be in charging of starting the whole thing -- Autocmd that will actually be in charging of starting the whole thing
local nvim_metals_group = vim.api.nvim_create_augroup("nvim-metals", { clear = true }) local nvim_metals_group = vim.api.nvim_create_augroup("nvim-metals", { clear = true })
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
@ -55,5 +53,5 @@ return {
}) })
return metals_config return metals_config
end end,
} }