diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-19 18:35:13 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-19 18:35:13 +0200 |
commit | 0a054824fb411d6aed0a58cf7da87c59b864394e (patch) | |
tree | 81d2849811851a0edc3e423fbad687f04cce9871 /fnl | |
parent | 9e25de6a21a21cffdf8adf642cdb5999878c17f1 (diff) |
Refactor plugins from module to table
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/plugins.fnl | 109 | ||||
-rw-r--r-- | fnl/util.fnl | 11 |
2 files changed, 59 insertions, 61 deletions
diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index a04a601..3c0c1e9 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -1,57 +1,56 @@ ;; List of plugins -(module plugins) -(def plugins {:wbthomason/packer.nvim {} - :lewis6991/impatient.nvim {} - :Olical/aniseed {} - :nvim-lua/popup.nvim {} - :nvim-lua/plenary.nvim {} - :aktersnurra/no-clown-fiesta.nvim {} - :hrsh7th/nvim-cmp {} - :hrsh7th/cmp-buffer {} - :hrsh7th/cmp-path {} - :hrsh7th/cmp-cmdline {} - :saadparwaiz1/cmp_luasnip {} - :onsails/lspkind-nvim {} - :hrsh7th/cmp-nvim-lsp {} - :neovim/nvim-lspconfig {} - :williamboman/nvim-lsp-installer {} - :tamago324/nlsp-settings.nvim {} - :jose-elias-alvarez/null-ls.nvim {} - :b0o/SchemaStore.nvim {} - :L3MON4D3/LuaSnip {} - :rafamadriz/friendly-snippets {} - :nvim-telescope/telescope.nvim {:requires :nvim-lua/plenary.nvim} - :nvim-telescope/telescope-fzf-native.nvim {:run :make} - :nvim-telescope/telescope-file-browser.nvim {} - :nvim-treesitter/nvim-treesitter {:run ":TSUpdate"} - :JoosepAlviste/nvim-ts-context-commentstring {} - :nvim-treesitter/playground {} - :windwp/nvim-autopairs {} - :numToStr/Comment.nvim {} - :lewis6991/gitsigns.nvim {} - :kyazdani42/nvim-web-devicons {} - :kyazdani42/nvim-tree.lua {:requires [:kyazdani42/nvim-web-devicons]} - :moll/vim-bbye {} - :nvim-lualine/lualine.nvim {:requires {1 :kyazdani42/nvim-web-devicons - :opt true}} - :ahmedkhalf/project.nvim {} - :goolord/alpha-nvim {} - :antoinemadec/FixCursorHold.nvim {} - :folke/which-key.nvim {} - :folke/zen-mode.nvim {} - :windwp/nvim-spectre {} - :phaazon/hop.nvim {} - :kevinhwang91/nvim-bqf {} - :norcalli/nvim-colorizer.lua {} - :max397574/better-escape.nvim {} - :nvim-orgmode/orgmode {} - :cappyzawa/trim.nvim {} - :dstein64/vim-startuptime {} - :lewis6991/spellsitter.nvim {} - :tamago324/lir.nvim {} - :j-hui/fidget.nvim {} - :stevearc/aerial.nvim {} - :TimUntersberger/neogit {:requires :nvim-lua/plenary.nvim} - :aktersnurra/minibar.nvim {} - :s1n7ax/nvim-window-picker {}}) +{:wbthomason/packer.nvim {} + :lewis6991/impatient.nvim {} + :Olical/aniseed {} + :nvim-lua/popup.nvim {} + :nvim-lua/plenary.nvim {} + :aktersnurra/no-clown-fiesta.nvim {} + :hrsh7th/nvim-cmp {} + :hrsh7th/cmp-buffer {} + :hrsh7th/cmp-path {} + :hrsh7th/cmp-cmdline {} + :saadparwaiz1/cmp_luasnip {} + :onsails/lspkind-nvim {} + :hrsh7th/cmp-nvim-lsp {} + :neovim/nvim-lspconfig {} + :williamboman/nvim-lsp-installer {} + :tamago324/nlsp-settings.nvim {} + :jose-elias-alvarez/null-ls.nvim {} + :b0o/SchemaStore.nvim {} + :L3MON4D3/LuaSnip {} + :rafamadriz/friendly-snippets {} + :nvim-telescope/telescope.nvim {:requires :nvim-lua/plenary.nvim} + :nvim-telescope/telescope-fzf-native.nvim {:run :make} + :nvim-telescope/telescope-file-browser.nvim {} + :nvim-treesitter/nvim-treesitter {:run ":TSUpdate"} + :JoosepAlviste/nvim-ts-context-commentstring {} + :nvim-treesitter/playground {} + :windwp/nvim-autopairs {} + :numToStr/Comment.nvim {} + :lewis6991/gitsigns.nvim {} + :kyazdani42/nvim-web-devicons {} + :kyazdani42/nvim-tree.lua {:requires [:kyazdani42/nvim-web-devicons]} + :moll/vim-bbye {} + :nvim-lualine/lualine.nvim {:requires {1 :kyazdani42/nvim-web-devicons + :opt true}} + :ahmedkhalf/project.nvim {} + :goolord/alpha-nvim {} + :antoinemadec/FixCursorHold.nvim {} + :folke/which-key.nvim {} + :folke/zen-mode.nvim {} + :windwp/nvim-spectre {} + :phaazon/hop.nvim {} + :kevinhwang91/nvim-bqf {} + :norcalli/nvim-colorizer.lua {} + :max397574/better-escape.nvim {} + :nvim-orgmode/orgmode {} + :cappyzawa/trim.nvim {} + :dstein64/vim-startuptime {} + :lewis6991/spellsitter.nvim {} + :tamago324/lir.nvim {} + :j-hui/fidget.nvim {} + :stevearc/aerial.nvim {} + :TimUntersberger/neogit {:requires :nvim-lua/plenary.nvim} + :aktersnurra/minibar.nvim {} + :s1n7ax/nvim-window-picker {}} diff --git a/fnl/util.fnl b/fnl/util.fnl index 47f9d10..0e90396 100644 --- a/fnl/util.fnl +++ b/fnl/util.fnl @@ -1,20 +1,19 @@ ;; Utility functions. -(module util {autoload {a aniseed.core - nvim aniseed.nvim - : packer - : plugins}}) +(module util {autoload {a aniseed.core nvim aniseed.nvim : packer}}) + +(def- plugins (require :plugins)) (def- path (.. (vim.fn.stdpath :data) :/site/pack/packer/start)) (defn- num-plugins [] (var i 0) - (each [_ _ (pairs plugins.plugins)] + (each [_ _ (pairs plugins)] (set i (+ i 1))) i) (defn- num-installed-plugins [] (length (vim.fn.readdir path))) (defn- install [] (packer.startup (fn [use] - (each [plugin opts (pairs plugins.plugins)] + (each [plugin opts (pairs plugins)] (use (a.assoc opts 1 plugin)))))) (defn load-plugins [] (install) |