This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools: rip astronvim

-1037
-1
2configs/exim-smarthost.nix
··· 286 286 config.krebs.hosts.coaxmetal 287 287 config.krebs.hosts.green 288 288 config.krebs.hosts.mors 289 - config.krebs.hosts.xerxes 290 289 ]; 291 290 internet-aliases = map (from: { inherit from to; }) mails ++ [ 292 291 ];
-108
tools/astronvim/flake-module.nix
··· 1 - { ... }: 2 - { 3 - perSystem = 4 - { 5 - lib, 6 - pkgs, 7 - ... 8 - }: 9 - let 10 - nvim-appname = "lassvim"; 11 - 12 - lsp-packages = 13 - with pkgs; 14 - [ 15 - nodejs # copilot 16 - terraform-ls 17 - pyright 18 - 19 - # based on ./suggested-pkgs.json 20 - gopls 21 - golangci-lint 22 - nodePackages.bash-language-server 23 - taplo-lsp 24 - marksman 25 - selene 26 - rust-analyzer 27 - yaml-language-server 28 - nil 29 - shellcheck 30 - shfmt 31 - ruff 32 - ruff-lsp 33 - nixfmt-rfc-style 34 - terraform-ls 35 - clang-tools 36 - nodePackages.prettier 37 - stylua 38 - # based on https://github.com/ray-x/go.nvim#go-binaries-install-and-update 39 - go 40 - gofumpt 41 - gomodifytags 42 - gotools 43 - delve 44 - golines 45 - gomodifytags 46 - gotests 47 - iferr 48 - impl 49 - reftools 50 - ginkgo 51 - richgo 52 - govulncheck 53 - 54 - #ocaml-ng.ocamlPackages_5_0.ocaml-lsp 55 - #ocaml-ng.ocamlPackages_5_0.ocamlformat 56 - # does not build yet on aarch64 57 - ] 58 - ++ lib.optional (pkgs.stdenv.hostPlatform.system == "x86_64-linux") pkgs.deno 59 - ++ lib.optional (!pkgs.stdenv.hostPlatform.isDarwin) sumneko-lua-language-server; 60 - 61 - lspEnv = pkgs.buildEnv { 62 - name = "lspEnv"; 63 - paths = lsp-packages; 64 - }; 65 - 66 - treesitter-grammars = 67 - let 68 - grammars = lib.filterAttrs ( 69 - n: _: lib.hasPrefix "tree-sitter-" n 70 - ) pkgs.vimPlugins.nvim-treesitter.builtGrammars; 71 - symlinks = lib.mapAttrsToList ( 72 - name: grammar: "ln -s ${grammar}/parser $out/${lib.removePrefix "tree-sitter-" name}.so" 73 - ) grammars; 74 - in 75 - (pkgs.runCommand "treesitter-grammars" { } '' 76 - mkdir -p $out 77 - ${lib.concatStringsSep "\n" symlinks} 78 - '').overrideAttrs 79 - (_: { 80 - passthru.rev = pkgs.vimPlugins.nvim-treesitter.src.rev; 81 - }); 82 - 83 - in 84 - { 85 - packages.vim = pkgs.writeShellScriptBin "vim" '' 86 - set -efux 87 - unset VIMINIT 88 - export PATH=${lspEnv}/bin:$PATH 89 - export NVIM_APPNAME=${nvim-appname} 90 - 91 - XDG_CONFIG_HOME=''${XDG_CONFIG_HOME:-$HOME/.config} 92 - XDG_DATA_HOME=''${XDG_DATA_HOME:-$HOME/.local/share} 93 - 94 - mkdir -p "$XDG_CONFIG_HOME/$NVIM_APPNAME" "$XDG_DATA_HOME" 95 - chmod -R u+w "$XDG_CONFIG_HOME/$NVIM_APPNAME" 96 - rm -rf "$XDG_CONFIG_HOME/$NVIM_APPNAME" 97 - ${pkgs.coreutils}/bin/cp -arfT '${./config}'/ "$XDG_CONFIG_HOME/$NVIM_APPNAME" 98 - chmod -R u+w "$XDG_CONFIG_HOME/$NVIM_APPNAME" 99 - echo "${treesitter-grammars.rev}" > "$XDG_CONFIG_HOME/$NVIM_APPNAME/treesitter-rev" 100 - 101 - ${pkgs.neovim}/bin/nvim --headless -c 'quitall' # install plugins 102 - mkdir -p "$XDG_DATA_HOME/$NVIM_APPNAME/lib/" "$XDG_DATA_HOME/$NVIM_APPNAME/site/" 103 - ${pkgs.coreutils}/bin/ln -sfT "${pkgs.vimPlugins.telescope-fzf-native-nvim}/build/libfzf.so" "$XDG_DATA_HOME/$NVIM_APPNAME/lib/libfzf.so" 104 - ${pkgs.coreutils}/bin/ln -sfT "${treesitter-grammars}" "$XDG_DATA_HOME/$NVIM_APPNAME/site/parser" 105 - exec ${pkgs.neovim}/bin/nvim "$@" 106 - ''; 107 - }; 108 - }
-44
tools/astronvim/config/init.lua
··· 1 - local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 2 - if not vim.loop.fs_stat(lazypath) then 3 - -- stylua: ignore 4 - vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", 5 - lazypath }) 6 - end 7 - vim.opt.rtp:prepend(lazypath) 8 - 9 - vim.api.nvim_create_user_command("RaiseTmuxPane", function() 10 - -- run shell command 11 - 12 - local out = vim.fn.system("tmux list-panes -a -F '#I #{pane_tty}'") 13 - local tty = vim.env.TTY 14 - if tty == nil then 15 - return 16 - end 17 - local _, _, window_id = string.find(out, "(%d+) " .. tty) 18 - if window_id == nil then 19 - return 20 - end 21 - vim.fn.system("tmux select-window -t '" .. window_id .. "'") 22 - end, {}) 23 - 24 - vim.api.nvim_create_user_command("Nurl", function() 25 - local url = vim.fn.input("Enter a URL: ") 26 - local rev = vim.fn.input("Enter the revision (e.g., v0.2.0 or empty string): ") 27 - 28 - local cmd = string.format("nurl %s %s 2>/dev/null", url, rev) 29 - 30 - local output = vim.fn.systemlist(cmd) 31 - if vim.v.shell_error == 0 and #output > 0 then 32 - vim.api.nvim_put(output, "l", true, true) 33 - else 34 - print("Error executing command or command returned empty result.") 35 - end 36 - end, {}) 37 - 38 - require("lazy").setup({ 39 - { 40 - "AstroNvim/AstroNvim", 41 - import = "astronvim.plugins", 42 - }, 43 - { import = "plugins" }, 44 - })
-76
tools/astronvim/config/lazy-lock.json
··· 1 - { 2 - "AstroNvim": { "branch": "main", "commit": "ce7cad66837c076052b8293787454bf5a43b448e" }, 3 - "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, 4 - "CopilotChat.nvim": { "branch": "canary", "commit": "51ec2b45fed9cb0c8551c94ee2f2fb68de1e970a" }, 5 - "LuaSnip": { "branch": "master", "commit": "825a61bad1d60d917a7962d73cf3c683f4e0407e" }, 6 - "NeoSolarized.nvim": { "branch": "master", "commit": "208e65a3ede945b8a1d00104a4441217c5e23509" }, 7 - "SchemaStore.nvim": { "branch": "main", "commit": "20ceee9ede7cb68ce01dc45a7d5924cefc9aa671" }, 8 - "aerial.nvim": { "branch": "master", "commit": "24ebacab5821107c50f628e8e7774f105c08fe9b" }, 9 - "alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" }, 10 - "astrocommunity": { "branch": "main", "commit": "14647de59010546fb116bd52f179f4956c4d9a80" }, 11 - "astrocore": { "branch": "main", "commit": "7a77e6d53218937a70362f68ce561590b4d46bd1" }, 12 - "astrolsp": { "branch": "main", "commit": "2ac3632dabe1bafb6548af0e6b7d779a7fbb1327" }, 13 - "astrotheme": { "branch": "main", "commit": "e056b8216214f7140eda3e0adcfc27efba705231" }, 14 - "astroui": { "branch": "main", "commit": "780b77962a8604f3ad2e89c112d7adef3e2d1773" }, 15 - "auto-save.nvim": { "branch": "main", "commit": "979b6c82f60cfa80f4cf437d77446d0ded0addf0" }, 16 - "better-escape.nvim": { "branch": "master", "commit": "7e86edafb8c7e73699e0320f225464a298b96d12" }, 17 - "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, 18 - "cmp-dap": { "branch": "master", "commit": "ea92773e84c0ad3288c3bc5e452ac91559669087" }, 19 - "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, 20 - "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, 21 - "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, 22 - "copilot.lua": { "branch": "master", "commit": "f7612f5af4a7d7615babf43ab1e67a2d790c13a6" }, 23 - "crates.nvim": { "branch": "main", "commit": "b4f4987ccdb1cc3899ee541ef4375c73c48c4570" }, 24 - "dressing.nvim": { "branch": "master", "commit": "18e5beb3845f085b6a33c24112b37988f3f93c06" }, 25 - "friendly-snippets": { "branch": "main", "commit": "ea068f1becd91bcd4591fceb6420d4335e2e14d3" }, 26 - "gitsigns.nvim": { "branch": "main", "commit": "2d1271962f8fb21e9089363f1ccdda52f03bedfa" }, 27 - "go.nvim": { "branch": "master", "commit": "abd282564a31c5dec14e2038ebf04fdac9ea3278" }, 28 - "guess-indent.nvim": { "branch": "main", "commit": "b8ae749fce17aa4c267eec80a6984130b94f80b2" }, 29 - "guihua.lua": { "branch": "master", "commit": "f8ef84df19369bd1fcb8c3210a3b9db13026b7bc" }, 30 - "heirline.nvim": { "branch": "master", "commit": "03cff30d7e7d3ba6fdc00925f015822f79cef908" }, 31 - "icon-picker.nvim": { "branch": "master", "commit": "3ee9a0ea9feeef08ae35e40c8be6a2fa2c20f2d3" }, 32 - "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" }, 33 - "lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" }, 34 - "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" }, 35 - "mason-lspconfig.nvim": { "branch": "main", "commit": "9dfcf2036c223920826140f0151d929a43f9eceb" }, 36 - "mason-null-ls.nvim": { "branch": "main", "commit": "e270134d83ba59425edc53356c6fd337b61bb8dd" }, 37 - "mason-nvim-dap.nvim": { "branch": "main", "commit": "67210c0e775adec55de9826b038e8b62de554afc" }, 38 - "mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" }, 39 - "mini.bufremove": { "branch": "main", "commit": "931a3bb514147d9e812767275c4beba6b779b1d3" }, 40 - "neo-tree.nvim": { "branch": "main", "commit": "16d1b194376bf1fc2acd89ccb3c29ba8315bfcea" }, 41 - "neoconf.nvim": { "branch": "main", "commit": "f41d28e3f9c873de17ecab12e767fc8cfd94c7a2" }, 42 - "neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" }, 43 - "none-ls.nvim": { "branch": "main", "commit": "fff481b65d88415933b9574dc0e1947724bcf64a" }, 44 - "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" }, 45 - "nvim-autopairs": { "branch": "master", "commit": "dbfc1c34bed415906395db8303c71039b3a3ffb4" }, 46 - "nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" }, 47 - "nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" }, 48 - "nvim-dap": { "branch": "master", "commit": "405df1dcc2e395ab5173a9c3d00e03942c023074" }, 49 - "nvim-dap-go": { "branch": "main", "commit": "36abe1d320cb61bfdf094d4e0fe815ef58f2302a" }, 50 - "nvim-dap-python": { "branch": "master", "commit": "66560f0ebddf96604f7037e1efad3ba6942761e6" }, 51 - "nvim-dap-ui": { "branch": "master", "commit": "edfa93f60b189e5952c016eee262d0685d838450" }, 52 - "nvim-lspconfig": { "branch": "master", "commit": "70279e07f130489325292a32d9d604fca65506b2" }, 53 - "nvim-nio": { "branch": "master", "commit": "173f285eebb410199273fa178aa517fd2d7edd80" }, 54 - "nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" }, 55 - "nvim-treesitter": { "branch": "master", "commit": "be4d6e858fe7543dcafa085118ebb7759246ed7c" }, 56 - "nvim-treesitter-textobjects": { "branch": "master", "commit": "45f90966a53a4e1bac374fe9aac530b7b5925c76" }, 57 - "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" }, 58 - "nvim-ts-context-commentstring": { "branch": "main", "commit": "734ebad31c81c6198dfe102aa23280937c937c42" }, 59 - "nvim-ufo": { "branch": "main", "commit": "49acf0010ccc08d727582da8cbf5e4c3f3b0cc53" }, 60 - "nvim-web-devicons": { "branch": "master", "commit": "3ee60deaa539360518eaab93a6c701fe9f4d82ef" }, 61 - "nvim-window-picker": { "branch": "main", "commit": "41cfaa428577c53552200a404ae9b3a0b5719706" }, 62 - "plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" }, 63 - "project.nvim": { "branch": "main", "commit": "4317ce951459a53ba45ffed2495ac6752211364b" }, 64 - "promise-async": { "branch": "main", "commit": "93540c168c5ed2b030ec3e6c40ab8bbb85e36355" }, 65 - "rainbow-delimiters.nvim": { "branch": "master", "commit": "580bc045c7ab3ab3ebd267774038c0d8cc19c789" }, 66 - "resession.nvim": { "branch": "master", "commit": "742aba4998123fc11f490a3aeffe8f550b2cb789" }, 67 - "rustaceanvim": { "branch": "master", "commit": "e2dbf91daed26d4dd7263affbecbf9a36e0096e5" }, 68 - "smart-splits.nvim": { "branch": "master", "commit": "50f52146e4504a3fc0f0d5830c8560a16a95dd08" }, 69 - "spaceless.nvim": { "branch": "main", "commit": "8d46bc098dba18d4e19bce89bf19aab5007ef767" }, 70 - "telescope.nvim": { "branch": "master", "commit": "4626aaa2bcfdacf55fd6d44b430e2df81b2403ff" }, 71 - "todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" }, 72 - "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, 73 - "venv-selector.nvim": { "branch": "main", "commit": "3c57922256e7e26205a25f5a42ecf7104d9f2c78" }, 74 - "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, 75 - "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } 76 - }
-7
tools/astronvim/user/.stylua.toml
··· 1 - column_width = 120 2 - line_endings = "Unix" 3 - indent_type = "Spaces" 4 - indent_width = 2 5 - quote_style = "AutoPreferDouble" 6 - call_parentheses = "None" 7 - collapse_simple_statement = "Always"
-129
tools/astronvim/user/init.lua
··· 1 - vim.api.nvim_create_user_command("RaiseTmuxPane", function() 2 - -- run shell command 3 - 4 - local out = vim.fn.system "tmux list-panes -a -F '#I #{pane_tty}'" 5 - local tty = vim.env.TTY 6 - if tty == nil then return end 7 - local _, _, window_id = string.find(out, "(%d+) " .. tty) 8 - if window_id == nil then return end 9 - vim.fn.system("tmux select-window -t '" .. window_id .. "'") 10 - end, {}) 11 - 12 - vim.api.nvim_create_user_command("Nurl", function() 13 - local url = vim.fn.input("Enter a URL: ") 14 - local rev = vim.fn.input("Enter the revision (e.g., v0.2.0 or empty string): ") 15 - 16 - local cmd = string.format('nurl %s %s 2>/dev/null', url, rev) 17 - 18 - local output = vim.fn.systemlist(cmd) 19 - if vim.v.shell_error == 0 and #output > 0 then 20 - vim.api.nvim_put(output, "l", true, true) 21 - else 22 - print("Error executing command or command returned empty result.") 23 - end 24 - end, {}) 25 - 26 - return { 27 - -- Configure AstroNvim updates 28 - updater = { 29 - remote = "origin", -- remote to use 30 - channel = "stable", -- "stable" or "nightly" 31 - version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY) 32 - branch = "nightly", -- branch name (NIGHTLY ONLY) 33 - commit = nil, -- commit hash (NIGHTLY ONLY) 34 - pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only) 35 - skip_prompts = false, -- skip prompts about breaking changes 36 - show_changelog = true, -- show the changelog after performing an update 37 - auto_quit = false, -- automatically quit the current session after a successful update 38 - remotes = { -- easily add new remotes to track 39 - -- ["remote_name"] = "https://remote_url.come/repo.git", -- full remote url 40 - -- ["remote2"] = "github_user/repo", -- GitHub user/repo shortcut, 41 - -- ["remote3"] = "github_user", -- GitHub user assume AstroNvim fork 42 - }, 43 - }, 44 - -- Set colorscheme to use 45 - colorscheme = "gruvbox", 46 - -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on 47 - diagnostics = { 48 - virtual_text = true, 49 - underline = true, 50 - }, 51 - lsp = { 52 - config = { 53 - clangd = { 54 - cmd = { "clangd", "--offset-encoding=utf-16" }, 55 - }, 56 - vale = { 57 - cmd = { "vale", "--lsp" }, 58 - filetypes = { "markdown", "text" }, 59 - }, 60 - }, 61 - -- customize lsp formatting options 62 - formatting = { 63 - -- control auto formatting on save 64 - format_on_save = { 65 - enabled = true, -- enable or disable format on save globally 66 - allow_filetypes = { -- enable format on save for specified filetypes only 67 - "go", 68 - }, 69 - ignore_filetypes = { -- disable format on save for specified filetypes 70 - -- "python", 71 - }, 72 - }, 73 - disabled = { -- disable formatting capabilities for the listed language servers 74 - -- disable lua_ls formatting capability if you want to use StyLua to format your lua code 75 - -- "lua_ls", 76 - }, 77 - timeout_ms = 1000, -- default format timeout 78 - -- filter = function(client) -- fully override the default formatting function 79 - -- return true 80 - -- end 81 - }, 82 - -- enable servers that you already have installed without mason 83 - servers = { 84 - "clangd", 85 - "bashls", 86 - "gopls", 87 - "taplo", 88 - "marksman", 89 - "pyright", 90 - "nil_ls", 91 - "terraformls", 92 - "lua_ls", 93 - "vale", 94 - "rust_analyzer", 95 - "gopls", 96 - "yamlls", 97 - "denols", 98 - }, 99 - }, 100 - -- Configure require("lazy").setup() options 101 - lazy = { 102 - defaults = { lazy = true }, 103 - -- Disable change detection because it caused nvim to constantly need 3-5% CPU, which is bad for battery life 104 - change_detection = { enabled = false, }, 105 - performance = { 106 - rtp = { 107 - -- customize default disabled vim plugins 108 - disabled_plugins = { "tohtml", "gzip", "matchit", "zipPlugin", "netrwPlugin", "tarPlugin" }, 109 - }, 110 - }, 111 - }, 112 - -- This function is run last and is a good place to configuring 113 - -- augroups/autocommands and custom filetypes also this just pure lua so 114 - -- anything that doesn't fit in the normal config locations above can go here 115 - polish = function() 116 - -- Set up custom filetypes 117 - -- vim.filetype.add { 118 - -- extension = { 119 - -- foo = "fooscript", 120 - -- }, 121 - -- filename = { 122 - -- ["Foofile"] = "fooscript", 123 - -- }, 124 - -- pattern = { 125 - -- ["~/%.config/foo/.*"] = "fooscript", 126 - -- }, 127 - -- } 128 - end, 129 - }
-60
tools/astronvim/user/mappings.lua
··· 1 - function open_or_create_file(tfilename) 2 - -- complete filepath from the file where this is called 3 - local parent = vim.fn.expand('%:p:h') 4 - local newfilepath = parent .. '/' .. vim.fn.expand(tfilename) 5 - 6 - if vim.fn.filereadable(newfilepath) ~= 1 then 7 - -- create parent directory 8 - vim.fn.system('mkdir -p ' .. vim.fn.shellescape(parent)) 9 - vim.fn.system('touch ' .. vim.fn.shellescape(newfilepath)) 10 - end 11 - vim.cmd(':e ' .. newfilepath) 12 - end 13 - 14 - 15 - -- Mapping data with "desc" stored directly by vim.keymap.set(). 16 - -- 17 - -- Please use this mappings table to set keyboard mapping since this is the 18 - -- lower level configuration and more robust one. (which-key will 19 - -- automatically pick-up stored data by this setting.) 20 - return { 21 - -- first key is the mode 22 - n = { 23 - -- second key is the lefthand side of the map 24 - 25 - -- navigate buffer tabs with `H` and `L` 26 - -- L = { 27 - -- function() require("astronvim.utils.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end, 28 - -- desc = "Next buffer", 29 - -- }, 30 - -- H = { 31 - -- function() require("astronvim.utils.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end, 32 - -- desc = "Previous buffer", 33 - -- }, 34 - -- mappings seen under group name "Buffer" 35 - ["<leader>bD"] = { 36 - function() 37 - require("astronvim.utils.status").heirline.buffer_picker(function(bufnr) require("astronvim.utils.buffer").close(bufnr) end) 38 - end, 39 - desc = "Pick to close", 40 - }, 41 - -- tables with the `name` key will be registered with which-key if it's installed 42 - -- this is useful for naming menus 43 - ["<leader>b"] = { name = "Buffers" }, 44 - -- quick save 45 - -- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command 46 - 47 - -- Don't error if file doesn't exist 48 - ["gf"] = { function() open_or_create_file(vim.fn.expand("<cfile>")) end, desc = "Create file" }, 49 - ["<leader>*"] = { function() require("telescope.builtin").grep_string() end, desc = "Find for word under cursor", }, 50 - ["<leader><leader>"] = { function() require("telescope.builtin").find_files() end, desc = "Find files" }, 51 - }, 52 - t = { 53 - -- setting a mapping to false will disable it 54 - -- ["<esc>"] = false, 55 - }, 56 - c = { 57 - -- setting a mapping to false will disable it 58 - ["w!!"] = { "w !sudo tee > /dev/null %", desc = "Write as sudo" }, 59 - } 60 - }
-38
tools/astronvim/user/options.lua
··· 1 - -- set vim options here (vim.<first_key>.<second_key> = value) 2 - return { 3 - opt = { 4 - -- set to true or false etc. 5 - relativenumber = true, -- sets vim.opt.relativenumber 6 - number = true, -- sets vim.opt.number 7 - spell = false, -- sets vim.opt.spell 8 - signcolumn = "auto", -- sets vim.opt.signcolumn to auto 9 - wrap = false, -- sets vim.opt.wrap 10 - list = true, -- show tabs etc 11 - listchars = { 12 - tab = '⇥ ', 13 - extends = '❯', 14 - precedes = '❮', 15 - nbsp = '␣', 16 - trail = '·', 17 - }, 18 - }, 19 - g = { 20 - mapleader = " ", -- sets vim.g.mapleader 21 - autoformat_enabled = true, -- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled) 22 - cmp_enabled = true, -- enable completion at start 23 - autopairs_enabled = true, -- enable autopairs at start 24 - diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on) 25 - icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing) 26 - ui_notifications_enabled = true, -- disable notifications when toggling UI elements 27 - resession_enabled = false, -- enable experimental resession.nvim session management (will be default in AstroNvim v4) 28 - }, 29 - } 30 - -- If you need more control, you can use the function()...end notation 31 - -- return function(local_vim) 32 - -- local_vim.opt.relativenumber = true 33 - -- local_vim.g.mapleader = " " 34 - -- local_vim.opt.whichwrap = vim.opt.whichwrap - { 'b', 's' } -- removing option from list 35 - -- local_vim.opt.shortmess = vim.opt.shortmess + { I = true } -- add to option list 36 - -- 37 - -- return local_vim 38 - -- end
-36
tools/astronvim/user/.github/README.md
··· 1 - # AstroNvim User Configuration Example 2 - 3 - A user configuration template for [AstroNvim](https://github.com/AstroNvim/AstroNvim) 4 - 5 - ## 🛠️ Installation 6 - 7 - #### Make a backup of your current nvim and shared folder 8 - 9 - ```shell 10 - mv ~/.config/nvim ~/.config/nvim.bak 11 - mv ~/.local/share/nvim ~/.local/share/nvim.bak 12 - ``` 13 - 14 - #### Clone AstroNvim 15 - 16 - ```shell 17 - git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim 18 - ``` 19 - 20 - #### Create a new user repository from this template 21 - 22 - Press the "Use this template" button above to create a new repository to store your user configuration. 23 - 24 - You can also just clone this repository directly if you do not want to track your user configuration in GitHub. 25 - 26 - #### Clone the repository 27 - 28 - ```shell 29 - git clone https://github.com/<your_user>/<your_repository> ~/.config/nvim/lua/user 30 - ``` 31 - 32 - #### Start Neovim 33 - 34 - ```shell 35 - nvim 36 - ```
-3
tools/astronvim/user/highlights/init.lua
··· 1 - return { -- this table overrides highlights in all themes 2 - -- Normal = { bg = "#000000" }, 3 - }
-29
tools/astronvim/user/plugins/community.lua
··· 1 - return { 2 - -- Add the community repository of plugin specifications 3 - "AstroNvim/astrocommunity", 4 - -- example of imporing a plugin, comment out to use it or add your own 5 - -- available plugins can be found at https://github.com/AstroNvim/astrocommunity 6 - { import = "astrocommunity.colorscheme.gruvbox-nvim" }, 7 - { import = "astrocommunity.completion.copilot-lua" }, 8 - { import = "astrocommunity.completion.copilot-lua-cmp" }, 9 - { import = "astrocommunity.project.project-nvim" }, 10 - { import = "astrocommunity.pack.go" }, 11 - { import = "astrocommunity.pack.bash" }, 12 - { import = "astrocommunity.pack.python" }, 13 - { import = "astrocommunity.pack.lua" }, 14 - { import = "astrocommunity.pack.toml" }, 15 - { import = "astrocommunity.pack.markdown" }, 16 - { import = "astrocommunity.pack.rust" }, 17 - { import = "astrocommunity.pack.yaml" }, 18 - { import = "astrocommunity.pack.nix" }, 19 - { import = "astrocommunity.terminal-integration.vim-tpipeline" }, 20 - { import = "astrocommunity.editing-support.rainbow-delimiters-nvim" }, 21 - { import = "astrocommunity.editing-support.auto-save-nvim" }, 22 - { import = "astrocommunity.editing-support.chatgpt-nvim" }, 23 - { 24 - "jackMort/ChatGPT.nvim", 25 - opts = { 26 - api_key_cmd = "pass show www/openai.com/api_key", 27 - }, 28 - }, 29 - }
-95
tools/astronvim/user/plugins/core.lua
··· 1 - return { 2 - -- customize alpha options 3 - { 4 - "goolord/alpha-nvim", 5 - opts = function(_, opts) 6 - -- customize the dashboard header 7 - opts.section.header.val = { 8 - " █████ ███████ ████████ ██████ ██████", 9 - "██ ██ ██ ██ ██ ██ ██ ██", 10 - "███████ ███████ ██ ██████ ██ ██", 11 - "██ ██ ██ ██ ██ ██ ██ ██", 12 - "██ ██ ███████ ██ ██ ██ ██████", 13 - " ", 14 - " ███  ██ ██  ██ ██ ███  ███", 15 - " ████  ██ ██  ██ ██ ████  ████", 16 - " ██ ██  ██ ██  ██ ██ ██ ████ ██", 17 - " ██  ██ ██  ██  ██  ██ ██  ██  ██", 18 - " ██   ████   ████   ██ ██      ██", 19 - } 20 - return opts 21 - end, 22 - }, 23 - { 24 - "gitsigns.nvim", 25 - opts = function(_, opts) 26 - opts.current_line_blame = true 27 - return opts 28 - end, 29 - }, 30 - { 31 - "nvim-neo-tree/neo-tree.nvim", 32 - opts = { 33 - follow_current_file = true, 34 - }, 35 - }, 36 - -- override make command build since we provide the shared library with home-manager already 37 - { "nvim-telescope/telescope-fzf-native.nvim", build = "true", }, 38 - -- disable building since it's optional 39 - { "L3MON4D3/LuaSnip", build = "true", }, 40 - 41 - -- You can disable default plugins as follows: 42 - -- { "max397574/better-escape.nvim", enabled = false }, 43 - -- 44 - -- You can also easily customize additional setup of plugins that is outside of the plugin's setup call 45 - -- { 46 - -- "L3MON4D3/LuaSnip", 47 - -- config = function(plugin, opts) 48 - -- require "plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call 49 - -- -- add more custom luasnip configuration such as filetype extend or custom snippets 50 - -- local luasnip = require "luasnip" 51 - -- luasnip.filetype_extend("javascript", { "javascriptreact" }) 52 - -- end, 53 - -- }, 54 - -- { 55 - -- "windwp/nvim-autopairs", 56 - -- config = function(plugin, opts) 57 - -- require "plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call 58 - -- -- add more custom autopairs configuration such as custom rules 59 - -- local npairs = require "nvim-autopairs" 60 - -- local Rule = require "nvim-autopairs.rule" 61 - -- local cond = require "nvim-autopairs.conds" 62 - -- npairs.add_rules( 63 - -- { 64 - -- Rule("$", "$", { "tex", "latex" }) 65 - -- -- don't add a pair if the next character is % 66 - -- :with_pair(cond.not_after_regex "%%") 67 - -- -- don't add a pair if the previous character is xxx 68 - -- :with_pair( 69 - -- cond.not_before_regex("xxx", 3) 70 - -- ) 71 - -- -- don't move right when repeat character 72 - -- :with_move(cond.none()) 73 - -- -- don't delete if the next character is xx 74 - -- :with_del(cond.not_after_regex "xx") 75 - -- -- disable adding a newline when you press <cr> 76 - -- :with_cr(cond.none()), 77 - -- }, 78 - -- -- disable for .vim files, but it work for another filetypes 79 - -- Rule("a", "a", "-vim") 80 - -- ) 81 - -- end, 82 - -- }, 83 - -- By adding to the which-key config and using our helper function you can add more which-key registered bindings 84 - -- { 85 - -- "folke/which-key.nvim", 86 - -- config = function(plugin, opts) 87 - -- require "plugins.configs.which-key"(plugin, opts) -- include the default astronvim config that calls the setup call 88 - -- -- Add bindings which show up as group name 89 - -- local wk = require "which-key" 90 - -- wk.register({ 91 - -- b = { name = "Buffer" }, 92 - -- }, { mode = "n", prefix = "<leader>" }) 93 - -- end, 94 - -- }, 95 - }
-33
tools/astronvim/user/plugins/mason.lua
··· 1 - -- customize mason plugins 2 - local suggested_packages = {} 3 - local utils = require "astronvim.utils" 4 - 5 - local disable_auto_install = function(_, opts) 6 - local data_dir = vim.fn.stdpath("data") 7 - utils.list_insert_unique(suggested_packages, opts.ensure_installed or {}) 8 - local f = io.open(data_dir .. "/suggested-pkgs.json", "w") 9 - f:write(vim.fn.json_encode(suggested_packages)) 10 - f:close() 11 - 12 - opts.ensure_installed = {} 13 - end 14 - 15 - return { 16 - -- use mason-lspconfig to configure LSP installations 17 - { 18 - "williamboman/mason-lspconfig.nvim", 19 - -- overrides `require("mason-lspconfig").setup(...)` 20 - opts = disable_auto_install, 21 - }, 22 - -- use mason-null-ls to configure Formatters/Linter installation for null-ls sources 23 - { 24 - "jay-babu/mason-null-ls.nvim", 25 - -- overrides `require("mason-null-ls").setup(...)` 26 - opts = disable_auto_install, 27 - }, 28 - { 29 - "jay-babu/mason-nvim-dap.nvim", 30 - -- overrides `require("mason-nvim-dap").setup(...)` 31 - opts = disable_auto_install, 32 - }, 33 - }
-44
tools/astronvim/user/plugins/null-ls.lua
··· 1 - return { 2 - "jose-elias-alvarez/null-ls.nvim", 3 - opts = function(_, config) 4 - -- config variable is the default configuration table for the setup function call 5 - local null_ls = require "null-ls" 6 - 7 - -- Check supported formatters and linters 8 - -- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting 9 - -- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics 10 - config.sources = { 11 - -- Set a formatter 12 - null_ls.builtins.formatting.stylua, 13 - 14 - -- html/css/js/ts/json/yaml/xml/markdown 15 - null_ls.builtins.formatting.prettier, 16 - 17 - -- go 18 - null_ls.builtins.formatting.gofumpt, 19 - null_ls.builtins.formatting.goimports, 20 - null_ls.builtins.diagnostics.golangci_lint, 21 - null_ls.builtins.code_actions.impl, 22 - 23 - -- nix 24 - null_ls.builtins.formatting.nixpkgs_fmt, 25 - 26 - -- python 27 - null_ls.builtins.formatting.black, 28 - null_ls.builtins.formatting.isort, 29 - null_ls.builtins.formatting.ruff, 30 - 31 - -- c/c++ 32 - null_ls.builtins.formatting.clang_format, 33 - 34 - -- rust 35 - null_ls.builtins.formatting.rustfmt, 36 - 37 - -- bash 38 - null_ls.builtins.formatting.shfmt.with { 39 - args = { "-i", "2" }, 40 - }, 41 - } 42 - return config -- return final config table 43 - end, 44 - }
-9
tools/astronvim/user/plugins/treesitter.lua
··· 1 - return { 2 - "nvim-treesitter/nvim-treesitter", 3 - config = function() 4 - end, 5 - opts = { 6 - -- enable terraform using hcl 7 - -- ensure_installed = { "lua" }, 8 - }, 9 - }
-6
tools/astronvim/user/plugins/user.lua
··· 1 - return { 2 - { 3 - "lewis6991/spaceless.nvim", 4 - config = function() require("spaceless").setup() end, 5 - }, 6 - }
-31
tools/astronvim/config/lua/plugins/astrolsp.lua
··· 1 - return { 2 - "AstroNvim/astrolsp", 3 - -- we must use the function override because table merging 4 - -- does not play nicely with list-like tables 5 - ---@param opts AstroLSPOpts 6 - opts = function(plugin, opts) 7 - -- safely extend the servers list 8 - opts.servers = opts.servers or {} 9 - vim.list_extend(opts.servers, { 10 - "pyright", 11 - "clangd", 12 - "bashls", 13 - "gopls", 14 - "taplo", 15 - "marksman", 16 - "pyright", 17 - "nil_ls", 18 - "terraformls", 19 - "lua_ls", 20 - "ruff_lsp", 21 - "rust_analyzer", 22 - "gopls", 23 - "yamlls", 24 - "denols", 25 - "ocamllsp", 26 - -- add more servers as needed... 27 - }) 28 - opts.formatting = opts.formatting or {} 29 - opts.formatting.format_on_save = false 30 - end, 31 - }
-3
tools/astronvim/config/lua/plugins/astroui.lua
··· 1 - return { 2 - "AstroNvim/astroui", 3 - }
-35
tools/astronvim/config/lua/plugins/community.lua
··· 1 - return { 2 - -- Add the community repository of plugin specifications 3 - "AstroNvim/astrocommunity", 4 - branch = "main", 5 - -- example of imporing a plugin, comment out to use it or add your own 6 - -- available plugins can be found at https://github.com/AstroNvim/astrocommunity 7 - { import = "astrocommunity.completion.copilot-lua" }, 8 - { import = "astrocommunity.completion.copilot-lua-cmp" }, 9 - { 10 - "zbirenbaum/copilot.lua", 11 - opts = { 12 - filetypes = { 13 - gitcommit = true, 14 - }, 15 - }, 16 - }, 17 - { import = "astrocommunity.project.project-nvim" }, 18 - { import = "astrocommunity.pack.go" }, 19 - { 20 - "ray-x/go.nvim", 21 - -- don't install go binaries with the plugin 22 - -- instead we install these with nix: https://github.com/ray-x/go.nvim#go-binaries-install-and-update 23 - build = "true", 24 - }, 25 - { import = "astrocommunity.pack.bash" }, 26 - { import = "astrocommunity.pack.python" }, 27 - { import = "astrocommunity.pack.lua" }, 28 - { import = "astrocommunity.pack.toml" }, 29 - { import = "astrocommunity.pack.markdown" }, 30 - { import = "astrocommunity.pack.rust" }, 31 - { import = "astrocommunity.pack.yaml" }, 32 - { import = "astrocommunity.pack.nix" }, 33 - { import = "astrocommunity.editing-support.rainbow-delimiters-nvim" }, 34 - { import = "astrocommunity.editing-support.auto-save-nvim" }, 35 - }
-58
tools/astronvim/config/lua/plugins/copilot-chat.lua
··· 1 - return 2 - { 3 - "CopilotC-Nvim/CopilotChat.nvim", 4 - branch = "canary", 5 - dependencies = { 6 - { "zbirenbaum/copilot.lua" }, -- or github/copilot.vim 7 - { "nvim-lua/plenary.nvim" }, -- for curl, log wrapper 8 - }, 9 - lazy = false, 10 - keys = function() 11 - local select = require "CopilotChat.select" 12 - local telescope = require "CopilotChat.integrations.telescope" 13 - local actions = require "CopilotChat.actions" 14 - 15 - return { 16 - { 17 - "<leader>ccq", 18 - function() 19 - local input = vim.fn.input "Quick Chat: " 20 - if input ~= "" then require("CopilotChat").ask(input, { selection = select.buffer }) end 21 - end, 22 - desc = "CopilotChat - Quick chat", 23 - }, 24 - { 25 - "<leader>ccq", 26 - function() 27 - local input = vim.fn.input "Quick Chat: " 28 - if input ~= "" then require("CopilotChat").ask(input, { selection = select.visual }) end 29 - end, 30 - desc = "CopilotChat - Quick chat", 31 - mode = "v", 32 - }, 33 - { 34 - "<leader>cch", 35 - function() telescope.pick(actions.help_actions(), { selection = select.buffer }) end, 36 - desc = "CopilotChat - Help actions", 37 - }, 38 - { 39 - "<leader>cch", 40 - function() telescope.pick(actions.help_actions(), { selection = select.visual }) end, 41 - desc = "CopilotChat - Help actions", 42 - mode = "v", 43 - }, 44 - { 45 - "<leader>ccp", 46 - function() telescope.pick(actions.prompt_actions(), { selection = select.visual }) end, 47 - desc = "CopilotChat - Prompt actions", 48 - }, 49 - { 50 - "<leader>ccp", 51 - function() telescope.pick(actions.prompt_actions(), { selection = select.visual }) end, 52 - desc = "CopilotChat - Prompt actions", 53 - mode = "v", 54 - }, 55 - } 56 - end, 57 - opts = {}, 58 - }
-11
tools/astronvim/config/lua/plugins/core.lua
··· 1 - return { 2 - "AstroNvim/astrocore", 3 - lazy = false, -- disable lazy loading 4 - priority = 10000, -- load AstroCore first 5 - options = { 6 - opt = { 7 - -- set configuration options as described below 8 - relativenumber = false, -- sets vim.opt.relativenumber 9 - }, 10 - }, 11 - }
-7
tools/astronvim/config/lua/plugins/gitsigns.lua
··· 1 - return { 2 - "gitsigns.nvim", 3 - opts = function(_, opts) 4 - opts.current_line_blame = true 5 - return opts 6 - end, 7 - }
-6
tools/astronvim/config/lua/plugins/icon-picker.lua
··· 1 - return { 2 - { 3 - "ziontee113/icon-picker.nvim", 4 - init = function() require("icon-picker").setup { disable_legacy_commands = true } end, 5 - }, 6 - }
-3
tools/astronvim/config/lua/plugins/luasnip.lua
··· 1 - -- disable building since it's optional 2 - return { "L3MON4D3/LuaSnip", build = "true" } 3 -
-66
tools/astronvim/config/lua/plugins/mappings.lua
··· 1 - function open_or_create_file(tfilename) 2 - -- complete filepath from the file where this is called 3 - local parent = vim.fn.expand("%:p:h") 4 - local newfilepath = parent .. "/" .. vim.fn.expand(tfilename) 5 - 6 - if vim.fn.filereadable(newfilepath) ~= 1 then 7 - -- create parent directory 8 - vim.fn.system("mkdir -p " .. vim.fn.shellescape(parent)) 9 - vim.fn.system("touch " .. vim.fn.shellescape(newfilepath)) 10 - end 11 - vim.cmd(":e " .. newfilepath) 12 - end 13 - 14 - return { 15 - "AstroNvim/astrocore", 16 - ---@type AstroCoreOpts 17 - opts = { 18 - -- Mapping data with "desc" stored directly by vim.keymap.set(). 19 - -- 20 - -- Please use this mappings table to set keyboard mapping since this is the 21 - -- lower level configuration and more robust one. (which-key will 22 - -- automatically pick-up stored data by this setting.) 23 - mappings = { 24 - -- first key is the mode 25 - n = { 26 - -- tables with the `name` key will be registered with which-key if it's installed 27 - -- this is useful for naming menus 28 - ["<leader>b"] = { name = "Buffers" }, 29 - -- quick save 30 - -- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command 31 - 32 - -- Switch between tabs 33 - ["<S-Tab>"] = { ":bprev<CR>" }, 34 - ["<Tab>"] = { ":bnext<CR>" }, 35 - 36 - -- Don't error if file doesn't exist 37 - ["gf"] = { 38 - function() 39 - open_or_create_file(vim.fn.expand("<cfile>")) 40 - end, 41 - desc = "Create file", 42 - }, 43 - ["<leader>*"] = { 44 - function() 45 - require("telescope.builtin").grep_string() 46 - end, 47 - desc = "Find for word under cursor", 48 - }, 49 - ["<leader><leader>"] = { 50 - function() 51 - require("telescope.builtin").find_files() 52 - end, 53 - desc = "Find files", 54 - }, 55 - }, 56 - t = { 57 - -- setting a mapping to false will disable it 58 - -- ["<esc>"] = false, 59 - }, 60 - c = { 61 - -- setting a mapping to false will disable it 62 - ["w!!"] = { "w !sudo tee > /dev/null %", desc = "Write as sudo" }, 63 - }, 64 - }, 65 - }, 66 - }
-33
tools/astronvim/config/lua/plugins/mason.lua
··· 1 - -- customize mason plugins 2 - local suggested_packages = {} 3 - 4 - local disable_auto_install = function(_, opts) 5 - local core = require("astrocore") 6 - local data_dir = vim.fn.stdpath("data") 7 - core.list_insert_unique(suggested_packages, opts.ensure_installed or {}) 8 - local f = io.open(data_dir .. "/suggested-pkgs.json", "w") 9 - f:write(vim.fn.json_encode(suggested_packages)) 10 - f:close() 11 - 12 - opts.ensure_installed = {} 13 - end 14 - 15 - return { 16 - -- use mason-lspconfig to configure LSP installations 17 - { 18 - "williamboman/mason-lspconfig.nvim", 19 - -- overrides `require("mason-lspconfig").setup(...)` 20 - opts = disable_auto_install, 21 - }, 22 - -- use mason-null-ls to configure Formatters/Linter installation for null-ls sources 23 - { 24 - "jay-babu/mason-null-ls.nvim", 25 - -- overrides `require("mason-null-ls").setup(...)` 26 - opts = disable_auto_install, 27 - }, 28 - { 29 - "jay-babu/mason-nvim-dap.nvim", 30 - -- overrides `require("mason-nvim-dap").setup(...)` 31 - opts = disable_auto_install, 32 - }, 33 - }
-6
tools/astronvim/config/lua/plugins/neo-tree.lua
··· 1 - return { 2 - "nvim-neo-tree/neo-tree.nvim", 3 - opts = { 4 - follow_current_file = true, 5 - }, 6 - }
-36
tools/astronvim/config/lua/plugins/none-ls.lua
··· 1 - return { 2 - "nvimtools/none-ls.nvim", 3 - opts = function(_, config) 4 - -- config variable is the default configuration table for the setup function call 5 - local null_ls = require("null-ls") 6 - 7 - -- Check supported formatters and linters 8 - -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting 9 - -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics 10 - config.sources = { 11 - -- Set a formatter 12 - null_ls.builtins.formatting.stylua, 13 - 14 - -- html/css/js/ts/json/yaml/xml/markdown 15 - null_ls.builtins.formatting.prettier, 16 - 17 - -- go 18 - null_ls.builtins.formatting.gofumpt, 19 - null_ls.builtins.formatting.goimports, 20 - null_ls.builtins.diagnostics.golangci_lint, 21 - null_ls.builtins.code_actions.impl, 22 - 23 - -- nix 24 - null_ls.builtins.formatting.nixfmt, 25 - 26 - -- c/c++ 27 - null_ls.builtins.formatting.clang_format, 28 - 29 - -- bash 30 - null_ls.builtins.formatting.shfmt.with({ 31 - args = { "-i", "2" }, 32 - }), 33 - } 34 - return config -- return final config table 35 - end, 36 - }
-6
tools/astronvim/config/lua/plugins/spaceless.lua
··· 1 - return { 2 - { 3 - "lewis6991/spaceless.nvim", 4 - init = function() require("spaceless").setup() end, 5 - }, 6 - }
-8
tools/astronvim/config/lua/plugins/telescope-fzf-native.lua
··· 1 - local nvim_data_dir = vim.fn.stdpath('data') 2 - local telescope_dir = nvim_data_dir .. "/lazy/telescope-fzf-native.nvim" 3 - local build = "mkdir -p " .. telescope_dir .. "/build && ln -sf " .. nvim_data_dir .. "/lib/libfzf.so " .. telescope_dir .. "/build/libfzf.so" 4 - -- override make command build since we provide the shared library with home-manager already 5 - return { 6 - "nvim-telescope/telescope-fzf-native.nvim", 7 - build = build, 8 - }
-10
tools/astronvim/config/lua/plugins/treesitter.lua
··· 1 - local nvim_data_dir = vim.fn.stdpath("data") 2 - local command = "ln -sf " .. nvim_data_dir .. "/site/parser/*.so " .. nvim_data_dir .. "/lazy/nvim-treesitter/parser" 3 - 4 - return { 5 - "nvim-treesitter/nvim-treesitter", 6 - build = command, 7 - opts = function(_, opts) 8 - vim.fn.system(command) 9 - end, 10 - }