From 9ebde5fb7959e73ced143d277bc77da1bbb07ec2 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@kateryna)" Date: Sun, 24 Nov 2024 21:50:13 -0500 Subject: [PATCH] Improve nvim configuration --- _home/private_dot_config/nvim/init.lua | 2 +- _home/private_dot_config/nvim/lazy-lock.json | 4 +++- _home/private_dot_config/nvim/lazy/lazy.lua | 11 +++++++++++ .../nvim/lua/custom/plugins/nvim-chezmoi.lua | 6 ++++++ _home/private_dot_config/nvim/lua/lazy-plugins.lua | 5 ++--- 5 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 _home/private_dot_config/nvim/lazy/lazy.lua create mode 100644 _home/private_dot_config/nvim/lua/custom/plugins/nvim-chezmoi.lua diff --git a/_home/private_dot_config/nvim/init.lua b/_home/private_dot_config/nvim/init.lua index 3784c1a..6c6d42b 100644 --- a/_home/private_dot_config/nvim/init.lua +++ b/_home/private_dot_config/nvim/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] require 'options' diff --git a/_home/private_dot_config/nvim/lazy-lock.json b/_home/private_dot_config/nvim/lazy-lock.json index b60dcab..95d6009 100644 --- a/_home/private_dot_config/nvim/lazy-lock.json +++ b/_home/private_dot_config/nvim/lazy-lock.json @@ -6,16 +6,18 @@ "conform.nvim": { "branch": "master", "commit": "1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" }, "fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" }, "gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" }, - "lazy.nvim": { "branch": "main", "commit": "460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" }, + "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, "lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" }, "luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" }, "mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "mini.nvim": { "branch": "main", "commit": "848c5e8f428faf843051768e0d56104cd02aea1f" }, + "nvim-chezmoi": { "branch": "main", "commit": "4ec840d662d8eb1b4714a9852203d51c5b97fe95" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, "nvim-lspconfig": { "branch": "master", "commit": "a9bc587e9ae0cbcb3e90a2e9342f86b3b78c4408" }, "nvim-treesitter": { "branch": "master", "commit": "36b78d112bddd69a05e24679241962e29e494d9e" }, + "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, diff --git a/_home/private_dot_config/nvim/lazy/lazy.lua b/_home/private_dot_config/nvim/lazy/lazy.lua new file mode 100644 index 0000000..b8609d2 --- /dev/null +++ b/_home/private_dot_config/nvim/lazy/lazy.lua @@ -0,0 +1,11 @@ +return { + 'andre-kotake/nvim-chezmoi', + lazy = false, + dependencies = { + { 'nvim-lua/plenary.nvim' }, + }, + opts = {}, + config = function(_, opts) + require('nvim-chezmoi').setup(opts) + end, +} diff --git a/_home/private_dot_config/nvim/lua/custom/plugins/nvim-chezmoi.lua b/_home/private_dot_config/nvim/lua/custom/plugins/nvim-chezmoi.lua new file mode 100644 index 0000000..56d078c --- /dev/null +++ b/_home/private_dot_config/nvim/lua/custom/plugins/nvim-chezmoi.lua @@ -0,0 +1,6 @@ +return { + { + 'andre-kotake/nvim-chezmoi', + }, +} +-- vim: ts=2 sts=2 sw=2 et diff --git a/_home/private_dot_config/nvim/lua/lazy-plugins.lua b/_home/private_dot_config/nvim/lua/lazy-plugins.lua index f601d39..42caff0 100644 --- a/_home/private_dot_config/nvim/lua/lazy-plugins.lua +++ b/_home/private_dot_config/nvim/lua/lazy-plugins.lua @@ -20,7 +20,6 @@ require('lazy').setup({ -- Use `opts = {}` to force a plugin to be loaded. -- - -- modular approach: using `require 'path/name'` will -- include a plugin definition from file lua/path/name.lua @@ -42,7 +41,7 @@ require('lazy').setup({ require 'kickstart/plugins/mini', - require 'kickstart/plugins/treesitter', + -- require 'kickstart/plugins/treesitter', -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the -- init.lua. If you want these files, they are in the repository, so you can just download them and @@ -64,7 +63,7 @@ require('lazy').setup({ -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the