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

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" },

View File

@@ -0,0 +1,15 @@
--- @type LazyPluginSpec
return {
"folke/lazydev.nvim",
dependencies = { "Bilal2453/luvit-meta", lazy = true },
ft = "lua",
config = function()
local layzdev = require("lazydev")
layzdev.setup({
library = {
"lazy.nvim",
{ path = "luvit-meta/library", words = { "vim%.uv" } },
},
})
end,
}

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

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"epwalsh/obsidian.nvim",
version = "*",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"christoomey/vim-tmux-navigator",
cmd = {

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },