nvim: big lua update

This commit is contained in:
2022-11-01 22:25:50 +02:00
parent 7d0760b1f1
commit 806db190c4
16 changed files with 357 additions and 158 deletions

View File

@@ -2,8 +2,6 @@
-- License: WTFPL -- License: WTFPL
-- Description: Personal neovim configuration -- Description: Personal neovim configuration
vim.g.mapleader = ' '
require('builtins') require('builtins')
require('filetypes') require('filetypes')
require('settings') require('settings')

View File

@@ -15,7 +15,3 @@ vim.g.loaded_matchit = 1
vim.g.loaded_matchparen = 1 vim.g.loaded_matchparen = 1
vim.g.loaded_logiPat = 1 vim.g.loaded_logiPat = 1
vim.g.loaded_rrhelper = 1 vim.g.loaded_rrhelper = 1
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.loaded_netrwSettings = 1

View File

@@ -2,23 +2,22 @@ if not vim.filetype then
return return
end end
vim.g.did_load_filetypes = 0 -- deactivate vim based filetype detection -- vim.g.did_load_filetypes = 0 -- deactivate vim based filetype detection
vim.g.do_filetype_lua = 1 -- enable -- vim.g.do_filetype_lua = 1 -- enable lua ft detection
--
vim.filetype.add({ -- vim.filetype.add({
extension = { -- extension = {
lock = 'yaml', -- -- yml = 'yaml',
}, -- docker = 'dockerfile',
filename = { -- },
['.gitignore'] = 'conf', -- filename = {
['launch.json'] = 'jsonc', -- ['.gitignore'] = 'conf',
Podfile = 'ruby', -- Podfile = 'ruby',
Brewfile = 'ruby', -- Brewfile = 'ruby',
Vagrantfile = 'ruby', -- Vagrantfile = 'ruby',
}, -- },
pattern = { -- pattern = {
['*.gradle'] = 'groovy', -- ['*.gradle'] = 'groovy',
['*.env.*'] = 'env', -- ['*.env.*'] = 'env',
}, -- },
}) -- })

View File

@@ -10,6 +10,8 @@ end
--- Mappings --- Mappings
-- Essentials -- Essentials
vim.g.mapleader = ' '
nmap(';', ':') nmap(';', ':')
nmap(',,', '<C-^>') nmap(',,', '<C-^>')
nmap('<leader>w', ':w<CR>') -- TODO: stop this madness, :h autowrite nmap('<leader>w', ':w<CR>') -- TODO: stop this madness, :h autowrite
@@ -46,19 +48,21 @@ map('v', 'K', ':m \'<-2<CR>gv=gv')
map('v', '<', '<gv') map('v', '<', '<gv')
map('v', '>', '>gv') map('v', '>', '>gv')
-- fzf -- Telescope
nmap('<leader>ff', ':Files<CR>') nmap('<leader>ff', ':lua require("telescope.builtin").find_files({ hidden = true })<CR>')
nmap('<leader>ft', ':Files ~/Tmp<CR>') -- TODO: change to Telescope
-- TODO: make the path relative to ~/Syncthing/Obsidian/Personal -- nmap('<leader>ft', ':Files ~/Tmp<CR>')
nmap('<leader>fo', ":call fzf#run(fzf#wrap(fzf#vim#with_preview({ 'source': 'fd . --type f --extension=md --follow --exclude .git ~/Syncthing/Obsidian/Personal' })))<CR>", { silent = true }) -- nmap('<leader>fo', ":call fzf#run(fzf#wrap(fzf#vim#with_preview({ 'source': 'fd . --type f --extension=md --follow --exclude .git ~/Syncthing/Obsidian/Personal' })))<CR>", { silent = true })
-- vim-easy-align -- vim-easy-align
map('x', 'ga', ':EasyAlign<CR>') -- TODO: this should allow for gaip, but does not map('x', 'ga', ':EasyAlign<CR>') -- TODO: this should allow for gaip, but does not
map('v', 'ga', ':EasyAlign<CR>') map('v', 'ga', ':EasyAlign<CR>')
-- nvim-tree.lua -- nvim-tree.lua
nmap('<leader>n', ':NERDTreeToggle<CR>') -- nmap('<leader>n', ':NERDTreeToggle<CR>')
nmap('<leader>N', ':NERDTreeFind<CR>') -- nmap('<leader>N', ':NERDTreeFind<CR>')
nmap('<leader>n', ':NvimTreeToggle<CR>')
nmap('<leader>N', ':NvimTreeFindFile<CR>')
-- glow.vim -- glow.vim
nmap('<leader>p', ':Glow<CR>') nmap('<leader>p', ':Glow<CR>')

