mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-25 13:14:42 +02:00
more speed
This commit is contained in:
parent
5ff06a4b74
commit
c1c8cd600c
2 changed files with 51 additions and 20 deletions
|
@ -29,7 +29,7 @@ end
|
||||||
local lua_arguments = {}
|
local lua_arguments = {}
|
||||||
|
|
||||||
local luaFormat = {
|
local luaFormat = {
|
||||||
formatCommand = "lua-format -i --no-keep-simple-function-one-line --column-limit=120",
|
formatCommand = "lua-format -i --no-keep-simple-function-one-line --column-limit=80",
|
||||||
formatStdin = true
|
formatStdin = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@ local fn = vim.fn
|
||||||
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
|
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
|
||||||
|
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
execute("!git clone https://github.com/wbthomason/packer.nvim " .. install_path)
|
execute("!git clone https://github.com/wbthomason/packer.nvim " ..
|
||||||
|
install_path)
|
||||||
execute "packadd packer.nvim"
|
execute "packadd packer.nvim"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -33,7 +34,8 @@ return require("packer").startup(function(use)
|
||||||
use "wbthomason/packer.nvim"
|
use "wbthomason/packer.nvim"
|
||||||
|
|
||||||
-- TODO refactor all of this (for now it works, but yes I know it could be wrapped in a simpler function)
|
-- TODO refactor all of this (for now it works, but yes I know it could be wrapped in a simpler function)
|
||||||
use {"neovim/nvim-lspconfig", opt = true}
|
use {"neovim/nvim-lspconfig", event = "BufRead", opt = true}
|
||||||
|
use {"glepnir/lspsaga.nvim", opt = true}
|
||||||
use {"kabouzeid/nvim-lspinstall", opt = true}
|
use {"kabouzeid/nvim-lspinstall", opt = true}
|
||||||
-- Telescope
|
-- Telescope
|
||||||
use {"nvim-lua/popup.nvim", opt = true}
|
use {"nvim-lua/popup.nvim", opt = true}
|
||||||
|
@ -46,46 +48,70 @@ return require("packer").startup(function(use)
|
||||||
-- Treesitter
|
-- Treesitter
|
||||||
use {
|
use {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
-- event = "BufRead"
|
|
||||||
|
-- event = "BufRead",
|
||||||
|
|
||||||
run = ":TSUpdate"
|
run = ":TSUpdate"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Explorer
|
-- Explorer
|
||||||
-- use {"kyazdani42/nvim-tree.lua", opt = true}
|
-- use {"kyazdani42/nvim-tree.lua", opt = true}
|
||||||
|
|
||||||
use {"kyazdani42/nvim-tree.lua", opt = true, cmd = "NvimTreeToggle", config = require_plugin("nvim-tree.lua")}
|
use {"kyazdani42/nvim-tree.lua", opt = true, cmd = "NvimTreeToggle"}
|
||||||
|
|
||||||
-- use {'lukas-reineke/indent-blankline.nvim', opt=true, branch = 'lua'}
|
-- use {'lukas-reineke/indent-blankline.nvim', opt=true, branch = 'lua'}
|
||||||
use {"lewis6991/gitsigns.nvim", config = require_plugin("gitsigns.nvim"), event = "BufRead", opt = true}
|
use {"lewis6991/gitsigns.nvim", event = "BufRead", opt = true}
|
||||||
|
|
||||||
use {"folke/which-key.nvim", config = require_plugin("which-key.nvim"), opt = true}
|
use {"folke/which-key.nvim", opt = true}
|
||||||
use {"windwp/nvim-autopairs", config = require_plugin("nvim-autopairs"), event = "InsertEnter", opt = true}
|
use {"windwp/nvim-autopairs", event = "InsertEnter", opt = true}
|
||||||
|
|
||||||
-- Comments
|
-- Comments
|
||||||
use {"terrortylor/nvim-comment", config = require_plugin("nvim-comment"), opt = true}
|
use {
|
||||||
|
"terrortylor/nvim-comment",
|
||||||
|
config = require_plugin("nvim-comment"),
|
||||||
|
opt = true
|
||||||
|
}
|
||||||
|
|
||||||
-- Color
|
-- Color
|
||||||
use {"christianchiarulli/nvcode-color-schemes.vim", config = require_plugin("nvcode-color-schemes.vim"), opt = true}
|
use {
|
||||||
|
"christianchiarulli/nvcode-color-schemes.vim",
|
||||||
|
config = require_plugin("nvcode-color-schemes.vim"),
|
||||||
|
opt = true
|
||||||
|
}
|
||||||
|
|
||||||
-- Icons
|
-- Icons
|
||||||
use {"kyazdani42/nvim-web-devicons", config = require_plugin("nvim-web-devicons"), opt = true}
|
use {
|
||||||
|
"kyazdani42/nvim-web-devicons",
|
||||||
|
config = require_plugin("nvim-web-devicons"),
|
||||||
|
opt = true
|
||||||
|
}
|
||||||
|
|
||||||
-- Status Line and Bufferline
|
-- Status Line and Bufferline
|
||||||
use {"glepnir/galaxyline.nvim", config = require_plugin("galaxyline.nvim"), opt = true}
|
use {
|
||||||
use {"romgrk/barbar.nvim", config = require_plugin("barbar.nvim"), opt = true}
|
"glepnir/galaxyline.nvim",
|
||||||
|
config = require_plugin("galaxyline.nvim"),
|
||||||
|
opt = true
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
"romgrk/barbar.nvim",
|
||||||
|
config = require_plugin("barbar.nvim"),
|
||||||
|
opt = true
|
||||||
|
}
|
||||||
|
|
||||||
use {"hrsh7th/vim-vsnip", config = require_plugin("vim-vsnip"), opt = true}
|
use {"hrsh7th/vim-vsnip", config = require_plugin("vim-vsnip"), opt = true}
|
||||||
|
|
||||||
require_plugin("nvim-lspconfig")
|
require_plugin("nvim-lspconfig")
|
||||||
|
require_plugin("lspsaga.nvim")
|
||||||
require_plugin("nvim-lspinstall")
|
require_plugin("nvim-lspinstall")
|
||||||
require_plugin("popup.nvim")
|
require_plugin("popup.nvim")
|
||||||
require_plugin("plenary.nvim")
|
require_plugin("plenary.nvim")
|
||||||
require_plugin("telescope.nvim")
|
require_plugin("telescope.nvim")
|
||||||
require_plugin("nvim-compe")
|
require_plugin("nvim-compe")
|
||||||
require_plugin("nvim-treesitter")
|
require_plugin("nvim-treesitter")
|
||||||
|
require_plugin("nvim-tree.lua")
|
||||||
|
require_plugin("gitsigns.nvim")
|
||||||
|
require_plugin("which-key.nvim")
|
||||||
|
require_plugin("nvim-autopairs")
|
||||||
|
|
||||||
-- Extras
|
-- Extras
|
||||||
if O.extras then
|
if O.extras then
|
||||||
|
@ -93,7 +119,11 @@ return require("packer").startup(function(use)
|
||||||
use {'metakirby5/codi.vim', opt = true}
|
use {'metakirby5/codi.vim', opt = true}
|
||||||
require_plugin('codi.vim')
|
require_plugin('codi.vim')
|
||||||
-- Markdown preview
|
-- Markdown preview
|
||||||
use {'iamcco/markdown-preview.nvim', run = 'cd app && npm install', opt = true}
|
use {
|
||||||
|
'iamcco/markdown-preview.nvim',
|
||||||
|
run = 'cd app && npm install',
|
||||||
|
opt = true
|
||||||
|
}
|
||||||
require_plugin('markdown-preview.nvim')
|
require_plugin('markdown-preview.nvim')
|
||||||
-- Floating terminal
|
-- Floating terminal
|
||||||
use {'numToStr/FTerm.nvim', opt = true}
|
use {'numToStr/FTerm.nvim', opt = true}
|
||||||
|
@ -105,7 +135,11 @@ return require("packer").startup(function(use)
|
||||||
use {'nacro90/numb.nvim', opt = true}
|
use {'nacro90/numb.nvim', opt = true}
|
||||||
require_plugin('numb.nvim')
|
require_plugin('numb.nvim')
|
||||||
-- HTML preview
|
-- HTML preview
|
||||||
use {'turbio/bracey.vim', run = 'npm install --prefix server', opt = true}
|
use {
|
||||||
|
'turbio/bracey.vim',
|
||||||
|
run = 'npm install --prefix server',
|
||||||
|
opt = true
|
||||||
|
}
|
||||||
require_plugin('bracey.vim')
|
require_plugin('bracey.vim')
|
||||||
-- Better motions
|
-- Better motions
|
||||||
use {'phaazon/hop.nvim', opt = true}
|
use {'phaazon/hop.nvim', opt = true}
|
||||||
|
@ -155,9 +189,6 @@ return require("packer").startup(function(use)
|
||||||
use {"ahmedkhalf/lsp-rooter.nvim", opt = true} -- with this nvim-tree will follow you
|
use {"ahmedkhalf/lsp-rooter.nvim", opt = true} -- with this nvim-tree will follow you
|
||||||
require_plugin('lsp-rooter.nvim')
|
require_plugin('lsp-rooter.nvim')
|
||||||
|
|
||||||
use {"glepnir/lspsaga.nvim", opt = true}
|
|
||||||
require_plugin("lspsaga.nvim")
|
|
||||||
|
|
||||||
use {"ChristianChiarulli/dashboard-nvim", opt = true}
|
use {"ChristianChiarulli/dashboard-nvim", opt = true}
|
||||||
require_plugin("dashboard-nvim")
|
require_plugin("dashboard-nvim")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue