diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2025-10-12 15:02:06 +0200 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2025-10-12 15:02:06 +0200 |
| commit | e207122a6487ea7b8a57b6f065397490cfdfd370 (patch) | |
| tree | df678222e8429870314872aa0391f80420a03882 /nvim | |
| parent | 9d3f386d1a096a6af089ccb577cc057fffb09dc7 (diff) | |
sync with work config
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 1 | ||||
| -rw-r--r-- | nvim/lazy-lock.json | 11 | ||||
| -rw-r--r-- | nvim/lua/config/lazy.lua | 167 |
3 files changed, 79 insertions, 100 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 0ac34c8..4f88dff 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -3,6 +3,7 @@ vim.o.background = "dark" vim.o.tabstop = 4 vim.o.shiftwidth = 4 vim.o.ignorecase = true +vim.o.number = true vim.cmd([[colorscheme gruvbox]]) vim.keymap.set('n', '<C-p>', ':FzfLua files<CR>', { silent = true }) diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 81afe6c..3c534a8 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,13 +1,12 @@ { - "blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" }, - "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, + "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "fzf-lua": { "branch": "main", "commit": "db3ccffe79480543d8e0f7b0cac0d9b220f9486e" }, + "gitsigns.nvim": { "branch": "main", "commit": "1ee5c1fd068c81f9dd06483e639c2aa4587dc197" }, "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, "lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "6bdb14f230de0904229ec367b410fb817e59b072" }, + "mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" }, "nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" }, "nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" }, - "nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" }, - "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, - "typescript-tools.nvim": { "branch": "master", "commit": "bf11d98ad5736e1cbc1082ca9a03196d45c701f1" }, - "vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" } + "nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" } } 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 }, }) |