View File

@@ -0,0 +1,63 @@
local cmp = require 'cmp'
local luasnip = require 'luasnip'
local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and
vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(
col, col):match("%s") == nil
end
cmp.setup({
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
end,
},
window = {
-- completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
elseif has_words_before() then
cmp.complete()
else
fallback()
end
end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
end, { "i", "s" }),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'luasnip' }, -- For luasnip users.
}, {
{ name = 'buffer' },
})
})
-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
require('lspconfig')['solargraph'].setup({ capabilities = capabilities })
-- require("luasnip.loaders.from_lua").lazy_load()
require('luasnip').filetype_extend("ruby", {"rails"})
require('luasnip.loaders.from_vscode').lazy_load()

View File

@@ -0,0 +1 @@
require('Comment').setup()

View File

@@ -7,9 +7,8 @@ end
require('packer').startup(function() require('packer').startup(function()
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
use 'arcticicestudio/nord-vim' use 'shaunsingh/nord.nvim'
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' } use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
use 'tpope/vim-commentary'
use 'tpope/vim-surround' use 'tpope/vim-surround'
use { 'junegunn/fzf', run = 'cd ~/.fzf && ./install --all' } use { 'junegunn/fzf', run = 'cd ~/.fzf && ./install --all' }
use 'junegunn/fzf.vim' use 'junegunn/fzf.vim'
@@ -17,20 +16,23 @@ require('packer').startup(function()
use 'christoomey/vim-tmux-navigator' use 'christoomey/vim-tmux-navigator'
use 'airblade/vim-gitgutter' use 'airblade/vim-gitgutter'
use 'tpope/vim-repeat' use 'tpope/vim-repeat'
use 'scrooloose/nerdtree' -- other file tree plugins are too fancy use 'nvim-tree/nvim-tree.lua'
use 'numtostr/comment.nvim'
use 'ellisonleao/glow.nvim' use 'ellisonleao/glow.nvim'
-- Snippets -- Snippets
use 'L3MON4D3/LuaSnip' use 'L3MON4D3/LuaSnip'
use 'hrsh7th/nvim-cmp' use 'hrsh7th/nvim-cmp'
use 'hrsh7th/cmp-nvim-lsp'
use 'saadparwaiz1/cmp_luasnip' use 'saadparwaiz1/cmp_luasnip'
use 'rafamadriz/friendly-snippets' use "rafamadriz/friendly-snippets"
use 'neovim/nvim-lspconfig' use 'neovim/nvim-lspconfig'
-- tpope -- tpope
use 'tpope/vim-fugitive' use 'tpope/vim-fugitive'
use 'tpope/vim-rails' use 'tpope/vim-rails'
use 'tpope/vim-rhubarb'
-- tests -- tests
use 'vim-test/vim-test' use 'vim-test/vim-test'
@@ -38,25 +40,32 @@ require('packer').startup(function()
use 'dyng/ctrlsf.vim' use 'dyng/ctrlsf.vim'
use 'nvim-lua/plenary.nvim' -- Fuzzy Finder Algorithm which requires local dependencies to be built. Only load if `make` is available
use 'nvim-telescope/telescope.nvim' use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', cond = vim.fn.executable "make" == 1 }
use { 'nvim-telescope/telescope.nvim', branch = '0.1.x', requires = { 'nvim-lua/plenary.nvim' } }
use "williamboman/mason.nvim"
use "WhoIsSethDaniel/mason-tool-installer.nvim"
use "jose-elias-alvarez/null-ls.nvim"
use({
"williamboman/mason-lspconfig.nvim",
requires = {
"neovim/nvim-lspconfig",
}
})
use 'AndrewRadev/splitjoin.vim'
end) end)
require 'plugins/treesitter' require 'plugins/treesitter'
require 'plugins/gitgutter' require 'plugins/gitgutter'
require 'plugins/lsp' require 'plugins/lsp'
require 'plugins/luasnip' require 'plugins/cmp'
require 'plugins/nord'
-- fzf require 'plugins/nvim-tree'
g.fzf_preview_window = '' require 'plugins/comment'
g.fzf_layout = { window = { width = 0.6, height = 0.6, border = 'sharp' } } require 'plugins/mason'
require 'plugins/null-ls'
-- NERDTree require 'plugins/telescope'
g.NERDTreeWinPos = "right"
g.NERDTreeMinimalUI = 1
g.NERDTreeDirArrows = 1
g.NERDTreeAutoDeleteBuffer = 1
g.NERDTreeHijackNetrw = 1
-- vim-test -- vim-test
g['test#strategy'] = 'vimux' g['test#strategy'] = 'vimux'
@@ -73,7 +82,3 @@ g.ctrlsf_mapping = {
next = 'n', next = 'n',
prev = 'N', prev = 'N',
} }
-- fzf
g.fzf_preview_window = ''
g.fzf_layout = { window = { width = 0.6, height = 0.6, border = 'sharp' } }

View File

@@ -1,77 +1,47 @@
----------- LSP require("mason-lspconfig").setup()
require'lspconfig'.solargraph.setup{} local lspconfig = require('lspconfig')
local nvim_lsp = require('lspconfig') lspconfig.ansiblels.setup({})
lspconfig.bashls.setup({})
lspconfig.dockerls.setup({})
lspconfig.gopls.setup({})
lspconfig.jsonls.setup({})
lspconfig.solargraph.setup({})
lspconfig.marksman.setup({})
lspconfig.terraformls.setup({})
lspconfig.vimls.setup({})
lspconfig.pylsp.setup({})
lspconfig.yamlls.setup({})
-- Use an on_attach function to only map the following keys -- Provide settings that should only apply to the "sumneko_lua" server
-- after the language server attaches to the current buffer local lua_runtime_path = vim.split(package.path, ';')
local on_attach = function(client, bufnr) table.insert(lua_runtime_path, "lua/?.lua")
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end table.insert(lua_runtime_path, "lua/?/init.lua")
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end table.insert(lua_runtime_path, vim.fn.stdpath('config') .. "lua/?.lua")
-- Enable completion triggered by <c-x><c-o> lspconfig.sumneko_lua.setup({
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc') settings = {
Lua = {
-- Mappings. runtime = {
local opts = { noremap=true, silent=true } -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
-- See `:help vim.lsp.*` for documentation on any of the below functions -- Setup your lua path
buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts) path = lua_runtime_path,
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts) },
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts) format = {
buf_set_keymap('n', '<space>=', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts) enable = true,
end defaultConfig = {
keep_one_space_between_table_and_bracket = "false",
-- Use a loop to conveniently call 'setup' on multiple servers and }
-- map buffer local keybindings when the language server attaches },
local servers = { 'solargraph' } diagnostics = {
for _, lsp in ipairs(servers) do -- Get the language server to recognize the `vim` global
nvim_lsp[lsp].setup { globals = {'vim'},
on_attach = on_attach, ["codestyle-check"] = "Any",
flags = { },
debounce_text_changes = 150, -- Do not send telemetry data containing a randomized but unique identifier
} telemetry = {
} enable = false,
end },
local cmp = require 'cmp'
cmp.setup {
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end,
},
mapping = {
['<C-p>'] = cmp.mapping.select_prev_item(),
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}, },
['<Tab>'] = function(fallback) }
if cmp.visible() then })
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
vim.fn.feedkeys(vim.api.nvim_replace_termcodes('<Plug>luasnip-expand-or-jump', true, true, true), '')
else
fallback()
end
end,
['<S-Tab>'] = function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
vim.fn.feedkeys(vim.api.nvim_replace_termcodes('<Plug>luasnip-jump-prev', true, true, true), '')
else
fallback()
end
end,
},
sources = {
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
},
}

