Refine neodev config
This commit is contained in:
parent
e838e78ad8
commit
d9372d30bb
|
@ -8,16 +8,6 @@ return {
|
|||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
-- Extended functionality for jdtls
|
||||
"mfussenegger/nvim-jdtls",
|
||||
-- Neovim setup for init.lua and plugin development with full signature help, docs and completion for the nvim lua API.
|
||||
{
|
||||
"folke/neodev.nvim",
|
||||
opts = {
|
||||
override = function(_, library)
|
||||
library.enabled = true
|
||||
library.plugins = true
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
|
|
14
home/.config/nvim/lua/plugins/neodev.lua
Normal file
14
home/.config/nvim/lua/plugins/neodev.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
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,
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue