[NeoVim] Add FireNvim
This commit is contained in:
@@ -105,4 +105,8 @@
|
|||||||
(use! :folke/noice.nvim
|
(use! :folke/noice.nvim
|
||||||
:event :VimEnter
|
:event :VimEnter
|
||||||
:requires [:MunifTanjim/nui.nvim]
|
:requires [:MunifTanjim/nui.nvim]
|
||||||
:module :settings.noice))
|
:module :settings.noice)
|
||||||
|
|
||||||
|
(use! :glacambre/firenvim
|
||||||
|
:run (fn [] ((. vim.fn :firenvim#install) 0))
|
||||||
|
:module :settings.firenvim))
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
(import-macros {: map!} :hibiscus.vim)
|
(import-macros {: map!} :hibiscus.vim)
|
||||||
(import-macros {: setup} :macros)
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
(setup :aerial
|
(if (= vim.g.started_by_firenvim nil)
|
||||||
{:backends [:lsp :treesitter]
|
(setup :aerial
|
||||||
:layout {:width 30
|
{:backends [:lsp :treesitter]
|
||||||
:placement "edge"}
|
:layout {:width 30
|
||||||
:attach_mode "global"
|
:placement "edge"}
|
||||||
:close_automatic_events [:unsupported]
|
:attach_mode "global"
|
||||||
:open_automatic true
|
:close_automatic_events [:unsupported]
|
||||||
:ignore {:filetypes [""
|
:open_automatic true
|
||||||
"neo-tree"
|
:ignore {:filetypes [""
|
||||||
"aerial"
|
"neo-tree"
|
||||||
"packer"
|
"aerial"
|
||||||
"qf"
|
"packer"
|
||||||
"help"
|
"qf"
|
||||||
"DiffviewFileHistory"]}})
|
"help"
|
||||||
|
"DiffviewFileHistory"]}}))
|
||||||
|
|||||||
@@ -3,16 +3,17 @@
|
|||||||
|
|
||||||
(local colors (require :solarized.colors))
|
(local colors (require :solarized.colors))
|
||||||
|
|
||||||
(setup :bufferline
|
(if (= vim.g.started_by_firenvim nil)
|
||||||
{:options {:close_command "Bdelete %d"
|
(setup :bufferline
|
||||||
:right_mouse_command "Bdelete %d"
|
{:options {:close_command "Bdelete %d"
|
||||||
:offsets [{:filetype "neo-tree" :text "File Explorer" :padding 1}
|
:right_mouse_command "Bdelete %d"
|
||||||
{:filetype "aerial" :text "Outline" :padding 1}]
|
:offsets [{:filetype "neo-tree" :text "File Explorer" :padding 1}
|
||||||
:enforce_regular_tabs true
|
{:filetype "aerial" :text "Outline" :padding 1}]
|
||||||
:separator_style "slant"}
|
:enforce_regular_tabs true
|
||||||
:highlights {:separator {:fg colors.bg_alt}
|
:separator_style "slant"}
|
||||||
:separator_visible {:fg colors.bg_alt}
|
:highlights {:separator {:fg colors.bg_alt}
|
||||||
:separator_selected {:fg colors.bg_alt}}})
|
:separator_visible {:fg colors.bg_alt}
|
||||||
|
:separator_selected {:fg colors.bg_alt}}}))
|
||||||
|
|
||||||
(map! [n] :<S-Right> ":bnext<CR>")
|
(map! [n] :<S-Right> ":bnext<CR>")
|
||||||
(map! [n] :<S-Left> ":bprevious<CR>")
|
(map! [n] :<S-Left> ":bprevious<CR>")
|
||||||
|
|||||||
@@ -17,16 +17,17 @@
|
|||||||
:white colors.white
|
:white colors.white
|
||||||
:yellow colors.yellow})
|
:yellow colors.yellow})
|
||||||
|
|
||||||
(setup :feline
|
(if (= vim.g.started_by_firenvim nil)
|
||||||
{:theme theme
|
(setup :feline
|
||||||
:force_inactive {:filetypes ["^neo\\-tree$"
|
{:theme theme
|
||||||
"^aerial$"
|
:force_inactive {:filetypes ["^neo\\-tree$"
|
||||||
"^packer$"
|
"^aerial$"
|
||||||
"^startify$"
|
"^packer$"
|
||||||
"^fugitive$"
|
"^startify$"
|
||||||
"^fugitiveblame$"
|
"^fugitive$"
|
||||||
"^qf$"
|
"^fugitiveblame$"
|
||||||
"^help$"
|
"^qf$"
|
||||||
"^DiffviewFileHistory"]
|
"^help$"
|
||||||
:buftypes ["^terminal$"]
|
"^DiffviewFileHistory"]
|
||||||
:bufnames ["neo\\-.*"]}})
|
:buftypes ["^terminal$"]
|
||||||
|
:bufnames ["neo\\-.*"]}}))
|
||||||
|
|||||||
9
.config/nvim/fnl/settings/firenvim.fnl
Normal file
9
.config/nvim/fnl/settings/firenvim.fnl
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
(import-macros {: g!} :hibiscus.vim)
|
||||||
|
|
||||||
|
(g! :firenvim_config {:globalSettings {:alt "all"}
|
||||||
|
:localSettings {:.* {:cmdline "neovim"
|
||||||
|
:content "text"
|
||||||
|
:priority 0
|
||||||
|
:selector "textarea"
|
||||||
|
:takeover "always"}
|
||||||
|
:https://zimbra.inria.fr/ {:selector "body[id=tinymce]"}}})
|
||||||
@@ -72,6 +72,7 @@
|
|||||||
(augroup! :neo-tree [[FileType] [qf] "set nobuflisted|call feedkeys(\"F\")"])
|
(augroup! :neo-tree [[FileType] [qf] "set nobuflisted|call feedkeys(\"F\")"])
|
||||||
|
|
||||||
; Startup
|
; Startup
|
||||||
(if (or (= (vim.fn.expand "%") "") (not= (vim.fn.isdirectory (vim.fn.expand "%")) 0))
|
(if (= vim.g.started_by_firenvim nil)
|
||||||
((. (require :neo-tree.command) :execute) {:action "focus" :dir (vim.fn.getcwd)})
|
(if (or (= (vim.fn.expand "%") "") (not= (vim.fn.isdirectory (vim.fn.expand "%")) 0))
|
||||||
((. (require :neo-tree.command) :execute) {:action "show" :dir (vim.fn.getcwd)}))
|
((. (require :neo-tree.command) :execute) {:action "focus" :dir (vim.fn.getcwd)})
|
||||||
|
((. (require :neo-tree.command) :execute) {:action "show" :dir (vim.fn.getcwd)})))
|
||||||
|
|||||||
Reference in New Issue
Block a user