chore: Updated autocommands and removed lazydev
a7087fb3
4 file(s) · +9 −52
| 1 | 1 | -- Suppress vim.tbl_islist deprecation warning |
|
| 2 | 2 | local original_deprecate = vim.deprecate |
|
| 3 | - | ---@diagnostic disable-next-line: duplicate-set-field |
|
| 4 | 3 | vim.deprecate = function(name, alternative, version, plugin, backtrace) |
|
| 5 | 4 | if name == "vim.tbl_islist" then |
|
| 6 | 5 | return |
| 1 | 1 | { |
|
| 2 | - | "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, |
|
| 3 | - | "LuaSnip": { "branch": "master", "commit": "3d5bced1b9ae69fa3f9b1942e28af5dbc537f946" }, |
|
| 4 | - | "blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" }, |
|
| 5 | 2 | "darkmatter-nvim": { "branch": "main", "commit": "5663ddc9d8580c0c43b996e01bfe1a335789e9c9" }, |
|
| 6 | - | "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, |
|
| 7 | 3 | "gitsigns.nvim": { "branch": "main", "commit": "b01433169be710d6c69f7b4ee264d9670698b831" }, |
|
| 8 | 4 | "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, |
|
| 9 | - | "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, |
|
| 10 | - | "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" }, |
|
| 11 | 5 | "mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" }, |
|
| 12 | - | "neo-tree.nvim": { "branch": "v3.x", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" }, |
|
| 13 | - | "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, |
|
| 14 | - | "nvim-surround": { "branch": "main", "commit": "7a7a78a52219a3312c1fcabf880cea07a7956a5f" }, |
|
| 15 | 6 | "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, |
|
| 16 | 7 | "nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" }, |
|
| 17 | - | "nvim-web-devicons": { "branch": "master", "commit": "0422a19d9aa3aad2c7e5cca167e5407b13407a9d" }, |
|
| 18 | - | "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, |
|
| 19 | - | "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, |
|
| 20 | 8 | "vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" }, |
|
| 21 | 9 | "vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" } |
|
| 22 | 10 | } |
| 24 | 24 | map("<leader>lr", vim.lsp.buf.rename, "Rename all references") |
|
| 25 | 25 | map("<leader>lf", vim.lsp.buf.format, "Format") |
|
| 26 | 26 | map("<leader>v", "<cmd>vsplit | lua vim.lsp.buf.definition()<cr>", "Goto Definition in Vertical Split") |
|
| 27 | - | map("<leader>d", "<cmd>Telescope diagnostics bufnr=0<CR>", "Open diagnostsics in telescope") |
|
| 28 | 27 | ||
| 29 | 28 | local function client_supports_method(client, method, bufnr) |
|
| 30 | 29 | if vim.fn.has 'nvim-0.11' == 1 then |
|
| 64 | 63 | ||
| 65 | 64 | }) |
|
| 66 | 65 | ||
| 67 | - | -- vim.api.nvim_create_autocmd("VimEnter", { |
|
| 68 | - | -- callback = function() |
|
| 69 | - | -- if vim.fn.argv(0) == "" then |
|
| 70 | - | -- require("telescope.builtin").find_files() |
|
| 71 | - | -- end |
|
| 72 | - | -- end, |
|
| 73 | - | -- }) |
|
| 74 | - | ||
| 66 | + | vim.api.nvim_create_autocmd("VimEnter", { |
|
| 67 | + | callback = function() |
|
| 68 | + | if vim.fn.argv(0) == "" then |
|
| 69 | + | vim.defer_fn(function() |
|
| 70 | + | require("mini.pick").builtin.files() |
|
| 71 | + | end, 100) -- Wait 100ms |
|
| 72 | + | end |
|
| 73 | + | end, |
|
| 74 | + | }) |
|
| 75 | 75 | ||
| 76 | 76 | --[[ require("conform").setup({ |
|
| 77 | 77 | format_on_save = { |
|
| 1 | - | return { |
|
| 2 | - | { |
|
| 3 | - | "folke/lazydev.nvim", |
|
| 4 | - | ft = "lua", -- only load on lua files |
|
| 5 | - | opts = { |
|
| 6 | - | library = { |
|
| 7 | - | -- See the configuration section for more details |
|
| 8 | - | -- Load luvit types when the `vim.uv` word is found |
|
| 9 | - | { path = "${3rd}/luv/library", words = { "vim%.uv" } }, |
|
| 10 | - | }, |
|
| 11 | - | }, |
|
| 12 | - | }, |
|
| 13 | - | { |
|
| 14 | - | "saghen/blink.cmp", |
|
| 15 | - | opts = { |
|
| 16 | - | sources = { |
|
| 17 | - | -- add lazydev to your completion providers |
|
| 18 | - | default = { "lazydev", "lsp", "path", "snippets", "buffer" }, |
|
| 19 | - | providers = { |
|
| 20 | - | lazydev = { |
|
| 21 | - | name = "LazyDev", |
|
| 22 | - | module = "lazydev.integrations.blink", |
|
| 23 | - | -- make lazydev completions top priority (see `:h blink.cmp`) |
|
| 24 | - | score_offset = 100, |
|
| 25 | - | }, |
|
| 26 | - | }, |
|
| 27 | - | }, |
|
| 28 | - | }, |
|
| 29 | - | } |
|
| 30 | - | } |