Switch neodev -> lazydev

Mon, 03 Jun 2024 22:22:16 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 03 Jun 2024 22:22:16 -0500
changeset 1174
753971334371
parent 1173
79c1553aa040
child 1175
7907b9c30399

Switch neodev -> lazydev

.config/nvim/lua/plugins/completion.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/plugins/filetype.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/plugins/lsp.lua file | annotate | diff | comparison | revisions
--- a/.config/nvim/lua/plugins/completion.lua
+++ b/.config/nvim/lua/plugins/completion.lua
@@ -7,7 +7,6 @@ return {
       "hrsh7th/cmp-buffer",
       "hrsh7th/cmp-calc",
       "hrsh7th/cmp-nvim-lsp",
-      "hrsh7th/cmp-nvim-lua",
       "hrsh7th/cmp-path",
       "quangnguyen30192/cmp-nvim-tags",
     },
@@ -29,6 +28,7 @@ return {
             vim.snippet.expand(args.body)
           end,
         },
+        ---@diagnostic disable-next-line: missing-fields
         formatting = {
           format = function(entry, vim_item)
             if vim_item.kind == "Text" then
@@ -69,10 +69,13 @@ return {
           end, { "i", "s" }),
         }),
         sources = cmp.config.sources({
+          { name = "lazydev" },
+        }, {
           { name = "nvim_lsp" },
-          { name = "nvim_lua" },
+        }, {
           { name = "buffer", option = { keyword_pattern = [[\k\+]] } },
           { name = "path" },
+        }, {
           { name = "tags" },
           { name = "calc" },
         }),
--- a/.config/nvim/lua/plugins/filetype.lua
+++ b/.config/nvim/lua/plugins/filetype.lua
@@ -39,6 +39,15 @@ return {
     end,
   },
 
+  {
+    "folke/lazydev.nvim",
+    ft = "lua",
+    dependencies = {
+      "Bilal2453/luvit-meta",
+    },
+    opts = { library = { "luvit-meta/library" } },
+  },
+
   { "Shougo/vinarise.vim", cmd = "Vinarise" },
   "asciidoc/vim-asciidoc",
   { "vim-perl/vim-perl", branch = "dev" },
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -8,7 +8,6 @@ return {
     event = { "BufReadPre", "BufNewFile" },
     dependencies = {
       { "williamboman/mason-lspconfig.nvim", config = true },
-      { "folke/neodev.nvim", config = true },
     },
     config = function(_, _)
       local capabilities = require("cmp_nvim_lsp").default_capabilities()
@@ -35,9 +34,6 @@ return {
 
   { "j-hui/fidget.nvim", event = "LspAttach", config = true },
 
-  -- Support pull diagnostics until 0.10
-  { "catlee/pull_diags.nvim", event = "LspAttach", config = true, cond = (vim.fn.has("nvim-0.10") == 0) },
-
   {
     "aznhe21/actions-preview.nvim",
     event = "LspAttach",

mercurial