View File

@@ -0,0 +1,11 @@
require("mason").setup({})
require("mason-tool-installer").setup({
-- https://github.com/williamboman/mason-lspconfig.nvim/blob/main/doc/server-mapping.md
ensure_installed = { "bash-language-server", "black", "dockerfile-language-server",
"isort", "json-lsp", "jsonlint", "lua-language-server", "marksman", "prettierd",
"python-lsp-server", "rubocop", "shfmt", "solargraph", "terraform-ls",
"vim-language-server", "yaml-language-server",
},
auto_update = true,
run_on_start = true
})

View File

@@ -0,0 +1,30 @@
-- https://github.com/shaunsingh/nord.nvim#%EF%B8%8F-configuration
-- Make sidebars and popup menus like nvim-tree and telescope
-- have a different background
vim.g.nord_contrast = true
-- Enable the border between verticaly split windows visable
vim.g.nord_borders = true
-- Disable the setting of background color so that NeoVim
-- can use your terminal background
vim.g.nord_disable_background = false
-- Set the cursorline transparent/visible
vim.g.nord_cursorline_transparent = false
-- Re-enables the background of the sidebar if you disabled the background of everything
vim.g.nord_enable_sidebar_background = false
-- Enables/disables italics
vim.g.nord_italic = true
-- Enables/disables colorful backgrounds when used in diff mode
vim.g.nord_uniform_diff_background = true
-- Enables/disables bold
vim.g.nord_bold = false
-- Load the colorscheme
require('nord').set()

