nvim: Format plugins file
This commit is contained in:
parent
14f33460df
commit
fadacf5313
1 changed files with 28 additions and 22 deletions
|
@ -6,11 +6,11 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Compile on plugin edits
|
-- Compile on plugin edits
|
||||||
vim.api.nvim_create_autocmd({"BufWritePost"}, {
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||||
pattern = "plugins.lua",
|
pattern = "plugins.lua",
|
||||||
command = "PackerCompile",
|
command = "PackerCompile",
|
||||||
desc = "Compile plugins after editing plugin list",
|
desc = "Compile plugins after editing plugin list",
|
||||||
group = vim.api.nvim_create_augroup('compilepackages', {clear = true})
|
group = vim.api.nvim_create_augroup('compilepackages', { clear = true })
|
||||||
})
|
})
|
||||||
|
|
||||||
local use = require("packer").use
|
local use = require("packer").use
|
||||||
|
@ -32,7 +32,7 @@ require("packer").startup(function()
|
||||||
use 'vifm/vifm.vim' -- integrate file manager
|
use 'vifm/vifm.vim' -- integrate file manager
|
||||||
use {
|
use {
|
||||||
'lewis6991/gitsigns.nvim', -- show vcs changes on left-hand gutter
|
'lewis6991/gitsigns.nvim', -- show vcs changes on left-hand gutter
|
||||||
requires = {'nvim-lua/plenary.nvim'},
|
requires = { 'nvim-lua/plenary.nvim' },
|
||||||
tag = 'release',
|
tag = 'release',
|
||||||
config = function() require('plug._gitsigns') end,
|
config = function() require('plug._gitsigns') end,
|
||||||
event = "BufRead"
|
event = "BufRead"
|
||||||
|
@ -49,7 +49,12 @@ require("packer").startup(function()
|
||||||
}
|
}
|
||||||
|
|
||||||
-- editing
|
-- editing
|
||||||
use {'machakann/vim-sandwich', event = "BufRead"} -- surround things with other things using sa/sd/sr
|
-- use {'machakann/vim-sandwich', event = "BufRead"} -- surround things with other things using sa/sd/sr
|
||||||
|
use {
|
||||||
|
'kylechui/nvim-surround',
|
||||||
|
tag = '*',
|
||||||
|
config = function() require('nvim-surround').setup() end
|
||||||
|
} -- surround things with other things using ys/cs/ds
|
||||||
use {
|
use {
|
||||||
'monaqa/dial.nvim', -- extend the ^a / ^x possibilities to dates, hex, alphabets, markdown headers
|
'monaqa/dial.nvim', -- extend the ^a / ^x possibilities to dates, hex, alphabets, markdown headers
|
||||||
event = "BufRead"
|
event = "BufRead"
|
||||||
|
@ -83,18 +88,18 @@ require("packer").startup(function()
|
||||||
-- statusline
|
-- statusline
|
||||||
use {
|
use {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
requires = {'kyazdani42/nvim-web-devicons', opt = true},
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
||||||
config = function() require('plug._lualine') end
|
config = function() require('plug._lualine') end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- writing
|
-- writing
|
||||||
use {'vim-pandoc/vim-pandoc-syntax'}
|
use { 'vim-pandoc/vim-pandoc-syntax' }
|
||||||
use {'vim-pandoc/vim-pandoc'}
|
use { 'vim-pandoc/vim-pandoc' }
|
||||||
use {'vim-pandoc/vim-criticmarkup'}
|
use { 'vim-pandoc/vim-criticmarkup' }
|
||||||
use {
|
use {
|
||||||
"quarto-dev/quarto-vim",
|
"quarto-dev/quarto-vim",
|
||||||
requires = {{"vim-pandoc/vim-pandoc-syntax"}},
|
requires = { { "vim-pandoc/vim-pandoc-syntax" } },
|
||||||
ft = {"quarto"}
|
ft = { "quarto" }
|
||||||
}
|
}
|
||||||
use 'micarmst/vim-spellsync' -- personal dict improvements for git sync
|
use 'micarmst/vim-spellsync' -- personal dict improvements for git sync
|
||||||
use { -- provide distraction free writing
|
use { -- provide distraction free writing
|
||||||
|
@ -104,17 +109,18 @@ require("packer").startup(function()
|
||||||
integrations = {
|
integrations = {
|
||||||
gitsigns = true,
|
gitsigns = true,
|
||||||
lualine = true,
|
lualine = true,
|
||||||
tmux = {global = false},
|
tmux = { global = false },
|
||||||
limelight = true
|
limelight = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use {'junegunn/limelight.vim', event = 'BufRead'} -- provide even distraction free-er writing (lowlight paragraphs)
|
use { 'junegunn/limelight.vim', event = 'BufRead' } -- provide even distraction free-er writing (lowlight paragraphs)
|
||||||
use 'alok/notational-fzf-vim' -- quickly search through the wiki
|
use 'alok/notational-fzf-vim' -- quickly search through the wiki
|
||||||
|
|
||||||
-- languages
|
-- languages
|
||||||
use {'euclidianAce/BetterLua.vim', ft = 'lua'} -- better syntax highlighting for lua
|
use { 'euclidianAce/BetterLua.vim', ft = 'lua' } -- better syntax highlighting for lua
|
||||||
|
use 'aliou/bats.vim' -- enable syntax for bats shell-code testing library
|
||||||
|
|
||||||
-- REPL work
|
-- REPL work
|
||||||
use {
|
use {
|
||||||
|
@ -134,7 +140,7 @@ require("packer").startup(function()
|
||||||
'hanschen/vim-ipython-cell', -- send code 'cells' to REPL
|
'hanschen/vim-ipython-cell', -- send code 'cells' to REPL
|
||||||
ft = "python",
|
ft = "python",
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.ipython_cell_highlight_cells_ft = {'python'}
|
vim.g.ipython_cell_highlight_cells_ft = { 'python' }
|
||||||
vim.g.ipython_cell_insert_tag = "## Cell"
|
vim.g.ipython_cell_insert_tag = "## Cell"
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -169,19 +175,19 @@ require("packer").startup(function()
|
||||||
use {
|
use {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
requires = {
|
requires = {
|
||||||
{"nvim-lua/popup.nvim"}, {"nvim-lua/plenary.nvim"},
|
{ "nvim-lua/popup.nvim" }, { "nvim-lua/plenary.nvim" },
|
||||||
{"nvim-telescope/telescope-fzf-native.nvim", run = 'make'}
|
{ "nvim-telescope/telescope-fzf-native.nvim", run = 'make' }
|
||||||
},
|
},
|
||||||
config = function() require('plug._telescope') end
|
config = function() require('plug._telescope') end
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
'protex/better-digraphs.nvim',
|
'protex/better-digraphs.nvim',
|
||||||
requires = {{"nvim-telescope/telescope.nvim"}}
|
requires = { { "nvim-telescope/telescope.nvim" } }
|
||||||
}
|
}
|
||||||
|
|
||||||
-- snippeting
|
-- snippeting
|
||||||
use {"hrsh7th/vim-vsnip", event = "InsertEnter"} -- snippet engine
|
use { "hrsh7th/vim-vsnip", event = "InsertEnter" } -- snippet engine
|
||||||
use {"rafamadriz/friendly-snippets", event = "InsertEnter"} -- many snippets
|
use { "rafamadriz/friendly-snippets", event = "InsertEnter" } -- many snippets
|
||||||
|
|
||||||
-- treesitter
|
-- treesitter
|
||||||
use {
|
use {
|
||||||
|
@ -194,7 +200,7 @@ require("packer").startup(function()
|
||||||
use {
|
use {
|
||||||
'RRethy/nvim-treesitter-textsubjects', -- allows using . and ; to target treesitter branches
|
'RRethy/nvim-treesitter-textsubjects', -- allows using . and ; to target treesitter branches
|
||||||
config = function()
|
config = function()
|
||||||
require'nvim-treesitter.configs'.setup {
|
require 'nvim-treesitter.configs'.setup {
|
||||||
textsubjects = {
|
textsubjects = {
|
||||||
enable = true,
|
enable = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
@ -221,7 +227,7 @@ require("packer").startup(function()
|
||||||
use 'ray-x/lsp_signature.nvim'
|
use 'ray-x/lsp_signature.nvim'
|
||||||
use {
|
use {
|
||||||
'ray-x/navigator.lua',
|
'ray-x/navigator.lua',
|
||||||
requires = {'ray-x/guihua.lua', run = 'cd lua/fzy && make'},
|
requires = { 'ray-x/guihua.lua', run = 'cd lua/fzy && make' },
|
||||||
config = function() require('plug._lsp') end
|
config = function() require('plug._lsp') end
|
||||||
}
|
}
|
||||||
-- and completion
|
-- and completion
|
||||||
|
|
Loading…
Reference in a new issue