Replaced neodev with lazydev

This commit is contained in:
2024-09-15 19:00:26 +02:00
parent 89478fac86
commit 017ef3f275
6 changed files with 19 additions and 16 deletions

View File

@@ -3,11 +3,9 @@ return {
"neovim/nvim-lspconfig",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"folke/neodev.nvim",
},
event = { "BufReadPre", "BufNewFile" },
config = function()
local neodev = require("neodev")
local lspconfig = require("lspconfig")
local cmp_nvim_lsp = require("cmp_nvim_lsp")
@@ -20,20 +18,6 @@ return {
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
end
neodev.setup({
library = {
enabled = true,
runtime = true,
types = true,
plugins = {
"lazy.nvim",
},
},
setup_jsonls = false,
lspconfig = true,
pathStrict = true,
})
local defaultLsps = { "html", "cssls", "pyright", "jsonls", "rust_analyzer", "yamlls", "eslint" }
for _, lsp in ipairs(defaultLsps) do