View File

@@ -0,0 +1,29 @@
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
require("null-ls").setup({
sources = {
require("null-ls").builtins.formatting.jq,
require("null-ls").builtins.formatting.gofmt,
require("null-ls").builtins.formatting.prettierd,
require("null-ls").builtins.formatting.terraform_fmt,
require("null-ls").builtins.diagnostics.jsonlint,
},
-- you can reuse a shared lspconfig on_attach callback here
on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then
vim.api.nvim_clear_autocmds({group = augroup, buffer = bufnr})
vim.api.nvim_create_autocmd("BufWritePre", {
group = augroup,
buffer = bufnr,
callback = function()
vim.lsp.buf.format({
bufnr = bufnr,
async = false,
filter = function(client)
return client.name == "null-ls"
end
})
end,
})
end
end,
})

View File

@@ -0,0 +1,14 @@
require("nvim-tree").setup({
sort_by = "case_sensitive",
renderer = {
icons = {
show = {
file = false,
folder = false,
folder_arrow = false,
git = false,
}
},
group_empty = true,
}
})

View File

@@ -0,0 +1,2 @@
-- Enable telescope fzf native, if installed
pcall(require('telescope').load_extension, 'fzf')

View File

@@ -6,7 +6,22 @@ require('nvim-treesitter.configs').setup {
'javascript', 'json', 'kotlin', 'latex', 'lua', 'make', 'markdown', 'perl', 'php', 'javascript', 'json', 'kotlin', 'latex', 'lua', 'make', 'markdown', 'perl', 'php',
'python', 'ruby', 'rust', 'scss', 'swift', 'toml', 'tsx', 'vim', 'vue', 'yaml' }, 'python', 'ruby', 'rust', 'scss', 'swift', 'toml', 'tsx', 'vim', 'vue', 'yaml' },
-- ignore_install = { 'norg' }, -- ignore_install = { 'norg' },
highlight = { enable = true }, highlight = {
indent = { enable = true }, enable = true,
additional_vim_regex_highlighting = false,
},
context_commentstring = {
enable = true,
enable_autocmd = false,
},
rainbow = {
enable = true,
disable = { "html" },
extended_mode = false,
max_file_lines = nil,
},
indent = { enable = false },
autopairs = { enable = true }, autopairs = { enable = true },
autotag = { enable = true },
incremental_selection = { enable = true },
} }

View File

@@ -12,6 +12,7 @@ cmd('au TextYankPost * lua vim.highlight.on_yank { timeout = 250 }')
cmd('colorscheme nord') cmd('colorscheme nord')
opt.smartindent = true -- Autoindenting when starting a new line opt.smartindent = true -- Autoindenting when starting a new line
opt.completeopt = {'menu', 'menuone', 'noselect'}
opt.tabstop = 2 -- Tab counts as 2 columns opt.tabstop = 2 -- Tab counts as 2 columns
opt.shiftwidth = 2 -- Numbers of spaces to (auto)indent opt.shiftwidth = 2 -- Numbers of spaces to (auto)indent
opt.expandtab = true -- Tabs to spaces opt.expandtab = true -- Tabs to spaces
@@ -47,6 +48,8 @@ opt.listchars = { trail = '·', tab = '->' }
opt.timeoutlen = 1000 -- Delay for mappings opt.timeoutlen = 1000 -- Delay for mappings
opt.ttimeoutlen = 0 -- Delay between modes opt.ttimeoutlen = 0 -- Delay between modes
opt.shellcmdflag = '-ic' -- Enables aliases from .bashrc in :! commands opt.shellcmdflag = '-ic' -- Enables aliases from .bashrc in :! commands
opt.termguicolors = true -- 24-bit RGB color
if vim.fn.executable('rg') > 0 then if vim.fn.executable('rg') > 0 then
vim.o.grepprg = [[rg --glob "!.git" --no-heading --vimgrep --follow $*]] vim.o.grepprg = [[rg --glob "!.git" --no-heading --vimgrep --follow $*]]

View File

