[NeoVim] Packer Bootstrap
This commit is contained in:
7
.config/nvim/.luarc.json
Normal file
7
.config/nvim/.luarc.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||||
|
"Lua.diagnostics.globals": [
|
||||||
|
"vim",
|
||||||
|
"use"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
require 'bootstrap'
|
||||||
|
|
||||||
|
|
||||||
require 'plugins'
|
require 'plugins'
|
||||||
|
|
||||||
|
|
||||||
@@ -28,7 +31,7 @@ require('nvim-treesitter.configs').setup {
|
|||||||
|
|
||||||
|
|
||||||
require('feline').setup {
|
require('feline').setup {
|
||||||
theme = require('feline.solarized'),
|
theme = require('feline.feline-solarized'),
|
||||||
force_inactive = {
|
force_inactive = {
|
||||||
filetypes = {
|
filetypes = {
|
||||||
'^neo\\-tree$',
|
'^neo\\-tree$',
|
||||||
@@ -118,7 +121,7 @@ require('neo-tree').setup({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
vim.keymap.set("n", "f", "<cmd>Neotree focus<CR>", opts)
|
vim.keymap.set("n", "f", "<cmd>Neotree focus<CR>")
|
||||||
|
|
||||||
|
|
||||||
require('smart-splits')
|
require('smart-splits')
|
||||||
@@ -159,9 +162,9 @@ require('bufferline').setup{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
vim.keymap.set("n", "<S-Right>", "<cmd>bnext<CR>", opts)
|
vim.keymap.set("n", "<S-Right>", "<cmd>bnext<CR>")
|
||||||
vim.keymap.set("n", "<S-Left>", "<cmd>bprevious<CR>", opts)
|
vim.keymap.set("n", "<S-Left>", "<cmd>bprevious<CR>")
|
||||||
vim.keymap.set("n", "q", "<cmd>Bdelete<CR>", opts)
|
vim.keymap.set("n", "q", "<cmd>Bdelete<CR>")
|
||||||
|
|
||||||
|
|
||||||
require('nvim-autopairs').setup()
|
require('nvim-autopairs').setup()
|
||||||
|
|||||||
6
.config/nvim/lua/bootstrap.lua
Normal file
6
.config/nvim/lua/bootstrap.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
local fn = vim.fn
|
||||||
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||||
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
|
Packer_Bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||||
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
end
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
return require('packer').startup(function()
|
return require('packer').startup(function()
|
||||||
|
use '~/.config/nvim/themes/solarized.nvim'
|
||||||
|
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
use 'nvim-lua/popup.nvim'
|
use 'nvim-lua/popup.nvim'
|
||||||
@@ -64,4 +66,7 @@ return require('packer').startup(function()
|
|||||||
|
|
||||||
use 'lervag/vimtex'
|
use 'lervag/vimtex'
|
||||||
|
|
||||||
|
if Packer_Bootstrap then
|
||||||
|
require('packer').sync()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -1,3 +1,3 @@
|
|||||||
[submodule ".config/nvim/solarized.nvim"]
|
[submodule ".config/nvim/solarized.nvim"]
|
||||||
path = .config/nvim/solarized.nvim
|
path = .config/nvim/themes/solarized.nvim
|
||||||
url = ssh://git@git.rhiobet.sh:42424/rhiobet/solarized.nvim.git
|
url = ssh://git@git.rhiobet.sh:42424/rhiobet/solarized.nvim.git
|
||||||
|
|||||||
Reference in New Issue
Block a user