move to having a prelude

This commit is contained in:
Leon Kowarschick 2023-10-06 18:35:19 +02:00
parent d446425f25
commit f4d1821217
Signed by: ElKowar
GPG key ID: 72C759DA738DE3A2
12 changed files with 30 additions and 50 deletions

View file

@ -1,7 +1,4 @@
(local {: autoload} (require :nfnl.module))
(local a (autoload :nfnl.core))
(local str (autoload :nfnl.string))
(local utils (autoload :dots.utils))
(local {: autoload : a : str : utils} (require :dots.prelude))
(local wk (autoload :which-key))
(local glance (autoload :glance))
(local crates (autoload :crates))

View file

@ -1,8 +1,5 @@
(local {: autoload} (require :nfnl.module))
(local a (autoload :aniseed.core))
(local utils (autoload :dots.utils))
(local {: autoload : a : utils : colors} (require :dots.prelude))
(local bufferline (autoload :bufferline))
(local colors (autoload :dots.colors))
(vim.cmd "hi link BufferLineTabSeparatorSelected BufferLineSeparatorSelected")
(vim.cmd "hi link BufferLineTabSeparator BufferLineSeparator")

View file

@ -1,5 +1,4 @@
(local {: autoload} (require :nfnl.module))
(local utils (autoload :dots.utils))
(local {: autoload : utils} (require :dots.prelude))
(local cmp (autoload :cmp))
; check this for coloring maybe

View file

@ -1,5 +1,4 @@
(local {: autoload} (require :nfnl.module))
(local utils (require :dots.utils))
(local {: autoload : utils} (require :dots.prelude))
(local cb (autoload :diffview.config))
(local diffview (autoload :diffview))

View file

@ -1,8 +1,4 @@
(local {: autoload} (require :nfnl.module))
(local utils (autoload :dots.utils))
(local a (autoload :nfnl.core))
(local str (autoload :nfnl.string))
(local colors (autoload :dots.colors))
(local {: autoload : utils : a : str : colors} (require :dots.prelude))
(local feline (autoload :feline))

View file

@ -1,8 +1,6 @@
(local {: autoload} (require :nfnl.module))
(local a (autoload :aniseed.core))
(local {: autoload : a : utils} (require :dots.prelude))
(local lsp (autoload :lspconfig))
(local lsp-configs (autoload :lspconfig/configs))
(local utils (autoload :dots.utils))
(local cmp_nvim_lsp (autoload :cmp_nvim_lsp))
(fn setup []

View file

@ -1,8 +1,7 @@
(local {: autoload} (require :nfnl.module))
(local {: autoload : utils} (require :dots.prelude))
(local lsp (autoload :lspconfig))
(local configs (autoload :lspconfig/configs))
(local lsputil (autoload :lspconfig/util))
(local utils (require :dots.utils))
(fn cmds [xs]

View file

@ -1,22 +1,16 @@
(local {: autoload} (require :nfnl.module))
(local {: autoload : utils} (require :dots.prelude))
(local colorizer (autoload :colorizer))
(local utils (autoload :dots.utils))
(fn setup []
; this really shouldn't be necessary,.. but it is
(set vim.o.termguicolors true)
(colorizer.setup
["*"]
{:RGB true
:RRGGBB true
:names true
:RRGGBBAA true
:rgb_fn true
:hsl_fn true
:mode "background"}))
[(utils.plugin :norcalli/nvim-colorizer.lua
{:event "VeryLazy"
:lazy true
:config setup})]
[(utils.plugin
:norcalli/nvim-colorizer.lua
{:event "VeryLazy"
:lazy true
:config #(colorizer.setup
["*"]
{:RGB true
:RRGGBB true
:names true
:RRGGBBAA true
:rgb_fn true
:hsl_fn true
:mode "background"})})]

View file

@ -1,5 +1,4 @@
(local {: autoload} (require :nfnl.module))
(local utils (autoload :dots.utils))
(local {: autoload : utils} (require :dots.prelude))
(local telescope (autoload :telescope))
(local actions (autoload :telescope.actions))

View file

@ -1,6 +1,4 @@
(local {: autoload} (require :nfnl.module))
(local utils (autoload :dots.utils))
(local colors (autoload :dots.colors))
(local {: autoload : utils : colors} (require :dots.prelude))
(local trouble (autoload :trouble))
(fn setup []

View file

@ -0,0 +1,6 @@
(local {: autoload} (require :nfnl.module))
{: autoload
:a (autoload :nfnl.core)
:str (autoload :nfnl.string)
:utils (autoload :dots.utils)
:colors (autoload :dots.colors)}

View file

@ -1,6 +1,4 @@
(local {: autoload} (require :nfnl.module))
(local a (autoload :nfnl.core))
(local str (autoload :nfnl.string))
(local {: autoload : a : str} (require :dots.prelude))
(fn plugin [name ?opts]
(if (= nil ?opts)