diff --git a/lua/plugins.lua b/lua/plugins.lua index 43731a4..f4a7e8b 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -83,7 +83,7 @@ require("lazy").setup({ -- Default list of enabled providers defined so that you can extend it -- elsewhere in your config, without redefining it, due to `opts_extend` sources = { - default = { 'lsp', 'path', 'snippets', 'buffer', 'orgmode' }, + default = { 'lsp', 'path', 'snippets', 'buffer', 'orgmode', 'lazydev' }, -- per_filetype = { -- org = { 'orgmode' } -- }, @@ -95,6 +95,13 @@ require("lazy").setup({ fallbacks = { 'lsp', 'path', 'snippets', 'buffer' }, -- fallbacks = { 'buffer' }, }, + + lazydev = { + name = "LazyDev", + module = "lazydev.integrations.blink", + -- make lazydev completions top priority (see `:h blink.cmp`) + score_offset = 100, + }, }, }, @@ -560,5 +567,19 @@ require("lazy").setup({ } }, + -- improve neovim configuration file editing + { + "folke/lazydev.nvim", + ft = "lua", -- only load on lua files + opts = { + library = { + -- See the configuration section for more details + -- Load luvit types when the `vim.uv` word is found + { path = "${3rd}/luv/library", words = { "vim%.uv" } }, + }, + }, + }, + + -- new plugins BEFORE here })