mirror of
https://github.com/m1ngsama/dotfiles.git
synced 2025-12-24 10:51:24 +00:00
Update deprecated LSP server names, fix API calls, and resolve plugin conflicts to improve configuration maintainability and performance. Changes include: - Replace deprecated tsserver with ts_ls in LSP configuration The nvim-lspconfig project renamed tsserver to ts_ls following upstream changes. This update ensures compatibility with current and future versions. - Fix treesitter API call from config to configs The correct API is nvim-treesitter.configs, not .config. This fixes potential runtime errors during treesitter initialization. - Resolve completion plugin conflict between nvim-cmp and blink.cmp Disable nvim-cmp configuration as blink.cmp is already configured and active. Running both completion engines simultaneously causes conflicts and degrades performance. - Replace symbols-outline.nvim with aerial.nvim The symbols-outline plugin is no longer actively maintained. Aerial.nvim provides similar functionality with better performance and active maintenance. - Remove redundant cmdheight setting in options.lua The cmdheight option was set twice. Keep only the modern value of 0 and remove the outdated conditional check for nvim-0.8. - Enable matchparen in disabled_plugins list Modern alternatives like vim-matchup provide better functionality. Disabling the built-in matchparen reduces startup overhead. - Update dashboard header from DEVASLIFE to M1NGSAMA Personalize the neovim startup screen with custom branding. These changes bring the configuration up to date with current best practices, eliminate deprecated APIs, and improve overall performance and maintainability. Signed-off-by: m1ngsama <m1ng@example.com>
87 lines
2.6 KiB
Lua
87 lines
2.6 KiB
Lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
vim.fn.system({
|
|
"git",
|
|
"clone",
|
|
"--filter=blob:none",
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
"--branch=stable", -- latest stable release
|
|
lazypath,
|
|
})
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
require("lazy").setup({
|
|
spec = {
|
|
-- add LazyVim and import its plugins
|
|
{
|
|
"LazyVim/LazyVim",
|
|
import = "lazyvim.plugins",
|
|
opts = {
|
|
colorscheme = "solarized-osaka",
|
|
news = {
|
|
lazyvim = true,
|
|
neovim = true,
|
|
},
|
|
},
|
|
},
|
|
-- import any extras modules here
|
|
{ import = "lazyvim.plugins.extras.linting.eslint" },
|
|
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
|
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
|
{ import = "lazyvim.plugins.extras.lang.json" },
|
|
-- { import = "lazyvim.plugins.extras.lang.markdown" },
|
|
{ import = "lazyvim.plugins.extras.lang.rust" },
|
|
{ import = "lazyvim.plugins.extras.lang.tailwind" },
|
|
-- { import = "lazyvim.plugins.extras.ai.copilot" },
|
|
-- { import = "lazyvim.plugins.extras.dap.core" },
|
|
-- { import = "lazyvim.plugins.extras.vscode" },
|
|
{ import = "lazyvim.plugins.extras.util.mini-hipatterns" },
|
|
-- { import = "lazyvim.plugins.extras.test.core" },
|
|
-- { import = "lazyvim.plugins.extras.coding.yanky" },
|
|
-- { import = "lazyvim.plugins.extras.editor.mini-files" },
|
|
-- { import = "lazyvim.plugins.extras.util.project" },
|
|
{ import = "plugins" },
|
|
},
|
|
defaults = {
|
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
|
lazy = false,
|
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
|
-- have outdated releases, which may break your Neovim install.
|
|
version = false, -- always use the latest git commit
|
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
|
},
|
|
dev = {
|
|
path = "~/.ghq/github.com",
|
|
},
|
|
checker = { enabled = true }, -- automatically check for plugin updates
|
|
performance = {
|
|
cache = {
|
|
enabled = true,
|
|
-- disable_events = {},
|
|
},
|
|
rtp = {
|
|
-- disable some rtp plugins
|
|
disabled_plugins = {
|
|
"gzip",
|
|
-- "matchit",
|
|
"matchparen", -- using vim-matchup or other alternatives
|
|
"netrwPlugin",
|
|
"rplugin",
|
|
"tarPlugin",
|
|
"tohtml",
|
|
"tutor",
|
|
"zipPlugin",
|
|
},
|
|
},
|
|
},
|
|
ui = {
|
|
custom_keys = {
|
|
["<localleader>d"] = function(plugin)
|
|
dd(plugin)
|
|
end,
|
|
},
|
|
},
|
|
debug = false,
|
|
})
|