From 9cf8e673778c8976e3662d6aadedce268643dcea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Sun, 26 May 2024 14:00:59 +0200 Subject: [PATCH] 341 current 1970-01-01 01:00:00 23.11.20240522.4639777 6.6.30-rt30 * --- modules/home/shell/neovim.nix | 10 +++++--- modules/home/shell/nvim-lua/community.lua | 24 +++++++++++++++++ modules/home/shell/nvim-lua/lazy_setup.lua | 30 ++++++++++++++++++++++ 3 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 modules/home/shell/nvim-lua/community.lua create mode 100644 modules/home/shell/nvim-lua/lazy_setup.lua diff --git a/modules/home/shell/neovim.nix b/modules/home/shell/neovim.nix index 623dfd7..f799032 100644 --- a/modules/home/shell/neovim.nix +++ b/modules/home/shell/neovim.nix @@ -15,11 +15,13 @@ in { enable = true; defaultEditor = true; plugins = with pkgs.vimPlugins; [ - { - plugin = lazy-nvim; - config = ''require "lazy_setup"''; - } + lazy-nvim ]; + extraLuaConfig = '' + require "lazy_setup" + ''; }; + + home.file.".config/nvim/lua".source = ./nvim-lua; }; } diff --git a/modules/home/shell/nvim-lua/community.lua b/modules/home/shell/nvim-lua/community.lua new file mode 100644 index 0000000..72c4aed --- /dev/null +++ b/modules/home/shell/nvim-lua/community.lua @@ -0,0 +1,24 @@ +return { + "AstroNvim/astrocommunity", + { import = "astrocommunity.pack.bash" }, + { import = "astrocommunity.pack.cmake" }, + { import = "astrocommunity.pack.cpp" }, + { import = "astrocommunity.pack.docker" }, + { import = "astrocommunity.pack.html-css" }, + { import = "astrocommunity.pack.json" }, + { import = "astrocommunity.pack.lua" }, + { import = "astrocommunity.pack.markdown" }, + { import = "astrocommunity.pack.nix" }, + { import = "astrocommunity.pack.python" }, + { import = "astrocommunity.pack.rust" }, + { import = "astrocommunity.pack.toml" }, + { import = "astrocommunity.pack.yaml" }, + { import = "astrocommunity.git.git-blame-nvim" }, + { import = "astrocommunity.markdown-and-latex.vimtex" }, + { import = "astrocommunity.lsp.lsp-inlayhints-nvim" }, + { import = "astrocommunity.lsp.lsp-lens-nvim" }, + { import = "astrocommunity.lsp.lsp-signature-nvim" }, + { import = "astrocommunity.lsp.nvim-lsp-file-operations" }, + { import = "astrocommunity.bars-and-lines.vim-illuminate" }, +} + diff --git a/modules/home/shell/nvim-lua/lazy_setup.lua b/modules/home/shell/nvim-lua/lazy_setup.lua new file mode 100644 index 0000000..1898100 --- /dev/null +++ b/modules/home/shell/nvim-lua/lazy_setup.lua @@ -0,0 +1,30 @@ +require("lazy").setup({ + { + "AstroNvim/AstroNvim", + verson = "^4", + import = "astronvim.plugins", + opts = { + mapleader = " ", + maplocalleader = ",", + icons_enabled = true, + pin_plugins = nil, + update_notifications = true, + }, + }, + { import = "community" }, + -- { import = "plugins" }, +}, { + install = { colorscheme = { "astrodark", "habamax" } }, + ui = { backdrop = 100 }, + performance = { + rtp = { + disabled_plugins = { + "gzip", + "netrwPlugin", + "tarPlugin", + "tohtml", + "zipPlugin", + }, + }, + }, +})