@@ -9,22 +9,25 @@ vim.api.nvim_command('packadd packer.nvim')
local no_errors, error_msg = pcall(function() local no_errors, error_msg = pcall(function()
local time _G._packer = _G._packer or {}
local profile_info _G._packer.inside_compile = true
local should_profile = false
if should_profile then local time
local hrtime = vim.loop.hrtime local profile_info
profile_info = {} local should_profile = false
time = function(chunk, start) if should_profile then
if start then local hrtime = vim.loop.hrtime
profile_info[chunk] = hrtime() profile_info = {}
else time = function(chunk, start)
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 if start then
end profile_info[chunk] = hrtime()
else
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
end end
else
time = function(chunk, start) end
end end
else
time = function(chunk, start) end
end
local function save_profiles(threshold) local function save_profiles(threshold)
local sorted_times = {} local sorted_times = {}
@@ -38,8 +41,10 @@ local function save_profiles(threshold)
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
end end
end end
if threshold then
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
end
_G._packer = _G._packer or {}
_G._packer.profile_output = results _G._packer.profile_output = results
end end
@@ -74,11 +79,21 @@ _G.packer_plugins = {
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/LuaSnip", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip" url = "https://github.com/L3MON4D3/LuaSnip"
}, },
["cmp-nvim-lsp"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
},
cmp_luasnip = { cmp_luasnip = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/cmp_luasnip", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
url = "https://github.com/saadparwaiz1/cmp_luasnip" url = "https://github.com/saadparwaiz1/cmp_luasnip"
}, },
["comment.nvim"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/comment.nvim",
url = "https://github.com/numtostr/comment.nvim"
},
["ctrlsf.vim"] = { ["ctrlsf.vim"] = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/ctrlsf.vim", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/ctrlsf.vim",
@@ -104,15 +119,30 @@ _G.packer_plugins = {
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/glow.nvim", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/glow.nvim",
url = "https://github.com/ellisonleao/glow.nvim" url = "https://github.com/ellisonleao/glow.nvim"
}, },
nerdtree = { ["mason-lspconfig.nvim"] = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nerdtree", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
url = "https://github.com/scrooloose/nerdtree" url = "https://github.com/williamboman/mason-lspconfig.nvim"
}, },
["nord-vim"] = { ["mason-tool-installer.nvim"] = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nord-vim", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/mason-tool-installer.nvim",
url = "https://github.com/arcticicestudio/nord-vim" url = "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim"
},
["mason.nvim"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/mason.nvim",
url = "https://github.com/williamboman/mason.nvim"
},
["nord.nvim"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nord.nvim",
url = "https://github.com/shaunsingh/nord.nvim"
},
["null-ls.nvim"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
}, },
["nvim-cmp"] = { ["nvim-cmp"] = {
loaded = true, loaded = true,
@@ -124,6 +154,11 @@ _G.packer_plugins = {
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig" url = "https://github.com/neovim/nvim-lspconfig"
}, },
["nvim-tree.lua"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
url = "https://github.com/nvim-tree/nvim-tree.lua"
},
["nvim-treesitter"] = { ["nvim-treesitter"] = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nvim-treesitter", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
@@ -139,16 +174,24 @@ _G.packer_plugins = {
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/plenary.nvim", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim" url = "https://github.com/nvim-lua/plenary.nvim"
}, },
["splitjoin.vim"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/splitjoin.vim",
url = "https://github.com/AndrewRadev/splitjoin.vim"
},
["telescope-fzf-native.nvim"] = {
cond = { true },
loaded = false,
needs_bufread = false,
only_cond = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/opt/telescope-fzf-native.nvim",
url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
},
["telescope.nvim"] = { ["telescope.nvim"] = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/telescope.nvim", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim" url = "https://github.com/nvim-telescope/telescope.nvim"
}, },
["vim-commentary"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-commentary",
url = "https://github.com/tpope/vim-commentary"
},
["vim-easy-align"] = { ["vim-easy-align"] = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-easy-align", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-easy-align",
@@ -174,6 +217,11 @@ _G.packer_plugins = {
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-repeat", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-repeat",
url = "https://github.com/tpope/vim-repeat" url = "https://github.com/tpope/vim-repeat"
}, },
["vim-rhubarb"] = {
loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-rhubarb",
url = "https://github.com/tpope/vim-rhubarb"
},
["vim-surround"] = { ["vim-surround"] = {
loaded = true, loaded = true,
path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-surround", path = "/Users/madundead/.local/share/nvim/site/pack/packer/start/vim-surround",
@@ -197,6 +245,17 @@ _G.packer_plugins = {
} }
time([[Defining packer_plugins]], false) time([[Defining packer_plugins]], false)
-- Conditional loads
time([[Conditional loading of telescope-fzf-native.nvim]], true)
require("packer.load")({"telescope-fzf-native.nvim"}, {}, _G.packer_plugins)
time([[Conditional loading of telescope-fzf-native.nvim]], false)
_G._packer.inside_compile = false
if _G._packer.needs_bufread == true then
vim.cmd("doautocmd BufRead")
end
_G._packer.needs_bufread = false
if should_profile then save_profiles() end if should_profile then save_profiles() end
end) end)