summaryrefslogtreecommitdiff
path: root/nvim/lua/config/lazy.lua
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2025-10-12 15:02:06 +0200
committerSkladnayazebra <skladnayazebra@gmail.com>2025-10-12 15:02:06 +0200
commite207122a6487ea7b8a57b6f065397490cfdfd370 (patch)
treedf678222e8429870314872aa0391f80420a03882 /nvim/lua/config/lazy.lua
parent9d3f386d1a096a6af089ccb577cc057fffb09dc7 (diff)
sync with work config
Diffstat (limited to 'nvim/lua/config/lazy.lua')
-rw-r--r--nvim/lua/config/lazy.lua167
1 files changed, 73 insertions, 94 deletions
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua
index d52018e..7547ff5 100644
--- a/nvim/lua/config/lazy.lua
+++ b/nvim/lua/config/lazy.lua
@@ -1,17 +1,17 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
- local lazyrepo = "https://github.com/folke/lazy.nvim.git"
- local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
- if vim.v.shell_error ~= 0 then
- vim.api.nvim_echo({
- { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
- { out, "WarningMsg" },
- { "\nPress any key to exit..." },
- }, true, {})
- vim.fn.getchar()
- os.exit(1)
- end
+ local lazyrepo = "https://github.com/folke/lazy.nvim.git"
+ local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
+ if vim.v.shell_error ~= 0 then
+ vim.api.nvim_echo({
+ { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
+ { out, "WarningMsg" },
+ { "\nPress any key to exit..." },
+ }, true, {})
+ vim.fn.getchar()
+ os.exit(1)
+ end
end
vim.opt.rtp:prepend(lazypath)
@@ -23,94 +23,73 @@ vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
- spec = {
- -- import your plugins
- { "ThePrimeagen/vim-be-good" },
- { "ellisonleao/gruvbox.nvim", priority = 1000 , config = true },
- {
- "pmizio/typescript-tools.nvim",
- dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
- opts = {},
- },
- {
- "ibhagwan/fzf-lua",
- -- optional for icon support
- dependencies = { "nvim-tree/nvim-web-devicons" },
- -- or if using mini.icons/mini.nvim
- -- dependencies = { "nvim-mini/mini.icons" },
- opts = {},
- },
- {
- "kylechui/nvim-surround",
- version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features
- event = "VeryLazy",
- config = function()
- require("nvim-surround").setup({
- -- Configuration here, or leave empty to use defaults
- })
- end
- },
- {
- "saghen/blink.cmp",
- enabled = true,
- -- optional: provides snippets for the snippet source
- dependencies = { "rafamadriz/friendly-snippets" },
+ spec = {
+ -- import your plugins
+ { "ellisonleao/gruvbox.nvim", priority = 1000, config = true },
+ -- Manages LSP stuff
+ { "mason-org/mason.nvim", opts = {} },
+ {
+ "mason-org/mason-lspconfig.nvim",
+ opts = {},
+ dependencies = {
+ { "mason-org/mason.nvim", opts = {} },
+ "neovim/nvim-lspconfig",
+ },
+ },
+ -- Shows git diff info in the gutter
+ { "lewis6991/gitsigns.nvim" },
+ -- Enables motion to comment stuff out
+ -- Line comment: gc{motion} or gcc
+ -- Block comment: gb{motion} or gbc
+ { "numToStr/Comment.nvim" },
+ -- Fuzzy finder
+ {
+ "ibhagwan/fzf-lua",
+ dependencies = { "nvim-tree/nvim-web-devicons" },
+ opts = {},
+ },
- -- use a release tag to download pre-built binaries
- version = "1.*",
- -- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
- -- build = 'cargo build --release',
- -- If you use nix, you can build from source using latest nightly rust with:
- -- build = 'nix run .#build-plugin',
+ {
+ -- Wrap: ys{motion}{char}
+ -- Unwrap: ds{motion}{char}
+ -- Replace: cs{motion}{char}
+ "kylechui/nvim-surround",
+ version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features
+ event = "VeryLazy",
+ config = function()
+ require("nvim-surround").setup({})
+ end
+ },
+ {
+ "saghen/blink.cmp",
+ enabled = false,
+ -- disabled by default, used only in TypeScript
+ ft = { 'ts' },
+ dependencies = { "rafamadriz/friendly-snippets" },
- ---@module 'blink.cmp'
- ---@type blink.cmp.Config
- opts = {
- -- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
- -- 'super-tab' for mappings similar to vscode (tab to accept)
- -- 'enter' for enter to accept
- -- 'none' for no mappings
- --
- -- All presets have the following mappings:
- -- C-space: Open menu or open docs if already open
- -- C-n/C-p or Up/Down: Select next/previous item
- -- C-e: Hide menu
- -- C-k: Toggle signature help (if signature.enabled = true)
- --
- -- See :h blink-cmp-config-keymap for defining your own keymap
- keymap = { preset = "default" },
+ -- use a release tag to download pre-built binaries
+ version = "1.*",
+ opts = {
+ keymap = { preset = "default" },
- appearance = {
- -- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
- -- Adjusts spacing to ensure icons are aligned
- nerd_font_variant = "mono",
- },
+ appearance = {
+ nerd_font_variant = "mono",
+ },
- -- (Default) Only show the documentation popup when manually triggered
- completion = {
- documentation = { auto_show = false },
- menu = { auto_show = false }
- },
+ completion = {
+ documentation = { auto_show = false },
+ menu = { auto_show = false },
+ },
- -- 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" },
- },
+ sources = {
+ default = { "lsp", "path", "snippets", "buffer" },
+ },
- -- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
- -- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
- -- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
- --
- -- See the fuzzy documentation for more information
- fuzzy = { implementation = "prefer_rust_with_warning" },
+ fuzzy = { implementation = "prefer_rust_with_warning" },
+ },
+ opts_extend = { "sources.default" },
},
- opts_extend = { "sources.default" },
- }
- },
- -- Configure any other settings here. See the documentation for more details.
- -- colorscheme that will be used when installing plugins.
- install = { colorscheme = { "gruvbox" } },
- -- automatically check for plugin updates
- checker = { enabled = true },
+ },
+ install = { colorscheme = { "gruvbox" } },
+ checker = { enabled = true },
})