Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| a1dd8f333b |
14 changed files with 366 additions and 107 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,4 +3,3 @@ lang-srvrs/**/*
|
|||
.netrwhist
|
||||
|
||||
packer_compiled.vim
|
||||
packer_compiled.lua
|
||||
|
|
|
|||
6
elixir-ls.lua
Normal file
6
elixir-ls.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
local elixir_ls_binary = "/Users/aym/.config/nvim/lang-srvrs/elixir-ls/language_server.sh"
|
||||
|
||||
require'lspconfig'.elixirls.setup{
|
||||
-- Unix
|
||||
cmd = {elixir_ls_binary};
|
||||
}
|
||||
11
init.lua
11
init.lua
|
|
@ -3,17 +3,17 @@ require('nv-globals')
|
|||
require('plugins')
|
||||
require('colorscheme')
|
||||
require('settings')
|
||||
require('keymappings')
|
||||
|
||||
-- LSP
|
||||
require('lsp')
|
||||
require('lsp.typescript-ls')
|
||||
require('lsp.python-ls')
|
||||
require('lsp.lua-ls')
|
||||
-- require('lsp.lua-ls')
|
||||
require('lsp.elixir-ls')
|
||||
require('lsp.go-ls')
|
||||
require('lsp.ocaml-ls')
|
||||
require('lsp.sml-ls')
|
||||
require('lsp.arduino-ls')
|
||||
require('lsp.flutter-ls')
|
||||
-- require('lsp.sml-ls')
|
||||
|
||||
-- Completion
|
||||
require('nv-compe')
|
||||
|
|
@ -21,6 +21,3 @@ require('nv-compe')
|
|||
require('nv-prettier')
|
||||
|
||||
require('nv-telescope')
|
||||
|
||||
-- Set up keymaps after everything is configured.
|
||||
require('keymappings')
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
local lsp = vim.lsp
|
||||
local handlers = lsp.handlers
|
||||
-- local saga = require('lspsaga')
|
||||
-- saga.init_lsp_saga()
|
||||
|
||||
-- Space as leader.
|
||||
vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', {noremap = true, silent = true})
|
||||
vim.g.mapleader = ' '
|
||||
|
|
@ -38,11 +33,6 @@ vim.api.nvim_set_keymap('t', '<C-g>', '<ESC>', {silent = true})
|
|||
-- Move right when in insert mode.
|
||||
vim.api.nvim_set_keymap("i", '<C-l>', '<Right>', {noremap = true, silent = true})
|
||||
|
||||
-- Leader window movement.
|
||||
vim.api.nvim_set_keymap("n", '<Leader>wm', '<C-w>h', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap("n", '<Leader>wn', '<C-w>j', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap("n", '<Leader>we', '<C-w>k', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap("n", '<Leader>wi', '<C-w>l', {noremap = true, silent = true})
|
||||
|
||||
-- Quick save.
|
||||
vim.api.nvim_set_keymap('n', '<Leader>fw', ':w<CR>', {silent = true})
|
||||
|
|
@ -60,24 +50,6 @@ vim.api.nvim_set_keymap('n', '<Leader>fc', '<cmd>Telescope file_browser path=%:p
|
|||
vim.api.nvim_set_keymap('n', '<Leader>ps', ':Rg<cr>',{})
|
||||
-- Search among the currently open buffers.
|
||||
vim.api.nvim_set_keymap('n', '<Leader>bs', '<cmd>Telescope buffers<cr>',{})
|
||||
-- Code actions.
|
||||
vim.api.nvim_set_keymap('n', '<Leader>ca', "<Cmd>lua vim.lsp.buf.code_action()<CR>",{silent = true, noremap = true})
|
||||
vim.api.nvim_set_keymap('x', '<Leader>ca', "<Cmd>lua vim.lsp.buf.range_code_action()<CR>",{silent = true, noremap = true})
|
||||
-- Flutter commands.
|
||||
vim.api.nvim_set_keymap('n', '<Leader>fl', "<cmd>lua require('telescope').extensions.flutter.commands()<cr>",{silent = true, noremap = true})
|
||||
|
||||
|
||||
-- Hover doc popup
|
||||
local pop_opts = { border = "rounded", max_width = 80 }
|
||||
handlers["textDocument/hover"] = lsp.with(handlers.hover, pop_opts)
|
||||
handlers["textDocument/signatureHelp"] = lsp.with(handlers.signature_help, pop_opts)
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgd', '<cmd>lua vim.lsp.buf.definition()<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgD', '<cmd>lua vim.lsp.buf.declaration()<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgr', '<cmd>lua vim.lsp.buf.references()<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgi', '<cmd>lua vim.lsp.buf.implementation()<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lr', '<cmd>Lspsaga rename<CR>', {silent = true})
|
||||
vim.api.nvim_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', {noremap = true, silent = true})
|
||||
|
||||
------ Trouble
|
||||
vim.api.nvim_set_keymap("n", "<leader>lwd", "<cmd>Trouble workspace_diagnostics<cr>",
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
require'lspconfig'.arduino_language_server.setup {
|
||||
cmd = {
|
||||
"arduino-language-server",
|
||||
"-cli-config", "/Users/aym/Library/Arduino15/arduino-cli.yaml",
|
||||
"-fqbn", "adafruit:nrf52:feather52841",
|
||||
"-cli", "arduino-cli",
|
||||
"-clangd", "clangd"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
local elixir_ls_binary = "/Users/" .. USER .. "/.config/nvim/lang-srvrs/elixir-ls/language_server.sh"
|
||||
local elixir_ls_binary = "/home/aym/.config/nvim/lang-srvrs/elixir-ls/language_server.sh"
|
||||
|
||||
require'lspconfig'.elixirls.setup{
|
||||
cmd = { elixir_ls_binary };
|
||||
}
|
||||
|
||||
vim.api.nvim_command('autocmd BufWritePost *.ex :lua vim.lsp.buf.formatting()')
|
||||
vim.api.nvim_command('autocmd BufWritePost *.exs :lua vim.lsp.buf.formatting()')
|
||||
vim.api.nvim_command('autocmd BufWritePost *.ex :lua vim.lsp.buf.format()')
|
||||
vim.api.nvim_command('autocmd BufWritePost *.exs :lua vim.lsp.buf.format()')
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
require("flutter-tools").setup{
|
||||
} -- use defaults
|
||||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
local lsp = vim.lsp
|
||||
local handlers = lsp.handlers
|
||||
local keymap = vim.keymap.set
|
||||
|
||||
-- Hover doc popup
|
||||
local pop_opts = { border = "rounded", max_width = 80 }
|
||||
handlers["textDocument/hover"] = lsp.with(handlers.hover, pop_opts)
|
||||
handlers["textDocument/signatureHelp"] = lsp.with(handlers.signature_help, pop_opts)
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgd', '<cmd>lua vim.lsp.buf.definition()<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgD', '<cmd>lua vim.lsp.buf.declaration()<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgr', '<cmd>lua vim.lsp.buf.references()<CR>', {noremap = true, silent = true})
|
||||
vim.api.nvim_set_keymap('n', '<Leader>lgi', '<cmd>lua vim.lsp.buf.implementation()<CR>', {noremap = true, silent = true})
|
||||
|
||||
keymap("n", "<Leader>lr", "<cmd>Lspsaga rename ++project<CR>")
|
||||
vim.api.nvim_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', {noremap = true, silent = true})
|
||||
|
|
@ -1,33 +1,37 @@
|
|||
require'lspconfig'.lua_ls.setup {
|
||||
on_init = function(client)
|
||||
if client.workspace_folders then
|
||||
local path = client.workspace_folders[1].name
|
||||
if vim.uv.fs_stat(path..'/.luarc.json') or vim.uv.fs_stat(path..'/.luarc.jsonc') then
|
||||
return
|
||||
end
|
||||
end
|
||||
-- https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(Standalone)
|
||||
USER = vim.fn.expand('$USER')
|
||||
|
||||
client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using
|
||||
-- (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT'
|
||||
},
|
||||
-- Make the server aware of Neovim runtime files
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = {
|
||||
vim.env.VIMRUNTIME
|
||||
-- Depending on the usage, you might want to add additional paths here.
|
||||
-- "${3rd}/luv/library"
|
||||
-- "${3rd}/busted/library",
|
||||
local sumneko_root_path = ""
|
||||
local sumneko_binary = ""
|
||||
|
||||
if vim.fn.has("mac") == 1 then
|
||||
sumneko_root_path = "/Users/" .. USER .. "/.config/nvim/lang-srvrs/lua-language-server"
|
||||
sumneko_binary = "/Users/" .. USER .. "/.config/nvim/lang-srvrs/lua-language-server/bin/macOS/lua-language-server"
|
||||
elseif vim.fn.has("unix") == 1 then
|
||||
sumneko_root_path = "/home/" .. USER .. "/.config/nvim/lang-srvrs/lua-language-server"
|
||||
sumneko_binary = "/home/" .. USER .. "/.config/nvim/lang-srvrs/lua-language-server/bin/Linux/lua-language-server"
|
||||
else
|
||||
print("Unsupported system for sumneko")
|
||||
end
|
||||
|
||||
require'lspconfig'.sumneko_lua.setup {
|
||||
cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"},
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT',
|
||||
-- Setup your lua path
|
||||
path = vim.split(package.path, ';')
|
||||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
globals = {'vim'}
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
library = {[vim.fn.expand('$VIMRUNTIME/lua')] = true, [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true}
|
||||
}
|
||||
}
|
||||
-- or pull in all of 'runtimepath'. NOTE: this is a lot slower and will cause issues when working on your own configuration (see https://github.com/neovim/nvim-lspconfig/issues/3189)
|
||||
-- library = vim.api.nvim_get_runtime_file("", true)
|
||||
}
|
||||
})
|
||||
end,
|
||||
settings = {
|
||||
Lua = {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
require("lsp-format").setup {}
|
||||
require'lspconfig'.ocamllsp.setup{ on_attach = require("lsp-format").on_attach }
|
||||
|
||||
vim.cmd('set rtp^="/home/aym/.opam/cs3110-2023sp/share/ocp-indent/vim"')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,17 @@
|
|||
require'lspconfig'.ts_ls.setup{
|
||||
require'lspconfig'.tsserver.setup{
|
||||
on_attach = function(client, bufnr)
|
||||
require "lsp_signature".on_attach({
|
||||
bind = false,
|
||||
-- floating_window = true,
|
||||
--hint_enable = true,
|
||||
fix_pos = true,
|
||||
use_lspsaga = true,
|
||||
--handler_opts = {
|
||||
-- border = "single" -- double, single, shadow, none
|
||||
--},
|
||||
})
|
||||
end,
|
||||
cmd = {DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server", "--stdio"},
|
||||
filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" },
|
||||
root_dir = require('lspconfig/util').root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1 @@
|
|||
-- This is your opts table
|
||||
require("telescope").setup {
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
require("telescope").load_extension("ui-select")
|
||||
require("telescope").load_extension "file_browser"
|
||||
|
|
|
|||
|
|
@ -16,14 +16,17 @@ return require('packer').startup(function(use)
|
|||
use 'neovim/nvim-lspconfig'
|
||||
use({
|
||||
"glepnir/lspsaga.nvim",
|
||||
-- opt = true,
|
||||
branch = "main",
|
||||
event = "LspAttach",
|
||||
config = function()
|
||||
-- local saga = require("lspsaga")
|
||||
|
||||
-- saga.init_lsp_saga({
|
||||
-- your configuration
|
||||
-- })
|
||||
require("lspsaga").setup({})
|
||||
end,
|
||||
requires = {
|
||||
{"nvim-tree/nvim-web-devicons"},
|
||||
--Please make sure you install markdown and markdown_inline parser
|
||||
{"nvim-treesitter/nvim-treesitter"}
|
||||
}
|
||||
})
|
||||
use 'kabouzeid/nvim-lspinstall'
|
||||
-- Autocomplete
|
||||
|
|
@ -38,7 +41,7 @@ return require('packer').startup(function(use)
|
|||
-- Syntax
|
||||
use 'sheerun/vim-polyglot'
|
||||
-- use {
|
||||
--- 'prettier/vim-prettier',
|
||||
-- 'prettier/vim-prettier',
|
||||
-- run = "yarn install",
|
||||
-- ft = {"javascript", "typescript", "json"}
|
||||
-- }
|
||||
|
|
@ -63,7 +66,6 @@ return require('packer').startup(function(use)
|
|||
|
||||
-- Find tools.
|
||||
use { "nvim-telescope/telescope-file-browser.nvim" }
|
||||
use {'nvim-telescope/telescope-ui-select.nvim' }
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}},
|
||||
|
|
@ -87,11 +89,11 @@ return require('packer').startup(function(use)
|
|||
|
||||
-- Git symobls.
|
||||
use {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
tag = 'release',
|
||||
config = function()
|
||||
require('gitsigns').setup()
|
||||
end
|
||||
'lewis6991/gitsigns.nvim',
|
||||
tag = 'release',
|
||||
config = function()
|
||||
require('gitsigns').setup()
|
||||
end
|
||||
}
|
||||
|
||||
use 'jiangmiao/auto-pairs'
|
||||
|
|
@ -101,9 +103,6 @@ return require('packer').startup(function(use)
|
|||
-- Golang
|
||||
use 'fatih/vim-go'
|
||||
|
||||
-- Flutter/Dart
|
||||
use {'akinsho/flutter-tools.nvim', requires = 'nvim-lua/plenary.nvim'}
|
||||
|
||||
-- Pyhton
|
||||
-- use 'a-vrma/black-nvim'
|
||||
use {
|
||||
|
|
|
|||
273
plugin/packer_compiled.lua
Normal file
273
plugin/packer_compiled.lua
Normal file
|
|
@ -0,0 +1,273 @@
|
|||
-- Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_command('packadd packer.nvim')
|
||||
|
||||
local no_errors, error_msg = pcall(function()
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.inside_compile = true
|
||||
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
if threshold then
|
||||
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
|
||||
end
|
||||
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/home/aym/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/aym/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/aym/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/aym/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/home/aym/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], false)
|
||||
time([[try_loadstring definition]], true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
|
||||
if not success then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
||||
end)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time([[try_loadstring definition]], false)
|
||||
time([[Defining packer_plugins]], true)
|
||||
_G.packer_plugins = {
|
||||
["auto-pairs"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/auto-pairs",
|
||||
url = "https://github.com/jiangmiao/auto-pairs"
|
||||
},
|
||||
black = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/black",
|
||||
url = "https://github.com/psf/black"
|
||||
},
|
||||
fzf = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/fzf",
|
||||
url = "https://github.com/junegunn/fzf"
|
||||
},
|
||||
["fzf.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/fzf.vim",
|
||||
url = "https://github.com/junegunn/fzf.vim"
|
||||
},
|
||||
["gitsigns.nvim"] = {
|
||||
config = { "\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rgitsigns\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
||||
url = "https://github.com/lewis6991/gitsigns.nvim"
|
||||
},
|
||||
["indent-blankline.nvim"] = {
|
||||
config = { "\27LJ\2\næ\1\0\0\4\0\v\0\0256\0\0\0009\0\1\0+\1\2\0=\1\2\0006\0\0\0009\0\1\0009\0\3\0\18\2\0\0009\0\4\0'\3\5\0B\0\3\0016\0\0\0009\0\1\0009\0\3\0\18\2\0\0009\0\4\0'\3\6\0B\0\3\0016\0\a\0'\2\b\0B\0\2\0029\0\t\0005\2\n\0B\0\2\1K\0\1\0\1\0\2\21show_end_of_line\2\25space_char_blankline\6 \nsetup\21indent_blankline\frequire\feol:↴\14space:â‹…\vappend\14listchars\tlist\bopt\bvim\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/opt/indent-blankline.nvim",
|
||||
url = "https://github.com/lukas-reineke/indent-blankline.nvim"
|
||||
},
|
||||
["lightline.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/lightline.vim",
|
||||
url = "https://github.com/itchyny/lightline.vim"
|
||||
},
|
||||
["lsp-format.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/lsp-format.nvim",
|
||||
url = "https://github.com/lukas-reineke/lsp-format.nvim"
|
||||
},
|
||||
["lsp_signature.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim",
|
||||
url = "https://github.com/ray-x/lsp_signature.nvim"
|
||||
},
|
||||
["lspsaga.nvim"] = {
|
||||
config = { "\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\flspsaga\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/opt/lspsaga.nvim",
|
||||
url = "https://github.com/glepnir/lspsaga.nvim"
|
||||
},
|
||||
["nvim-compe"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/nvim-compe",
|
||||
url = "https://github.com/hrsh7th/nvim-compe"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||
url = "https://github.com/neovim/nvim-lspconfig"
|
||||
},
|
||||
["nvim-lspinstall"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/nvim-lspinstall",
|
||||
url = "https://github.com/kabouzeid/nvim-lspinstall"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
url = "https://github.com/wbthomason/packer.nvim"
|
||||
},
|
||||
["palenight.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/palenight.vim",
|
||||
url = "https://github.com/drewtempelmeyer/palenight.vim"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
["popup.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/popup.nvim",
|
||||
url = "https://github.com/nvim-lua/popup.nvim"
|
||||
},
|
||||
["telescope-file-browser.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/telescope-file-browser.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-file-browser.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||
},
|
||||
["trouble.nvim"] = {
|
||||
config = { "\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/trouble.nvim",
|
||||
url = "https://github.com/folke/trouble.nvim"
|
||||
},
|
||||
["vim-commentary"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim-commentary",
|
||||
url = "https://github.com/tpope/vim-commentary"
|
||||
},
|
||||
["vim-gitbranch"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim-gitbranch",
|
||||
url = "https://github.com/itchyny/vim-gitbranch"
|
||||
},
|
||||
["vim-go"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim-go",
|
||||
url = "https://github.com/fatih/vim-go"
|
||||
},
|
||||
["vim-polyglot"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim-polyglot",
|
||||
url = "https://github.com/sheerun/vim-polyglot"
|
||||
},
|
||||
["vim-rooter"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim-rooter",
|
||||
url = "https://github.com/airblade/vim-rooter"
|
||||
},
|
||||
["vim-smoothie"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim-smoothie",
|
||||
url = "https://github.com/psliwka/vim-smoothie"
|
||||
},
|
||||
["vim-styled-components"] = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim-styled-components",
|
||||
url = "https://github.com/styled-components/vim-styled-components"
|
||||
},
|
||||
vim_current_word = {
|
||||
loaded = true,
|
||||
path = "/home/aym/.local/share/nvim/site/pack/packer/start/vim_current_word",
|
||||
url = "https://github.com/dominikduda/vim_current_word"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
-- Config for: gitsigns.nvim
|
||||
time([[Config for gitsigns.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rgitsigns\frequire\0", "config", "gitsigns.nvim")
|
||||
time([[Config for gitsigns.nvim]], false)
|
||||
-- Config for: trouble.nvim
|
||||
time([[Config for trouble.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim")
|
||||
time([[Config for trouble.nvim]], false)
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Filetype lazy-loads
|
||||
time([[Defining lazy-load filetype autocommands]], true)
|
||||
vim.cmd [[au FileType yaml ++once lua require("packer.load")({'indent-blankline.nvim'}, { ft = "yaml" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au FileType yml ++once lua require("packer.load")({'indent-blankline.nvim'}, { ft = "yml" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au FileType helm ++once lua require("packer.load")({'indent-blankline.nvim'}, { ft = "helm" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load filetype autocommands]], false)
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
vim.cmd [[au LspAttach * ++once lua require("packer.load")({'lspsaga.nvim'}, { event = "LspAttach *" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
|
||||
_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
|
||||
|
||||
end)
|
||||
|
||||
if not no_errors then
|
||||
error_msg = error_msg:gsub('"', '\\"')
|
||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue