Nvim: replace neodev with lazydev

This commit is contained in:
Robert Kmieć
2024-06-06 22:51:44 +02:00
parent 14cf97683d
commit 0daaf4add5
2 changed files with 25 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
return {
{
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- See the configuration section for more details
-- Load luvit types when the `vim.uv` word is found
{ path = "luvit-meta/library", words = { "vim%.uv" } },
},
},
},
{ "Bilal2453/luvit-meta", lazy = true }, -- optional `vim.uv` typings
{ -- optional completion source for require statements and module annotations
"hrsh7th/nvim-cmp",
opts = function(_, opts)
opts.sources = opts.sources or {}
table.insert(opts.sources, {
name = "lazydev",
group_index = 0, -- set group index to 0 to skip loading LuaLS completions
})
end,
},
-- { "folke/neodev.nvim", enabled = false }, -- make sure to uninstall or disable neodev.nvim
}

View File

@@ -5,13 +5,9 @@ return {
-- "SmiteshP/nvim-navbuddy", -- "SmiteshP/nvim-navbuddy",
"jubnzv/virtual-types.nvim", "jubnzv/virtual-types.nvim",
--"ray-x/lsp_signature.nvim", --"ray-x/lsp_signature.nvim",
"folke/neodev.nvim",
{url = "http://git.sr.ht/~p00f/clangd_extensions.nvim"}, {url = "http://git.sr.ht/~p00f/clangd_extensions.nvim"},
}, },
config = function() config = function()
require("neodev").setup({
library = { plugins = { "nvim-dap-ui" }, types = true },
})
local nvim_lsp = require('lspconfig') local nvim_lsp = require('lspconfig')
require('clangd_extensions').setup({ require('clangd_extensions').setup({
inlay_hints = { inlay_hints = {