From 810a5f84e7bb843fa629873769dc1ffde985d47c Mon Sep 17 00:00:00 2001 From: Mat Jones Date: Tue, 4 Jun 2024 14:16:55 -0400 Subject: [PATCH] feat(nvim): Replace neodev.nvim with lazydev.nvim --- nvim/lua/my/configure/completion.lua | 1 + nvim/lua/my/configure/language-support.lua | 11 ++++++++++- nvim/lua/my/plugins.lua | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/nvim/lua/my/configure/completion.lua b/nvim/lua/my/configure/completion.lua index f092acb6..88fc501f 100644 --- a/nvim/lua/my/configure/completion.lua +++ b/nvim/lua/my/configure/completion.lua @@ -188,6 +188,7 @@ return { sources = { { name = 'luasnip', priority = 100 }, { name = 'nvim_lsp', priority = 90 }, + { name = 'lazydev', group_index = 0 }, { name = 'fish' }, { name = 'path', priority = 5 }, { name = 'buffer', priority = 1 }, diff --git a/nvim/lua/my/configure/language-support.lua b/nvim/lua/my/configure/language-support.lua index 8881e827..3ce7dcc6 100644 --- a/nvim/lua/my/configure/language-support.lua +++ b/nvim/lua/my/configure/language-support.lua @@ -30,11 +30,20 @@ return { require('lint').linters_by_ft = linters_by_ft end, }, + { + 'folke/lazydev.nvim', + ft = 'lua', + dependencies = { 'Bilal2453/luvit-meta' }, + opts = { + library = { + { path = 'luvit-meta/library', words = { 'vim%.uv', 'vim%.loop' } }, + }, + }, + }, { 'neovim/nvim-lspconfig', dependencies = { 'hrsh7th/cmp-nvim-lsp', - { 'folke/neodev.nvim' }, { 'folke/neoconf.nvim', opts = { diff --git a/nvim/lua/my/plugins.lua b/nvim/lua/my/plugins.lua index a6c4f9c4..afa64cad 100644 --- a/nvim/lua/my/plugins.lua +++ b/nvim/lua/my/plugins.lua @@ -16,7 +16,7 @@ require('lazy').setup('my.configure', { }, dev = { path = '~/git', fallback = true }, install = { - colorscheme = { 'onedark_dark', 'habamax' }, + colorscheme = { vim.env.COLORSCHEME or 'tokyonight', 'habamax' }, }, performance = { rtp = {