-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
42 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
(module mods.tools.nvim-tree {autoload {tree nvim-tree api nvim-tree.api}}) | ||
(module :mods.tools.nvim-tree | ||
{autoload {log :mods/dev/log tree :nvim-tree api :nvim-tree.api}}) | ||
|
||
(tree.setup) | ||
(log.setup {:outfile :/tmp/nvim.log :color true :level :trace}) | ||
|
||
(map [:n :i] :<leader>nn api.tree.toggle {:desc "Toggle NvimTree"}) | ||
(set nvim-tree (require :nvim-tree)) | ||
|
||
(log.trace "Loading nvimtree" nvim-tree) | ||
|
||
(nvim-tree.setup {:on_attach (fn [bufnr] | ||
(log.trace "NvimTree attached") | ||
(map [:n :i] :<leader>nn api.tree.toggle | ||
{:desc "Toggle NvimTree"}))}) | ||
|
||
;;(when (vim.fn.has :autocmd) | ||
;; (let [group (vim.api.nvim_create_augroup :filetype-mappings {:clear true})] | ||
;; (vim.api.nvim_create_autocmd :FileType | ||
;; {: group | ||
;; :pattern "NvimTree" | ||
;; :callback (fn [] | ||
;; (unmap [:n :i] :F))}))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(module mods.ui.monokai {autoload {monokai :monokai-pro}}) | ||
|
||
(monokai.setup {:filter :machine}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters