From 017ef3f2758fdd3d8d92c09b83c819bfbb0b950b Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 15 Sep 2024 19:00:26 +0200 Subject: [PATCH] Replaced neodev with lazydev --- lua/taken/plugins/conform.lua | 1 + lua/taken/plugins/lsp/lazydev.lua | 15 +++++++++++++++ lua/taken/plugins/lsp/lspconfig.lua | 16 ---------------- lua/taken/plugins/obsidian.lua | 1 + lua/taken/plugins/tmux.lua | 1 + lua/taken/plugins/trouble.lua | 1 + 6 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 lua/taken/plugins/lsp/lazydev.lua diff --git a/lua/taken/plugins/conform.lua b/lua/taken/plugins/conform.lua index 9876877..f39d4f9 100644 --- a/lua/taken/plugins/conform.lua +++ b/lua/taken/plugins/conform.lua @@ -1,3 +1,4 @@ +--- @type LazyPluginSpec return { "stevearc/conform.nvim", event = { "BufReadPre", "BufNewFile" }, diff --git a/lua/taken/plugins/lsp/lazydev.lua b/lua/taken/plugins/lsp/lazydev.lua new file mode 100644 index 0000000..485da90 --- /dev/null +++ b/lua/taken/plugins/lsp/lazydev.lua @@ -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, +} diff --git a/lua/taken/plugins/lsp/lspconfig.lua b/lua/taken/plugins/lsp/lspconfig.lua index 2fca3a9..61bc4b2 100644 --- a/lua/taken/plugins/lsp/lspconfig.lua +++ b/lua/taken/plugins/lsp/lspconfig.lua @@ -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 diff --git a/lua/taken/plugins/obsidian.lua b/lua/taken/plugins/obsidian.lua index 74e63cb..dc04f7e 100644 --- a/lua/taken/plugins/obsidian.lua +++ b/lua/taken/plugins/obsidian.lua @@ -1,3 +1,4 @@ +--- @type LazyPluginSpec return { "epwalsh/obsidian.nvim", version = "*", diff --git a/lua/taken/plugins/tmux.lua b/lua/taken/plugins/tmux.lua index 9434715..c7d46ea 100644 --- a/lua/taken/plugins/tmux.lua +++ b/lua/taken/plugins/tmux.lua @@ -1,3 +1,4 @@ +--- @type LazyPluginSpec return { "christoomey/vim-tmux-navigator", cmd = { diff --git a/lua/taken/plugins/trouble.lua b/lua/taken/plugins/trouble.lua index dec7420..e23a1d1 100644 --- a/lua/taken/plugins/trouble.lua +++ b/lua/taken/plugins/trouble.lua @@ -1,3 +1,4 @@ +--- @type LazyPluginSpec return { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" },