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 {: autoload : a : str : utils} (require :dots.prelude))
(local a (autoload :nfnl.core))
(local str (autoload :nfnl.string))
(local utils (autoload :dots.utils))
(local wk (autoload :which-key)) (local wk (autoload :which-key))
(local glance (autoload :glance)) (local glance (autoload :glance))
(local crates (autoload :crates)) (local crates (autoload :crates))

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,4 @@
(local {: autoload} (require :nfnl.module)) (local {: autoload : utils : colors} (require :dots.prelude))
(local utils (autoload :dots.utils))
(local colors (autoload :dots.colors))
(local trouble (autoload :trouble)) (local trouble (autoload :trouble))
(fn setup [] (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 {: autoload : a : str} (require :dots.prelude))
(local a (autoload :nfnl.core))
(local str (autoload :nfnl.string))
(fn plugin [name ?opts] (fn plugin [name ?opts]
(if (= nil ?opts) (if (= nil ?opts)