my neovim config, who would've thought
at main 1.5 kB view raw
1---@type LazySpec 2return { 3 "b0o/schemastore.nvim", 4 { 5 "j-hui/fidget.nvim", 6 event = "LspAttach", 7 opts = { 8 progress = { 9 display = { 10 render_limit = 2, 11 done_ttl = 2, 12 }, 13 }, 14 }, 15 }, 16 { 17 "folke/lazydev.nvim", 18 ft = "lua", 19 cmd = "LazyDev", 20 ---@module "lazydev" 21 ---@type lazydev.Config 22 ---@diagnostic disable-next-line: missing-fields 23 opts = { 24 library = { 25 { path = "${3rd}/luv/library", words = { "vim%.uv" } }, 26 { path = "mini.nvim", words = { "MiniAI", "MiniTest" } }, 27 { path = "snacks.nvim", words = { "Snacks" } }, 28 "lazy.nvim", 29 }, 30 }, 31 }, 32 { 33 "nvimtools/none-ls.nvim", 34 event = { "BufReadPre", "BufNewFile" }, 35 config = function() 36 local null_ls = require "null-ls" 37 local formatting = null_ls.builtins.formatting 38 local diagnostic = null_ls.builtins.diagnostics 39 40 null_ls.setup { 41 sources = { 42 formatting.pg_format, 43 diagnostic.codespell.with { 44 args = { 45 "--ignore-words", 46 vim.env.HOME .. "/.config/codespell-ignore.txt", 47 "-", 48 }, 49 }, 50 51 formatting.stylua, 52 diagnostic.selene.with { 53 condition = function(utils) 54 return utils.root_has_file "selene.toml" 55 end, 56 }, 57 58 formatting.goimports, 59 formatting.golines, 60 }, 61 } 62 end, 63 }, 64}