Rename mason module to lsp, packages/init.lua to lazy.lua

Better describes their usage
This commit is contained in:
Marko Korhonen 2023-11-17 16:53:58 +02:00
parent 6c6ce53837
commit 88da85e368
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ local nvim_local_dir = vim.fn.expand("~/.local/share/nvim")
local lombok_jar = nvim_local_dir .. "/mason/packages/jdtls/lombok.jar"
local project_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t")
local workspace_dir = nvim_local_dir .. "/jdtls-workspaces/" .. project_name
local mason = require("plugins.mason")
local lsp = require("plugins.lsp")
require("jdtls").start_or_attach({
cmd = {
@ -45,8 +45,8 @@ require("jdtls").start_or_attach({
handlers = {
["language/status"] = function() end,
},
capabilities = mason.get_capabilities(),
on_attach = mason.on_attach,
capabilities = lsp.get_capabilities(),
on_attach = lsp.on_attach,
})
function RunJava()

View File

@ -1,4 +1,4 @@
require("settings")
require("neovide")
require("highlight_yank")
require("plugins.init")
require("plugins.lazy")

View File

@ -85,7 +85,7 @@ local plugins = {
-- Package manager for LSP servers, DAP adapters etc.
{
"williamboman/mason.nvim",
config = require("plugins.mason").setup,
config = require("plugins.lsp").setup,
dependencies = {
"neovim/nvim-lspconfig",
"williamboman/mason-lspconfig.nvim",