[NeoVim] Updates

This commit is contained in:
2022-09-08 18:42:49 +02:00
parent 2c900d1ca5
commit 86e2d5ab84
5 changed files with 21 additions and 7 deletions

View File

@@ -99,4 +99,6 @@
:module :settings.vimtex) :module :settings.vimtex)
(use! :edluffy/hologram.nvim (use! :edluffy/hologram.nvim
:module :settings.hologram)) :module :settings.hologram)
(use! :lambdalisue/suda.vim))

View File

@@ -2,10 +2,19 @@
(import-macros {: setup} :macros) (import-macros {: setup} :macros)
(setup :aerial (setup :aerial
{:close_behavior "global" {:backends [:lsp :treesitter]
:layout {:width 30
:placement "edge"}
:attach_mode "global"
:close_automatic_events [:unsupported]
:open_automatic true :open_automatic true
:placement_editor_edge true :ignore {:filetypes [""
:width 30 "neo-tree"
"aerial"
"packer"
"qf"
"help"
"DiffviewFileHistory"]}
:on_attach (fn [bufnr] :on_attach (fn [bufnr]
(map! [n :buffer] :t (fn [] (map! [n :buffer] :t (fn []
(vim.tbl_map (fn [buf] (vim.tbl_map (fn [buf]

View File

@@ -73,5 +73,5 @@
; Startup ; Startup
(if (or (= (vim.fn.expand "%") "") (not= (vim.fn.isdirectory (vim.fn.expand "%")) 0)) (if (or (= (vim.fn.expand "%") "") (not= (vim.fn.isdirectory (vim.fn.expand "%")) 0))
((. (require :neo-tree.command) :_command) (vim.fn.getcwd)) ((. (require :neo-tree.command) :execute) {:action "focus" :dir (vim.fn.getcwd)})
((. (require :neo-tree.command) :_command) :show (vim.fn.getcwd))) ((. (require :neo-tree.command) :execute) {:action "show" :dir (vim.fn.getcwd)}))

View File

@@ -21,9 +21,12 @@ if tangerine_bootstrapped then
hooks = {'oninit'} hooks = {'oninit'}
} }
}) })
require('init')
else else
require('tangerine').setup({}) require('tangerine').setup({})
if (#(require('tangerine.vim.hooks').run()) > 0) then local diagnostics = require('tangerine.vim.hooks').run()
require('init')
if #diagnostics > 0 then
require('packer').sync() require('packer').sync()
end end
end end