diff --git a/nvim/.config/nvim/fnl/init.fnl b/nvim/.config/nvim/fnl/init.fnl index d8c1695..043e496 100644 --- a/nvim/.config/nvim/fnl/init.fnl +++ b/nvim/.config/nvim/fnl/init.fnl @@ -38,6 +38,7 @@ (se showmode false) (se undodir (.. vim.env.HOME "/.vim/undo-dir")) (se undofile true) +(set vim.bo.undofile true) (se shortmess (.. vim.o.shortmess "c")) ; Don't give completion messages like 'match 1 of 2' or 'The only match' (se hidden true) (se encoding "utf-8") @@ -63,7 +64,8 @@ (se mouse "a") (se shell "bash") (se background "dark") -;(se completeopt "longest,menuone,noselect") +(se swapfile false) +(se undolevels 10000) (vim-let &t_ut "") diff --git a/nvim/.config/nvim/fnl/keybinds.fnl b/nvim/.config/nvim/fnl/keybinds.fnl index 932ab62..8741169 100644 --- a/nvim/.config/nvim/fnl/keybinds.fnl +++ b/nvim/.config/nvim/fnl/keybinds.fnl @@ -3,8 +3,7 @@ nvim aniseed.nvim utils utils wk which-key - treesitter-selection nvim-treesitter.incremental_selection - trouble trouble} + treesitter-selection nvim-treesitter.incremental_selection} require-macros [macros]}) ; undo autopairs fuckup @@ -46,9 +45,9 @@ "A" (cmd "Lspsaga show_cursor_diagnostics" "Cursor diagnostics") "a" (cmd "Lspsaga show_line_diagnostics" "Line diagnostics") "h" (cmd "RustToggleInlayHints" "Toggle inlay hints") - "r" [#(trouble.open "lsp_references") "Show references"] - "E" [#(trouble.open "lsp_document_diagnostics") "List diagnostics"] - "e" [#(trouble.open "lsp_workspace_diagnostics") "Show diagnostics"] + "r" (cmd "Trouble lsp_references" "Show references") + "E" (cmd "Trouble lsp_document_diagnostics" "List diagnostics") + "e" (cmd "Trouble lsp_workspace_diagnostics" "Show diagnostics") "g" [vim.lsp.buf.definition "Go to definition"] "i" [vim.lsp.buf.implementation "Show implementation"] "f" [vim.lsp.buf.formatting "format file"]} diff --git a/nvim/.config/nvim/fnl/macros.fnl b/nvim/.config/nvim/fnl/macros.fnl index 7f77e15..1d71954 100644 --- a/nvim/.config/nvim/fnl/macros.fnl +++ b/nvim/.config/nvim/fnl/macros.fnl @@ -68,7 +68,12 @@ (a.assoc block 1 name) (when (. block :mod) ;(a.assoc block :config `#((. (require "utils") :safe-require) ,(. block :mod))) - (a.assoc block :config `#(require ,(. block :mod)))) + (a.assoc block :config `#( + ;do + ;(print ,(. block :mod)) + ;(time + ;( + require ,(. block :mod)))) (a.assoc block :mod) (table.insert use-statements block))) diff --git a/nvim/.config/nvim/fnl/plugins.fnl b/nvim/.config/nvim/fnl/plugins.fnl index a07c675..cc695e2 100644 --- a/nvim/.config/nvim/fnl/plugins.fnl +++ b/nvim/.config/nvim/fnl/plugins.fnl @@ -5,9 +5,13 @@ (packer-use "/home/leon/coding/projects/nvim-gehzu" {} :elkowar/kmonad.vim {} - - :gruvbox-community/gruvbox {:opt false - :config #(vim.cmd "colorscheme gruvbox")} + :lifepillar/vim-gruvbox8 {:opt false + :config #((do (vim.cmd "colorscheme gruvbox8") + (set vim.g.gruvbox_italics 0) + (set vim.g.gruvbox_ifiletype_hi_groups 1) + (set vim.g.gruvbox_plugins_hi_groups 1)))} + ;:gruvbox-community/gruvbox {:opt false + ;:config #(vim.cmd "colorscheme gruvbox")} :nvim-telescope/telescope.nvim {:mod "plugins.telescope" :cmd ["Telescope"] @@ -15,12 +19,15 @@ :kyazdani42/nvim-web-devicons {} + :nvim-treesitter/nvim-treesitter {:mod "plugins.treesitter" + :event ["BufEnter"] + :run ":TSUpdate"} + :JoosepAlviste/nvim-ts-context-commentstring {:event ["BufEnter"] + :requires [:nvim-treesitter/nvim-treesitter]} + :nvim-treesitter/playground {:event ["BufEnter"] + :requires [:nvim-treesitter/nvim-treesitter]} ;:p00f/nvim-ts-rainbow {} ;:romgrk/nvim-treesitter-context {} - :JoosepAlviste/nvim-ts-context-commentstring {} - :nvim-treesitter/nvim-treesitter {:mod "plugins.treesitter" - :run ":TSUpdate"} - :nvim-treesitter/playground {} :jiangmiao/auto-pairs {} @@ -32,7 +39,7 @@ ; json query stuff :gennaro-tedesco/nvim-jqx {:ft ["json"]} - :Olical/aniseed {}; :tag "v3.16.0"} + :Olical/aniseed {:branch "develop"}; :tag "v3.16.0"} ; general purpose lua wrappers for nvim stuff :norcalli/nvim.lua {} @@ -40,8 +47,8 @@ ;:glepnir/galaxyline.nvim {:mod "plugins.galaxyline" ;:after "gruvbox"} - :Famiu/feline.nvim {:mod "plugins.feline" - :after "gruvbox"} + :Famiu/feline.nvim {:mod "plugins.feline"} + ;:after "gruvbox"} ;:gwimm/lililine.nvim {:after "gruvbox" ;:mod "plugins.lililine"} @@ -49,13 +56,14 @@ :akinsho/nvim-bufferline.lua {:mod "plugins.bufferline"} ;:romgrk/barbar.nvim {:mod "plugins.barbar"} - :sindrets/diffview.nvim {:mod "plugins.diffview"} + :sindrets/diffview.nvim {:cmd ["DiffviewOpen" "DiffviewToggleFiles"] + :mod "plugins.diffview"} :tweekmonster/startuptime.vim {:cmd ["StartupTime"]} :tpope/vim-repeat {} :junegunn/goyo.vim {:cmd "Goyo"} - ;:lewis6991/gitsigns.nvim {:mod "plugins.gitsigns"} + :lewis6991/gitsigns.nvim {:mod "plugins.gitsigns"} :tpope/vim-fugitive {} @@ -81,15 +89,19 @@ ; code-related ----------------------------------------- <<< - :folke/lsp-trouble.nvim {:mod "plugins.trouble"} + :ray-x/lsp_signature.nvim {:events [:BufEnter]} + :folke/lsp-trouble.nvim {:mod "plugins.trouble" + :cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]} :simrat39/symbols-outline.nvim {:mod "plugins.symbols-outline"} :neovim/nvim-lspconfig {} ;:hrsh7th/nvim-compe {:mod "plugins.compe"} - :/home/leon/coding/prs/nvim-compe {:mod "plugins.compe"} + :/home/leon/coding/prs/nvim-compe {:event [:BufEnter] + :mod "plugins.compe"} - :glepnir/lspsaga.nvim {:mod "plugins.lspsaga"} + :glepnir/lspsaga.nvim {:mod "plugins.lspsaga" + :event [:BufEnter]} :Olical/conjure {} @@ -117,7 +129,7 @@ :pangloss/vim-javascript {} ; syntax highlighting JS :ianks/vim-tsx {} :leafgarland/typescript-vim {} - :sheerun/vim-polyglot {} ; Syntax highlighting for most languages + ;: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"} @@ -133,7 +145,6 @@ :simrat39/rust-tools.nvim {:ft ["rust"]} :qnighy/lalrpop.vim {} - :ray-x/lsp_signature.nvim {} :vmchale/ats-vim {:ft ["ats"]} diff --git a/nvim/.config/nvim/fnl/plugins/sneak.fnl b/nvim/.config/nvim/fnl/plugins/sneak.fnl index 4227e3a..c97b3e8 100644 --- a/nvim/.config/nvim/fnl/plugins/sneak.fnl +++ b/nvim/.config/nvim/fnl/plugins/sneak.fnl @@ -1,5 +1,5 @@ (module plugins.sneak - {autoload {utils utils}}) + {require {utils utils}}) (set vim.g.sneak#label 1) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index b5b9cd0..c5df6b6 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -1,4 +1,7 @@ + + + -- not even used, but epic. stores the path to the root config directory. local vim_config_root = vim.fn.expand(":p:h")