From aedf8972559abd1fd0c6447c483bd3b48bf1b732 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 25 Nov 2023 13:53:48 +0200 Subject: [PATCH] Move neodev to be mason's dependency This resolves neodev sometimes not working --- home/.config/nvim/lua/plugins/mason.lua | 14 ++++++++++++++ home/.config/nvim/lua/plugins/neodev.lua | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 home/.config/nvim/lua/plugins/neodev.lua diff --git a/home/.config/nvim/lua/plugins/mason.lua b/home/.config/nvim/lua/plugins/mason.lua index a0df4b2c..6e1cedf2 100644 --- a/home/.config/nvim/lua/plugins/mason.lua +++ b/home/.config/nvim/lua/plugins/mason.lua @@ -10,6 +10,20 @@ return { "mfussenegger/nvim-jdtls", -- Add support for LSP file operations { "antosha417/nvim-lsp-file-operations", config = true }, + -- Neovim setup for init.lua and plugin development with full signature help, docs and completion for the nvim lua API. + { + "folke/neodev.nvim", + ---@type LuaDevOptions + opts = { + override = function(root_dir, library) + local dotfiles_path = tostring(vim.fn.expand("~/git/dotfiles")) + if string.find(root_dir, dotfiles_path, 1, true) then + library.enabled = true + library.plugins = true + end + end, + }, + }, }, config = function() require("mason").setup() diff --git a/home/.config/nvim/lua/plugins/neodev.lua b/home/.config/nvim/lua/plugins/neodev.lua deleted file mode 100644 index e6532e8c..00000000 --- a/home/.config/nvim/lua/plugins/neodev.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - -- Neovim setup for init.lua and plugin development with full signature help, docs and completion for the nvim lua API. - "folke/neodev.nvim", - ---@type LuaDevOptions - opts = { - override = function(root_dir, library) - local dotfiles_path = tostring(vim.fn.expand("~/git/dotfiles")) - if string.find(root_dir, dotfiles_path, 1, true) then - library.enabled = true - library.plugins = true - end - end, - }, -}