nvim: put plugins into opt/
this way supposedly we can explicitly load the plugin next to the relevant configuration
This commit is contained in:
parent
e8308206bf
commit
6e4b1ecb82
36
.gitmodules
vendored
36
.gitmodules
vendored
@ -17,52 +17,52 @@
|
|||||||
# prompts
|
# prompts
|
||||||
# telescope.vim
|
# telescope.vim
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/telescope.nvim"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/telescope.nvim"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/telescope.nvim
|
path = src/.local/share/nvim/site/pack/3pp/opt/telescope.nvim
|
||||||
url = https://github.com/nvim-telescope/telescope.nvim.git
|
url = https://github.com/nvim-telescope/telescope.nvim.git
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/plenary.nvim"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/plenary.nvim"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/plenary.nvim
|
path = src/.local/share/nvim/site/pack/3pp/opt/plenary.nvim
|
||||||
url = https://github.com/nvim-lua/plenary.nvim.git
|
url = https://github.com/nvim-lua/plenary.nvim.git
|
||||||
|
|
||||||
# git symbols in the gutter
|
# git symbols in the gutter
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/vim-gitgutter"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/vim-gitgutter"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/vim-gitgutter
|
path = src/.local/share/nvim/site/pack/3pp/opt/vim-gitgutter
|
||||||
url = https://github.com/airblade/vim-gitgutter.git
|
url = https://github.com/airblade/vim-gitgutter.git
|
||||||
|
|
||||||
# auto close brackets and quotes
|
# auto close brackets and quotes
|
||||||
# coding.vim
|
# coding.vim
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/auto-pairs"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/auto-pairs"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/auto-pairs
|
path = src/.local/share/nvim/site/pack/3pp/opt/auto-pairs
|
||||||
url = https://github.com/jiangmiao/auto-pairs
|
url = https://github.com/jiangmiao/auto-pairs
|
||||||
|
|
||||||
# language smarts
|
# language smarts
|
||||||
# coding.lua
|
# coding.lua
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-lspconfig"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-lspconfig"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-lspconfig
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-lspconfig
|
||||||
url = https://github.com/neovim/nvim-lspconfig.git
|
url = https://github.com/neovim/nvim-lspconfig.git
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-cmp"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-cmp"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-cmp
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-cmp
|
||||||
url = https://github.com/hrsh7th/nvim-cmp.git
|
url = https://github.com/hrsh7th/nvim-cmp.git
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/cmp-nvim-lsp"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/cmp-nvim-lsp"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/cmp-nvim-lsp
|
path = src/.local/share/nvim/site/pack/3pp/opt/cmp-nvim-lsp
|
||||||
url = https://github.com/hrsh7th/cmp-nvim-lsp.git
|
url = https://github.com/hrsh7th/cmp-nvim-lsp.git
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-treesitter
|
||||||
url = https://github.com/nvim-treesitter/nvim-treesitter.git
|
url = https://github.com/nvim-treesitter/nvim-treesitter.git
|
||||||
# intelligent motions based on treesitter
|
# intelligent motions based on treesitter
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter-textobjects"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter-textobjects"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter-textobjects
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-treesitter-textobjects
|
||||||
url = https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
url = https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||||
|
|
||||||
# error/warning/info box
|
# error/warning/info box
|
||||||
# coding.lua
|
# coding.lua
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/trouble.nvim"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/trouble.nvim"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/trouble.nvim
|
path = src/.local/share/nvim/site/pack/3pp/opt/trouble.nvim
|
||||||
url = https://github.com/folke/trouble.nvim
|
url = https://github.com/folke/trouble.nvim
|
||||||
|
|
||||||
# aesthetic changes
|
# aesthetic changes
|
||||||
# init.lua
|
# init.lua
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/dressing.nvim"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/dressing.nvim"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/dressing.nvim
|
path = src/.local/share/nvim/site/pack/3pp/opt/dressing.nvim
|
||||||
url = https://github.com/stevearc/dressing.nvim.git
|
url = https://github.com/stevearc/dressing.nvim.git
|
||||||
|
|
||||||
# plain-text-accounting ledger ftplugin
|
# plain-text-accounting ledger ftplugin
|
||||||
@ -80,30 +80,30 @@
|
|||||||
# color theme
|
# color theme
|
||||||
# init.lua
|
# init.lua
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-noirbuddy"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-noirbuddy"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-noirbuddy
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-noirbuddy
|
||||||
url = https://github.com/jesseleite/nvim-noirbuddy.git
|
url = https://github.com/jesseleite/nvim-noirbuddy.git
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/colorbuddy.nvim"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/colorbuddy.nvim"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/colorbuddy.nvim
|
path = src/.local/share/nvim/site/pack/3pp/opt/colorbuddy.nvim
|
||||||
url = https://github.com/tjdevries/colorbuddy.nvim.git
|
url = https://github.com/tjdevries/colorbuddy.nvim.git
|
||||||
|
|
||||||
# debug adapter protocol
|
# debug adapter protocol
|
||||||
# debugging.lua
|
# debugging.lua
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-dap"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-dap"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-dap
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-dap
|
||||||
url = https://github.com/mfussenegger/nvim-dap.git
|
url = https://github.com/mfussenegger/nvim-dap.git
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-dap-ui"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-dap-ui"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-dap-ui
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-dap-ui
|
||||||
url = https://github.com/rcarriga/nvim-dap-ui.git
|
url = https://github.com/rcarriga/nvim-dap-ui.git
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-nio"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-nio"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/nvim-nio
|
path = src/.local/share/nvim/site/pack/3pp/opt/nvim-nio
|
||||||
url = https://github.com/nvim-neotest/nvim-nio
|
url = https://github.com/nvim-neotest/nvim-nio
|
||||||
|
|
||||||
# snippet support
|
# snippet support
|
||||||
# snippets.lua
|
# snippets.lua
|
||||||
# (also coding.lua becuase nvim-cmp uses this too)
|
# (also coding.lua becuase nvim-cmp uses this too)
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/LuaSnip"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/LuaSnip"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/LuaSnip
|
path = src/.local/share/nvim/site/pack/3pp/opt/LuaSnip
|
||||||
url = https://github.com/L3MON4D3/LuaSnip
|
url = https://github.com/L3MON4D3/LuaSnip
|
||||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/cmp_luasnip"]
|
[submodule "src/.local/share/nvim/site/pack/3pp/start/cmp_luasnip"]
|
||||||
path = src/.local/share/nvim/site/pack/3pp/start/cmp_luasnip
|
path = src/.local/share/nvim/site/pack/3pp/opt/cmp_luasnip
|
||||||
url = https://github.com/saadparwaiz1/cmp_luasnip
|
url = https://github.com/saadparwaiz1/cmp_luasnip
|
||||||
|
@ -84,4 +84,5 @@ set foldexpr=nvim_treesitter#foldexpr()
|
|||||||
set foldlevel=99
|
set foldlevel=99
|
||||||
|
|
||||||
" auto-pairs
|
" auto-pairs
|
||||||
|
packadd auto-pairs
|
||||||
let g:AutoPairsFlyMode = 0
|
let g:AutoPairsFlyMode = 0
|
||||||
|
@ -27,11 +27,18 @@ vim.api.nvim_create_autocmd(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
------
|
||||||
|
-- git gutter
|
||||||
|
------
|
||||||
|
|
||||||
|
vim.cmd.packadd("vim-gitgutter")
|
||||||
|
|
||||||
------
|
------
|
||||||
-- syntax highlighting
|
-- syntax highlighting
|
||||||
-- plug: nvim-treesitter
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
vim.cmd.packadd("nvim-treesitter")
|
||||||
|
|
||||||
require 'nvim-treesitter.configs'.setup {
|
require 'nvim-treesitter.configs'.setup {
|
||||||
ensure_installed = { "c", "cpp", "javascript", "typescript", "python", "vim", "fish", "bash", "lua", "rust" },
|
ensure_installed = { "c", "cpp", "javascript", "typescript", "python", "vim", "fish", "bash", "lua", "rust" },
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
@ -51,8 +58,8 @@ require 'nvim-treesitter.configs'.setup {
|
|||||||
|
|
||||||
------
|
------
|
||||||
-- treesitter (language intelligent) motions
|
-- treesitter (language intelligent) motions
|
||||||
-- plug: nvim-treesitter-textobjects
|
|
||||||
------
|
------
|
||||||
|
vim.cmd.packadd("nvim-treesitter-textobjects")
|
||||||
require("nvim-treesitter.configs").setup {
|
require("nvim-treesitter.configs").setup {
|
||||||
textobjects = {
|
textobjects = {
|
||||||
select = {
|
select = {
|
||||||
@ -71,8 +78,8 @@ require("nvim-treesitter.configs").setup {
|
|||||||
|
|
||||||
------
|
------
|
||||||
-- diagnostics box
|
-- diagnostics box
|
||||||
-- plug: trouble.nvim
|
|
||||||
------
|
------
|
||||||
|
vim.cmd.packadd("trouble.nvim")
|
||||||
require('trouble').setup({
|
require('trouble').setup({
|
||||||
icons = false,
|
icons = false,
|
||||||
fold_open = "v", -- icon used for open folds
|
fold_open = "v", -- icon used for open folds
|
||||||
@ -104,8 +111,8 @@ keymap("gR", "<cmd>TroubleToggle lsp_references<cr>")
|
|||||||
|
|
||||||
------
|
------
|
||||||
-- language server (LSP)
|
-- language server (LSP)
|
||||||
-- plug: nvim-lspconfig
|
|
||||||
------
|
------
|
||||||
|
vim.cmd.packadd("nvim-lspconfig")
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
|
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
|
||||||
-- Enable completion triggered by <c-x><c-o>
|
-- Enable completion triggered by <c-x><c-o>
|
||||||
@ -193,8 +200,10 @@ end
|
|||||||
|
|
||||||
------
|
------
|
||||||
-- completions
|
-- completions
|
||||||
-- plug: nvim-cmp, cmp-nvim-lsp
|
|
||||||
------
|
------
|
||||||
|
vim.cmd.packadd("nvim-cmp")
|
||||||
|
vim.cmd.packadd("cmp-nvim-lsp")
|
||||||
|
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
window = {
|
window = {
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
local confutil = require("confutil")
|
local confutil = require("confutil")
|
||||||
local keymap = confutil.keymap
|
local keymap = confutil.keymap
|
||||||
|
|
||||||
|
-- dependency
|
||||||
|
vim.cmd.packadd("nvim-nio")
|
||||||
|
|
||||||
|
vim.cmd.packadd("nvim-dap")
|
||||||
|
vim.cmd.packadd("nvim-dap-ui")
|
||||||
|
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
local dapui = require("dapui")
|
local dapui = require("dapui")
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
-- lua entry point
|
-- lua entry point
|
||||||
|
|
||||||
|
vim.cmd.packadd("plenary.nvim")
|
||||||
|
|
||||||
local confutil = require("confutil")
|
local confutil = require("confutil")
|
||||||
|
|
||||||
local keymap = confutil.keymap
|
local keymap = confutil.keymap
|
||||||
@ -16,13 +18,16 @@ keymap("<leader>uu", ":let @+ = expand('<cfile>')<cr>")
|
|||||||
|
|
||||||
------
|
------
|
||||||
-- fancy prompts
|
-- fancy prompts
|
||||||
-- plug: dressing.nvim, telescope.nvim, plenary.nvim
|
|
||||||
------
|
------
|
||||||
|
vim.cmd.packadd("dressing.nvim")
|
||||||
require('dressing').setup({
|
require('dressing').setup({
|
||||||
input = {
|
input = {
|
||||||
insert_only = false,
|
insert_only = false,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- requires plenary.nvim
|
||||||
|
vim.cmd.packadd("telescope.nvim")
|
||||||
keymap("<leader>ef", "<cmd>Telescope find_files<cr>")
|
keymap("<leader>ef", "<cmd>Telescope find_files<cr>")
|
||||||
keymap("<leader>eg", "<cmd>Telescope live_grep<cr>")
|
keymap("<leader>eg", "<cmd>Telescope live_grep<cr>")
|
||||||
keymap("<leader>em", "<cmd>Telescope buffers<cr>")
|
keymap("<leader>em", "<cmd>Telescope buffers<cr>")
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
-- Snippet engine
|
-- Snippet engine
|
||||||
|
|
||||||
|
vim.cmd.packadd("LuaSnip")
|
||||||
|
|
||||||
-- see coding.lua because it also uses luasnip
|
-- see coding.lua because it also uses luasnip
|
||||||
-- snippets live in .config/nvim/snippets/
|
-- snippets live in .config/nvim/snippets/
|
||||||
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
------
|
------
|
||||||
-- color theme
|
-- color theme
|
||||||
-- plug: nvim-noirbuddy, colorbuddy.nvim
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
vim.cmd.packadd("nvim-noirbuddy")
|
||||||
|
vim.cmd.packadd("colorbuddy.nvim")
|
||||||
|
|
||||||
require("noirbuddy").setup({
|
require("noirbuddy").setup({
|
||||||
colors = {
|
colors = {
|
||||||
primary = "#99AABB"
|
primary = "#99AABB"
|
||||||
|
Loading…
Reference in New Issue
Block a user