firenvim
This commit is contained in:
parent
e4841da451
commit
0cfcfa4622
3 changed files with 99 additions and 47 deletions
106
init.lua
106
init.lua
|
@ -1,51 +1,91 @@
|
||||||
-- rafi Neovim entry-point
|
vim.g.mapleader = " "
|
||||||
-- https://git.cscherr.de/PlexSheep/neovim-conf
|
local config = require("plex.config")
|
||||||
|
|
||||||
local config = require('plex.config')
|
|
||||||
config.ensure_lazy()
|
config.ensure_lazy()
|
||||||
|
if vim.g.started_by_firenvim == true then
|
||||||
|
vim.o.laststatus = 0
|
||||||
|
|
||||||
-- Start lazy.nvim plugin manager.
|
-- Start lazy.nvim plugin manager.
|
||||||
require('lazy').setup(vim.tbl_extend('keep', config.user_lazy_opts(), {
|
require("lazy").setup(vim.tbl_extend("keep", config.user_lazy_opts(), {
|
||||||
spec = {
|
spec = {
|
||||||
{ import = 'plex.plugins' },
|
{ import = "plex.plugins.core" },
|
||||||
{ import = 'plex.plugins.extras.coding' },
|
{ import = "plex.plugins.editor" },
|
||||||
{ import = 'plex.plugins.extras.ui' },
|
{ import = "plex.plugins.extras.browser" },
|
||||||
{ import = 'plex.plugins.extras.treesitter' },
|
|
||||||
{ import = 'plex.plugins.extras.formatting' },
|
|
||||||
{ import = 'plex.plugins.extras.editor' },
|
|
||||||
{ import = 'plex.plugins.extras.org' },
|
|
||||||
{ import = 'plex.plugins.extras.lang.go' },
|
|
||||||
{ import = 'plex.plugins.extras.lang.cpp' }, -- also does C and rust
|
|
||||||
{ import = 'plex.plugins.extras.lang.json' },
|
|
||||||
{ import = 'plex.plugins.extras.lang.polyglot' },
|
|
||||||
{ import = 'plex.plugins.extras.lang.python' },
|
|
||||||
{ import = 'plex.plugins.extras.lang.yaml' },
|
|
||||||
|
|
||||||
-- This will load a custom user lua/plugins.lua or lua/plugins/*
|
-- This will load a custom user lua/plugins.lua or lua/plugins/*
|
||||||
config.has_user_plugins() and { import = 'plugins' } or nil,
|
config.has_user_plugins() and { import = "plugins" } or nil,
|
||||||
},
|
},
|
||||||
concurrency = vim.loop.available_parallelism() * 2,
|
concurrency = vim.loop.available_parallelism() * 2,
|
||||||
defaults = { lazy = true, version = false },
|
defaults = { lazy = true, version = false },
|
||||||
dev = { path = config.path_join(vim.fn.stdpath('config'), 'dev') },
|
dev = { path = config.path_join(vim.fn.stdpath("config"), "dev") },
|
||||||
install = { missing = true, colorscheme = {} },
|
install = { missing = true, colorscheme = {} },
|
||||||
checker = { enabled = true, notify = false },
|
checker = { enabled = true, notify = false },
|
||||||
change_detection = { notify = false },
|
change_detection = { notify = false },
|
||||||
ui = { border = 'rounded' },
|
ui = { border = "rounded" },
|
||||||
diff = { cmd = 'terminal_git' },
|
diff = { cmd = "terminal_git" },
|
||||||
performance = {
|
performance = {
|
||||||
rtp = {
|
rtp = {
|
||||||
disabled_plugins = {
|
disabled_plugins = {
|
||||||
'gzip',
|
"gzip",
|
||||||
'vimballPlugin',
|
"vimballPlugin",
|
||||||
'matchit',
|
"matchit",
|
||||||
'matchparen',
|
"noice.nvim",
|
||||||
'2html_plugin',
|
"nvim-notify",
|
||||||
'tarPlugin',
|
"2html_plugin",
|
||||||
'tutor',
|
"tarPlugin",
|
||||||
'zipPlugin',
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
config.setup()
|
config.setup()
|
||||||
|
else
|
||||||
|
vim.o.laststatus = 2
|
||||||
|
|
||||||
|
-- Start lazy.nvim plugin manager.
|
||||||
|
require("lazy").setup(vim.tbl_extend("keep", config.user_lazy_opts(), {
|
||||||
|
spec = {
|
||||||
|
{ import = "plex.plugins" },
|
||||||
|
{ import = "plex.plugins.extras.coding" },
|
||||||
|
{ import = "plex.plugins.extras.ui" },
|
||||||
|
{ import = "plex.plugins.extras.treesitter" },
|
||||||
|
{ import = "plex.plugins.extras.formatting" },
|
||||||
|
{ import = "plex.plugins.extras.editor" },
|
||||||
|
{ import = "plex.plugins.extras.org" },
|
||||||
|
{ import = "plex.plugins.extras.lang.go" },
|
||||||
|
{ import = "plex.plugins.extras.lang.cpp" }, -- also does C and rust
|
||||||
|
{ import = "plex.plugins.extras.lang.json" },
|
||||||
|
{ import = "plex.plugins.extras.lang.polyglot" },
|
||||||
|
{ import = "plex.plugins.extras.lang.python" },
|
||||||
|
{ import = "plex.plugins.extras.lang.yaml" },
|
||||||
|
|
||||||
|
-- This will load a custom user lua/plugins.lua or lua/plugins/*
|
||||||
|
config.has_user_plugins() and { import = "plugins" } or nil,
|
||||||
|
},
|
||||||
|
concurrency = vim.loop.available_parallelism() * 2,
|
||||||
|
defaults = { lazy = true, version = false },
|
||||||
|
dev = { path = config.path_join(vim.fn.stdpath("config"), "dev") },
|
||||||
|
install = { missing = true, colorscheme = {} },
|
||||||
|
checker = { enabled = true, notify = false },
|
||||||
|
change_detection = { notify = false },
|
||||||
|
ui = { border = "rounded" },
|
||||||
|
diff = { cmd = "terminal_git" },
|
||||||
|
performance = {
|
||||||
|
rtp = {
|
||||||
|
disabled_plugins = {
|
||||||
|
"gzip",
|
||||||
|
"vimballPlugin",
|
||||||
|
"matchit",
|
||||||
|
"matchparen",
|
||||||
|
"2html_plugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}))
|
||||||
|
|
||||||
|
config.setup()
|
||||||
|
end
|
||||||
|
|
|
@ -32,8 +32,8 @@ map('n', '<leader>l', '<cmd>Lazy<cr>', { desc = 'Open Lazy UI' })
|
||||||
|
|
||||||
-- Move faster between lines
|
-- Move faster between lines
|
||||||
-- See vim-smoothie
|
-- See vim-smoothie
|
||||||
--map({ 'n', 'x' }, 'K', "<C-u>")
|
map({ 'n', 'x' }, 'K', "<C-u>")
|
||||||
--map({ 'n', 'x' }, 'J', "<C-d>")
|
map({ 'n', 'x' }, 'J', "<C-d>")
|
||||||
|
|
||||||
-- Easier line-wise movement
|
-- Easier line-wise movement
|
||||||
map({'n', 'v'}, 'H', '<HOME>')
|
map({'n', 'v'}, 'H', '<HOME>')
|
||||||
|
|
12
lua/plex/plugins/extras/browser/firenvim.lua
Normal file
12
lua/plex/plugins/extras/browser/firenvim.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"glacambre/firenvim",
|
||||||
|
|
||||||
|
-- Lazy load firenvim
|
||||||
|
-- Explanation: https://github.com/folke/lazy.nvim/discussions/463#discussioncomment-4819297
|
||||||
|
lazy = not vim.g.started_by_firenvim,
|
||||||
|
build = function()
|
||||||
|
vim.fn["firenvim#install"](0)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue