mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-10-30 09:20:30 +00:00
Rename mason module to lsp, packages/init.lua to lazy.lua
Better describes their usage
This commit is contained in:
parent
6c6ce53837
commit
88da85e368
@ -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()
|
||||
|
@ -1,4 +1,4 @@
|
||||
require("settings")
|
||||
require("neovide")
|
||||
require("highlight_yank")
|
||||
require("plugins.init")
|
||||
require("plugins.lazy")
|
||||
|
@ -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",
|
Loading…
Reference in New Issue
Block a user