diff --git a/nvim/.config/nvim/fnl/colors.fnl b/nvim/.config/nvim/fnl/dots/colors.fnl similarity index 97% rename from nvim/.config/nvim/fnl/colors.fnl rename to nvim/.config/nvim/fnl/dots/colors.fnl index ee9a113..b86b84d 100644 --- a/nvim/.config/nvim/fnl/colors.fnl +++ b/nvim/.config/nvim/fnl/dots/colors.fnl @@ -1,4 +1,4 @@ -(module colors +(module dots.colors {} {:dark0_hard "#1d2021" :dark0 "#282828" diff --git a/nvim/.config/nvim/fnl/help-thingy.fnl b/nvim/.config/nvim/fnl/dots/help-thingy.fnl similarity index 97% rename from nvim/.config/nvim/fnl/help-thingy.fnl rename to nvim/.config/nvim/fnl/dots/help-thingy.fnl index 984ee6b..249a818 100644 --- a/nvim/.config/nvim/fnl/help-thingy.fnl +++ b/nvim/.config/nvim/fnl/dots/help-thingy.fnl @@ -1,5 +1,5 @@ -(module help-thingy - {autoload {utils utils +(module dots.help-thingy + {autoload {utils dots.utils a aniseed.core str aniseed.string popup popup diff --git a/nvim/.config/nvim/fnl/keybinds.fnl b/nvim/.config/nvim/fnl/dots/keybinds.fnl similarity index 98% rename from nvim/.config/nvim/fnl/keybinds.fnl rename to nvim/.config/nvim/fnl/dots/keybinds.fnl index 8741169..9aed659 100644 --- a/nvim/.config/nvim/fnl/keybinds.fnl +++ b/nvim/.config/nvim/fnl/dots/keybinds.fnl @@ -1,7 +1,7 @@ -(module keybinds +(module dots.keybinds {autoload {a aniseed.core nvim aniseed.nvim - utils utils + utils dots.utils wk which-key treesitter-selection nvim-treesitter.incremental_selection} require-macros [macros]}) diff --git a/nvim/.config/nvim/fnl/plugins.fnl b/nvim/.config/nvim/fnl/dots/plugins.fnl similarity index 75% rename from nvim/.config/nvim/fnl/plugins.fnl rename to nvim/.config/nvim/fnl/dots/plugins.fnl index 42200e9..5016c26 100644 --- a/nvim/.config/nvim/fnl/plugins.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins.fnl @@ -1,7 +1,6 @@ -(module plugins +(module dots.plugins {require-macros [macros]}) - (packer-use "/home/leon/coding/projects/nvim-gehzu" {} :elkowar/kmonad.vim {} @@ -13,16 +12,13 @@ (set vim.g.gruvbox_plugin_hi_groups 1) (vim.cmd "colorscheme gruvbox8"))} - ;:gruvbox-community/gruvbox {:opt false - ;:config #(vim.cmd "colorscheme gruvbox")} - - :nvim-telescope/telescope.nvim {:mod "plugins.telescope" + :nvim-telescope/telescope.nvim {:mod "dots.plugins.telescope" :cmd ["Telescope"] :requires [:nvim-lua/popup.nvim :nvim-lua/plenary.nvim]} :kyazdani42/nvim-web-devicons {} - :nvim-treesitter/nvim-treesitter {:mod "plugins.treesitter" + :nvim-treesitter/nvim-treesitter {:mod "dots.plugins.treesitter" :event ["BufEnter"] :run ":TSUpdate"} :JoosepAlviste/nvim-ts-context-commentstring {:event ["BufEnter"] @@ -34,8 +30,6 @@ :jiangmiao/auto-pairs {} - - ; :code-biscuits/nvim-biscuits {} ; show opening line after closing curly :folke/which-key.nvim {} @@ -43,31 +37,25 @@ ;:gennaro-tedesco/nvim-jqx {:ft ["json"]} :Olical/aniseed {:branch "develop"}; :tag "v3.16.0"} + ;:Olical/aniseed {}; :tag "v3.16.0"} ; general purpose lua wrappers for nvim stuff :norcalli/nvim.lua {} - ;:glepnir/galaxyline.nvim {:mod "plugins.galaxyline" - ;:after "gruvbox"} + :Famiu/feline.nvim {:mod "dots.plugins.feline"} - :Famiu/feline.nvim {:mod "plugins.feline"} - ;:after "gruvbox"} - - ;:gwimm/lililine.nvim {:after "gruvbox" - ;:mod "plugins.lililine"} - - :akinsho/nvim-bufferline.lua {:mod "plugins.bufferline"} - ;:romgrk/barbar.nvim {:mod "plugins.barbar"} + :akinsho/nvim-bufferline.lua {:mod "dots.plugins.bufferline"} + ;:romgrk/barbar.nvim {:mod "dots.plugins.barbar"} :sindrets/diffview.nvim {:cmd ["DiffviewOpen" "DiffviewToggleFiles"] - :mod "plugins.diffview"} + :mod "dots.plugins.diffview"} :tweekmonster/startuptime.vim {:cmd ["StartupTime"]} :tpope/vim-repeat {} :junegunn/goyo.vim {:cmd "Goyo"} :lewis6991/gitsigns.nvim {:after ["vim-gruvbox8"] - :mod "plugins.gitsigns"} + :mod "dots.plugins.gitsigns"} :tpope/vim-fugitive {} @@ -86,7 +74,7 @@ :iamcco/markdown-preview.nvim {:run vim.fn.mkdp#util#install} ;:mfussenegger/nvim-dap {:opt true - ;:mod "plugins.nvim-dap"} + ;:mod "dots.plugins.nvim-dap"} ;:nvim-telescope/telescope-dap.nvim {:opt true ;:requires [:mfussenegger/nvim-dap ;:nvim-telescope/telescope.nvim]} @@ -94,25 +82,27 @@ ; code-related ----------------------------------------- <<< :ray-x/lsp_signature.nvim {:events [:BufEnter]} - :folke/lsp-trouble.nvim {:mod "plugins.trouble" + :folke/lsp-trouble.nvim {:mod "dots.plugins.trouble" :cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]} - :simrat39/symbols-outline.nvim {:mod "plugins.symbols-outline"} + :simrat39/symbols-outline.nvim {:mod "dots.plugins.symbols-outline"} :neovim/nvim-lspconfig {} - ;:hrsh7th/nvim-compe {:mod "plugins.compe"} + ;:hrsh7th/nvim-compe {:mod "dots.plugins.compe"} :/home/leon/coding/prs/nvim-compe {:event [:BufEnter] - :mod "plugins.compe"} + :mod "dots.plugins.compe"} - :glepnir/lspsaga.nvim {:mod "plugins.lspsaga"} + + :glepnir/lspsaga.nvim {:after "vim-gruvbox8" + :mod "dots.plugins.lspsaga"} :Olical/conjure {} :tami5/compe-conjure {:requires [:Olical/conjure]} - :ciaranm/detectindent {:mod "plugins.detect-indent"} + :ciaranm/detectindent {:mod "dots.plugins.detect-indent"} :pechorin/any-jump.vim {} - :justinmk/vim-sneak {:mod "plugins.sneak"} + :justinmk/vim-sneak {:mod "dots.plugins.sneak"} :psliwka/vim-smoothie {} :editorconfig/editorconfig-vim {} :tommcdo/vim-exchange {} @@ -128,14 +118,14 @@ :kevinoid/vim-jsonc {} - :norcalli/nvim-colorizer.lua {:mod "plugins.nvim-colorizer"} + :norcalli/nvim-colorizer.lua {:mod "dots.plugins.nvim-colorizer"} :pangloss/vim-javascript {} ; syntax highlighting JS :ianks/vim-tsx {} :leafgarland/typescript-vim {} ;:sheerun/vim-polyglot {:event [:BufEnter]} ; Syntax highlighting for most languages :HerringtonDarkholme/yats.vim {} ; typescript syntax highlighting :mxw/vim-jsx {} - :mattn/emmet-vim {:mod "plugins.emmet"} + :mattn/emmet-vim {:mod "dots.plugins.emmet"} :purescript-contrib/purescript-vim {} diff --git a/nvim/.config/nvim/fnl/plugins/bufferline.fnl b/nvim/.config/nvim/fnl/dots/plugins/bufferline.fnl similarity index 95% rename from nvim/.config/nvim/fnl/plugins/bufferline.fnl rename to nvim/.config/nvim/fnl/dots/plugins/bufferline.fnl index df3b4ec..9159464 100644 --- a/nvim/.config/nvim/fnl/plugins/bufferline.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/bufferline.fnl @@ -1,9 +1,9 @@ -(module plugins.bufferline +(module dots.plugins.bufferline {autoload {a aniseed.core nvim aniseed.nvim - utils utils - bufferline bufferline - colors colors}}) + utils dots.utils + colors dots.colors + bufferline bufferline}}) ; :h bufferline-lua-highlights (let [selected {:gui "" :guibg colors.neutral_aqua :guifg colors.dark0} diff --git a/nvim/.config/nvim/fnl/plugins/compe.fnl b/nvim/.config/nvim/fnl/dots/plugins/compe.fnl similarity index 95% rename from nvim/.config/nvim/fnl/plugins/compe.fnl rename to nvim/.config/nvim/fnl/dots/plugins/compe.fnl index 7cd1478..d73082f 100644 --- a/nvim/.config/nvim/fnl/plugins/compe.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/compe.fnl @@ -1,5 +1,5 @@ -(module plugins.compe - {autoload {utils utils +(module dots.plugins.compe + {autoload {utils dots.utils compe compe}}) diff --git a/nvim/.config/nvim/fnl/plugins/detect-indent.fnl b/nvim/.config/nvim/fnl/dots/plugins/detect-indent.fnl similarity index 74% rename from nvim/.config/nvim/fnl/plugins/detect-indent.fnl rename to nvim/.config/nvim/fnl/dots/plugins/detect-indent.fnl index e8fca5b..93589a0 100644 --- a/nvim/.config/nvim/fnl/plugins/detect-indent.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/detect-indent.fnl @@ -1,4 +1,5 @@ -(module plugins.detect-indent) +(module dots.plugins.detect-indent + {}) (vim.cmd "autocmd! BufReadPost * :DetectIndent") (set vim.g.detectindent_preferred_expandtab 1) diff --git a/nvim/.config/nvim/fnl/plugins/diffview.fnl b/nvim/.config/nvim/fnl/dots/plugins/diffview.fnl similarity index 93% rename from nvim/.config/nvim/fnl/plugins/diffview.fnl rename to nvim/.config/nvim/fnl/dots/plugins/diffview.fnl index 43c8789..574544d 100644 --- a/nvim/.config/nvim/fnl/plugins/diffview.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/diffview.fnl @@ -1,4 +1,4 @@ -(module plugins.diffview +(module dots.plugins.diffview {autoload {diffview diffview cb diffview.config}}) diff --git a/nvim/.config/nvim/fnl/plugins/emmet.fnl b/nvim/.config/nvim/fnl/dots/plugins/emmet.fnl similarity index 87% rename from nvim/.config/nvim/fnl/plugins/emmet.fnl rename to nvim/.config/nvim/fnl/dots/plugins/emmet.fnl index 0b66594..22f1402 100644 --- a/nvim/.config/nvim/fnl/plugins/emmet.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/emmet.fnl @@ -1,4 +1,4 @@ -(module plugins.emmet) +(module dots.plugins.emmet {}) (set vim.g.user_emmet_mode "n") (set vim.g.user_emmet_leader_key "e") diff --git a/nvim/.config/nvim/fnl/plugins/feline.fnl b/nvim/.config/nvim/fnl/dots/plugins/feline.fnl similarity index 89% rename from nvim/.config/nvim/fnl/plugins/feline.fnl rename to nvim/.config/nvim/fnl/dots/plugins/feline.fnl index 9c82843..39ff7b6 100644 --- a/nvim/.config/nvim/fnl/plugins/feline.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/feline.fnl @@ -1,14 +1,14 @@ -(module utils - {autoload {a aniseed.core - nvim aniseed.nvim - utils utils - str aniseed.string - colors colors - view aniseed.view - feline feline - feline-git feline.providers.git - feline-lsp feline.providers.lsp} - require-macros [macros]}) +(module dots.plugins.feline + {autoload {a aniseed.core + nvim aniseed.nvim + utils dots.utils + str aniseed.string + colors dots.colors + view aniseed.view + feline feline + feline-git feline.providers.git + feline-lsp feline.providers.lsp} + require-macros [macros]}) (local modes diff --git a/nvim/.config/nvim/fnl/plugins/galaxyline.fnl b/nvim/.config/nvim/fnl/dots/plugins/galaxyline.fnl similarity index 97% rename from nvim/.config/nvim/fnl/plugins/galaxyline.fnl rename to nvim/.config/nvim/fnl/dots/plugins/galaxyline.fnl index 91ff045..1c17008 100644 --- a/nvim/.config/nvim/fnl/plugins/galaxyline.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/galaxyline.fnl @@ -1,9 +1,9 @@ -(module plugins.galaxyline +(module dots.plugins.galaxyline {autoload {a aniseed.core str aniseed.string nvim aniseed.nvim - utils utils - colors colors + utils dots.utils + colors dots.colors galaxyline galaxyline gl-condition galaxyline.condition diff --git a/nvim/.config/nvim/fnl/plugins/gitsigns.fnl b/nvim/.config/nvim/fnl/dots/plugins/gitsigns.fnl similarity index 52% rename from nvim/.config/nvim/fnl/plugins/gitsigns.fnl rename to nvim/.config/nvim/fnl/dots/plugins/gitsigns.fnl index d167602..6434741 100644 --- a/nvim/.config/nvim/fnl/plugins/gitsigns.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/gitsigns.fnl @@ -1,10 +1,10 @@ -(module plugins.gitsigns - {require {utils utils - colors colors - gitsigns gitsigns}}) +(module dots.plugins.gitsigns + {autoload {utils dots.utils + colors dots.colors + gitsigns gitsigns}}) ; https://github.com/lewis6991/gitsigns.nvim -(gitsigns.setup +(gitsigns.setup {:signs {:add {:text "▍"} :change {:text "▍"} :delete {:text "▍"} @@ -15,9 +15,19 @@ :current_line_blame false :update_debounce 100}) -(utils.highlight :GitSignsAdd {:bg "NONE" :fg colors.bright_aqua}) -(utils.highlight :GitSignsDelete {:bg "NONE" :fg colors.neutral_red}) -(utils.highlight :GitSignsChange {:bg "NONE" :fg colors.bright_blue}) + +(vim.cmd + (.. + " + augroup gitsignsHighlight + autocmd ColorScheme * :hi! GitSignsAdd gui='NONE' guibg='NONE' guifg='" colors.bright_aqua "' + autocmd ColorScheme * :hi! GitSignsDelete gui='NONE' guibg='NONE' guifg='" colors.neutral_red "' + autocmd ColorScheme * :hi! GitSignsChange gui='NONE' guibg='NONE' guifg='" colors.bright_blue "' + augroup END + ")) +;(utils.highlight :GitSignsAdd {:bg "NONE" :fg colors.bright_aqua}) +;(utils.highlight :GitSignsDelete {:bg "NONE" :fg colors.neutral_red}) +;(utils.highlight :GitSignsChange {:bg "NONE" :fg colors.bright_blue}) ;(print "This is right before setting and then printing the highlight group") ;(vim.cmd "highlight GitSignsAdd guibg='NONE' guifg='#ff2200'") diff --git a/nvim/.config/nvim/fnl/plugins/lililine.fnl b/nvim/.config/nvim/fnl/dots/plugins/lililine.fnl similarity index 98% rename from nvim/.config/nvim/fnl/plugins/lililine.fnl rename to nvim/.config/nvim/fnl/dots/plugins/lililine.fnl index 42aff26..f5eff06 100644 --- a/nvim/.config/nvim/fnl/plugins/lililine.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/lililine.fnl @@ -1,9 +1,9 @@ -(module plugins.lililine +(module dots.plugins.lililine {autoload {a aniseed.core str aniseed.string nvim aniseed.nvim - utils utils - colors colors + utils dots.utils + colors dots.colors line lililine} require-macros [macros]}) diff --git a/nvim/.config/nvim/fnl/plugins/lsp.fnl b/nvim/.config/nvim/fnl/dots/plugins/lsp.fnl similarity index 98% rename from nvim/.config/nvim/fnl/plugins/lsp.fnl rename to nvim/.config/nvim/fnl/dots/plugins/lsp.fnl index b252ddf..b84db23 100644 --- a/nvim/.config/nvim/fnl/plugins/lsp.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/lsp.fnl @@ -1,8 +1,8 @@ -(module plugins.lsp +(module dots.plugins.lsp {autoload {a aniseed.core lsp lspconfig lsp-configs lspconfig.configs - utils utils} + utils dots.utils} require-macros [macros]}) diff --git a/nvim/.config/nvim/fnl/plugins/lspsaga.fnl b/nvim/.config/nvim/fnl/dots/plugins/lspsaga.fnl similarity index 93% rename from nvim/.config/nvim/fnl/plugins/lspsaga.fnl rename to nvim/.config/nvim/fnl/dots/plugins/lspsaga.fnl index 5a564b9..453560c 100644 --- a/nvim/.config/nvim/fnl/plugins/lspsaga.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/lspsaga.fnl @@ -1,8 +1,8 @@ -(module plugins.lspsaga - {autoload {utils utils - colors colors +(module dots.plugins.lspsaga + {autoload {utils dots.utils + colors dots.colors} - saga lspsaga}}) + require {saga lspsaga}}) (saga.init_lsp_saga diff --git a/nvim/.config/nvim/fnl/plugins/nvim-colorizer.fnl b/nvim/.config/nvim/fnl/dots/plugins/nvim-colorizer.fnl similarity index 87% rename from nvim/.config/nvim/fnl/plugins/nvim-colorizer.fnl rename to nvim/.config/nvim/fnl/dots/plugins/nvim-colorizer.fnl index 93839db..f615ea2 100644 --- a/nvim/.config/nvim/fnl/plugins/nvim-colorizer.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/nvim-colorizer.fnl @@ -1,4 +1,4 @@ -(module plugins.nvim-colorizer +(module dots.plugins.nvim-colorizer {autoload {colorizer colorizer}}) diff --git a/nvim/.config/nvim/fnl/plugins/nvim-dap.fnl b/nvim/.config/nvim/fnl/dots/plugins/nvim-dap.fnl similarity index 91% rename from nvim/.config/nvim/fnl/plugins/nvim-dap.fnl rename to nvim/.config/nvim/fnl/dots/plugins/nvim-dap.fnl index 987cfe3..799e425 100644 --- a/nvim/.config/nvim/fnl/plugins/nvim-dap.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/nvim-dap.fnl @@ -1,7 +1,7 @@ -(module plugins.nvim-dap - {:require {a aniseed.core - utils utils - dap dap}}) +(module dots.plugins.nvim-dap + {autoload {a aniseed.core + utils dots.utils + dap dap}}) (set dap.adapters.cpp diff --git a/nvim/.config/nvim/fnl/plugins/sneak.fnl b/nvim/.config/nvim/fnl/dots/plugins/sneak.fnl similarity index 72% rename from nvim/.config/nvim/fnl/plugins/sneak.fnl rename to nvim/.config/nvim/fnl/dots/plugins/sneak.fnl index c97b3e8..363c2b2 100644 --- a/nvim/.config/nvim/fnl/plugins/sneak.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/sneak.fnl @@ -1,5 +1,5 @@ -(module plugins.sneak - {require {utils utils}}) +(module dots.plugins.sneak + {autoload {utils dots.utils}}) (set vim.g.sneak#label 1) diff --git a/nvim/.config/nvim/fnl/plugins/symbols-outline.fnl b/nvim/.config/nvim/fnl/dots/plugins/symbols-outline.fnl similarity index 76% rename from nvim/.config/nvim/fnl/plugins/symbols-outline.fnl rename to nvim/.config/nvim/fnl/dots/plugins/symbols-outline.fnl index bfe95b5..5cfeffb 100644 --- a/nvim/.config/nvim/fnl/plugins/symbols-outline.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/symbols-outline.fnl @@ -1,4 +1,4 @@ -(module plugins.symbols-outline +(module dots.plugins.symbols-outline {require {symbols-outline symbols-outline}}) (symbols-outline.setup {:highlight_hovered_item true :show_guides true}) diff --git a/nvim/.config/nvim/fnl/plugins/telescope.fnl b/nvim/.config/nvim/fnl/dots/plugins/telescope.fnl similarity index 80% rename from nvim/.config/nvim/fnl/plugins/telescope.fnl rename to nvim/.config/nvim/fnl/dots/plugins/telescope.fnl index b5df69e..421b38e 100644 --- a/nvim/.config/nvim/fnl/plugins/telescope.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/telescope.fnl @@ -1,5 +1,5 @@ -(module plugins.telescope - {autoload {utils utils +(module dots.plugins.telescope + {autoload {utils dots.utils telescope telescope actions telescope.actions}}) diff --git a/nvim/.config/nvim/fnl/plugins/treesitter.fnl b/nvim/.config/nvim/fnl/dots/plugins/treesitter.fnl similarity index 93% rename from nvim/.config/nvim/fnl/plugins/treesitter.fnl rename to nvim/.config/nvim/fnl/dots/plugins/treesitter.fnl index 77ecc2a..b7a264f 100644 --- a/nvim/.config/nvim/fnl/plugins/treesitter.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/treesitter.fnl @@ -1,5 +1,6 @@ -(module plugins.treesitter - {autoload {a aniseed.core} +(module dots.plugins.treesitter + {autoload {utils dots.utils + a aniseed.core} require {configs nvim-treesitter.configs} require-macros [macros]}) diff --git a/nvim/.config/nvim/fnl/plugins/trouble.fnl b/nvim/.config/nvim/fnl/dots/plugins/trouble.fnl similarity index 89% rename from nvim/.config/nvim/fnl/plugins/trouble.fnl rename to nvim/.config/nvim/fnl/dots/plugins/trouble.fnl index b18d0fe..f8cca5c 100644 --- a/nvim/.config/nvim/fnl/plugins/trouble.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/trouble.fnl @@ -1,6 +1,6 @@ -(module plugins.trouble - {autoload {utils utils - colors colors} +(module dots.plugins.trouble + {autoload {utils dots.utils + colors dots.colors} require {trouble trouble}}) (trouble.setup diff --git a/nvim/.config/nvim/fnl/smart-compe-conjure.fnl b/nvim/.config/nvim/fnl/dots/smart-compe-conjure.fnl similarity index 93% rename from nvim/.config/nvim/fnl/smart-compe-conjure.fnl rename to nvim/.config/nvim/fnl/dots/smart-compe-conjure.fnl index 9b49076..41e2adc 100644 --- a/nvim/.config/nvim/fnl/smart-compe-conjure.fnl +++ b/nvim/.config/nvim/fnl/dots/smart-compe-conjure.fnl @@ -1,11 +1,11 @@ -(module smart-compe-conjure - {autoload {utils utils +(module dots.smart-compe-conjure + {autoload {utils dots.utils a aniseed.core str aniseed.string view aniseed.view popup popup compe compe - help help-thingy} + help dots.help-thingy} require-macros [macros]}) diff --git a/nvim/.config/nvim/fnl/utils.fnl b/nvim/.config/nvim/fnl/dots/utils.fnl similarity index 96% rename from nvim/.config/nvim/fnl/utils.fnl rename to nvim/.config/nvim/fnl/dots/utils.fnl index 5e15909..bb20889 100644 --- a/nvim/.config/nvim/fnl/utils.fnl +++ b/nvim/.config/nvim/fnl/dots/utils.fnl @@ -1,7 +1,7 @@ -(module utils - {require {a aniseed.core - nvim aniseed.nvim - str aniseed.string} +(module dots.utils + {autoload {a aniseed.core + nvim aniseed.nvim + str aniseed.string} require-macros [macros]}) (defn plugin-installed? [name] @@ -104,6 +104,10 @@ (surround-if-present " gui='"colset.gui"'"))))) + + + + (defn shorten-path [path seg-length shorten-after] "shorten a filepath by truncating the segments to n characters, if the path exceeds a given length" (let [segments (str.split path "/")] diff --git a/nvim/.config/nvim/fnl/init.fnl b/nvim/.config/nvim/fnl/init.fnl index 48835b6..9fccd5c 100644 --- a/nvim/.config/nvim/fnl/init.fnl +++ b/nvim/.config/nvim/fnl/init.fnl @@ -1,9 +1,9 @@ (module init - {require {utils utils + {autoload {utils dots.utils nvim aniseed.nvim a aniseed.core str aniseed.string - colors colors} + colors dots.colors} require-macros [macros]}) (macro make-errors-epic [f] @@ -13,11 +13,10 @@ (when (vim.fn.has "termguicolors") (se termguicolors true)) +(make-errors-epic (require "dots.plugins")) -(make-errors-epic (require "plugins")) - -(make-errors-epic (require "plugins.lsp")) -(make-errors-epic (require "keybinds")) +(make-errors-epic (require "dots.plugins.lsp")) +(make-errors-epic (require "dots.keybinds")) ;(se runtimepath (.. vim.o.runtimepath ",/home/leon/coding/projects/kbd-vim")) @@ -165,8 +164,6 @@ ; foldend - - (vim.cmd "command! -nargs=1 L :lua print(vim.inspect())")