From 77f5dd9693576af7fde80bdc99700f21eff01d6b Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Wed, 9 Feb 2022 17:53:48 +0100 Subject: WIP moving to all lua and new structure --- after/plugin/colors.lua | 16 ++ after/plugin/completition.lua | 96 +++++++++++ after/plugin/harpoon.lua | 14 ++ after/plugin/lsp.lua | 43 +++++ after/plugin/lualine.lua | 36 ++++ after/plugin/luasnip.lua | 7 + after/plugin/treesitter.lua | 64 +++++++ init-old.vim | 51 ++++++ init.lua | 20 +++ init.vim | 73 -------- lua/alpha/colors.lua | 16 -- lua/alpha/completition.lua | 96 ----------- lua/alpha/dap.lua | 2 +- lua/alpha/disable_builtin.lua | 20 +++ lua/alpha/first_load.lua | 27 +++ lua/alpha/global.lua | 13 -- lua/alpha/globals.lua | 13 ++ lua/alpha/harpoon.lua | 7 - lua/alpha/init.lua | 2 - lua/alpha/lsp.lua | 43 ----- lua/alpha/plugins.lua | 139 +++++++++++++++ lua/alpha/status-line.lua | 31 ---- lua/alpha/treesitter.lua | 60 ------- lua/plugins.lua | 138 --------------- plugin/keymaps.vim | 71 ++++++++ plugin/navigation.vim | 16 -- plugin/packer_compiled.lua | 389 ++++++++++++++++++++++++++++++++++++++++++ 27 files changed, 1007 insertions(+), 496 deletions(-) create mode 100644 after/plugin/colors.lua create mode 100644 after/plugin/completition.lua create mode 100644 after/plugin/harpoon.lua create mode 100644 after/plugin/lsp.lua create mode 100644 after/plugin/lualine.lua create mode 100644 after/plugin/luasnip.lua create mode 100644 after/plugin/treesitter.lua create mode 100644 init-old.vim create mode 100644 init.lua delete mode 100644 init.vim delete mode 100644 lua/alpha/colors.lua delete mode 100644 lua/alpha/completition.lua create mode 100644 lua/alpha/disable_builtin.lua create mode 100644 lua/alpha/first_load.lua delete mode 100644 lua/alpha/global.lua create mode 100644 lua/alpha/globals.lua delete mode 100644 lua/alpha/harpoon.lua delete mode 100644 lua/alpha/lsp.lua create mode 100644 lua/alpha/plugins.lua delete mode 100644 lua/alpha/status-line.lua delete mode 100644 lua/alpha/treesitter.lua delete mode 100644 lua/plugins.lua create mode 100644 plugin/keymaps.vim delete mode 100644 plugin/navigation.vim create mode 100644 plugin/packer_compiled.lua diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua new file mode 100644 index 0000000..d6d0d18 --- /dev/null +++ b/after/plugin/colors.lua @@ -0,0 +1,16 @@ +local Color, colors, Group, groups, styles = require('colorbuddy').setup() + +-- Use Color.new(, <#rrggbb>) to create new colors +-- They can be accessed through colors. +Color.new('background', '#282c34') +Color.new('red', '#cc6666') +Color.new('green', '#99cc99') +Color.new('yellow', '#f0c674') + +-- Define highlights in terms of `colors` and `groups` +Group.new('Comment' , colors.yellow , colors.background , styles.bold) +Group.new('Special' , groups.Comment , groups.Comment , groups.Comment) +Group.new('NonText' , groups.Comment , groups.Comment , groups.Comment) + +-- Define highlights in relative terms of other colors +Group.new('Error' , colors.red:light() , nil , styles.bold) diff --git a/after/plugin/completition.lua b/after/plugin/completition.lua new file mode 100644 index 0000000..7140ca5 --- /dev/null +++ b/after/plugin/completition.lua @@ -0,0 +1,96 @@ +local lspkind = require "lspkind" + +local luasnip = require("luasnip") +local cmp = require "cmp" +local cmp_autopairs = require('nvim-autopairs.completion.cmp') +cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } })) + +cmp.setup { + mapping = { + [""] = cmp.mapping.scroll_docs(-4), + [""] = cmp.mapping.scroll_docs(4), + [""] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.close() + elseif luasnip.expand_or_jumpable() then + luasnip.expand_or_jump() + else + fallback() + end + end, { "i", "s" }), + [""] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.select_next_item() + elseif luasnip.choice_active() then + luasnip.change_choice(1) + else + fallback() + end + end, { "i", "s" }), + [""] = cmp.mapping.confirm { + behavior = cmp.ConfirmBehavior.Insert, + select = true, + }, + [""] = cmp.mapping.complete(), + }, + sources = { + { name = "nvim_lua" }, + { name = "nvim_lsp" }, + { name = "path" }, + { name = "luasnip" }, + { + name = "buffer", + keyword_length = 5, + option = { + get_bufnrs = function() + local bufs = {} + for _, win in ipairs(vim.api.nvim_list_wins()) do + bufs[vim.api.nvim_win_get_buf(win)] = true + end + return vim.tbl_keys(bufs) + end + } + }, + }, + + snippet = { + expand = function(args) + require("luasnip").lsp_expand(args.body) + end, + }, + + formatting = { + format = lspkind.cmp_format { + with_text = true, + menu = { + buffer = "[buf]", + nvim_lsp = "[LSP]", + nvim_lua = "[api]", + path = "[path]", + luasnip = "[snip]", + } + } + }, + + experimental = { + native_menu = false, + + ghost_text = true, + } +} +-- Setup lspconfig. + local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) + -- Replace with each lsp server you've enabled. + require('lspconfig')['emmet_ls'].setup { + capabilities = capabilities + } + +local Group = require("colorbuddy.group").Group +local g = require("colorbuddy.group").groups +local s = require("colorbuddy.style").styles + +Group.new("CmpItemAbbr", g.Comment) +Group.new("CmpItemAbbrDeprecated", g.Error) +Group.new("CmpItemAbbrMatchFuzzy", g.CmpItemAbbr.fg:dark(), nil, s.italic) +Group.new("CmpItemKind", g.Special) +Group.new("CmpItemMenu", g.NonText) diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua new file mode 100644 index 0000000..087b29f --- /dev/null +++ b/after/plugin/harpoon.lua @@ -0,0 +1,14 @@ +local ok, harpoon = pcall(require, "harpoon") +if not ok then + return +end + +harpoon.setup {} + +vim.api.nvim_set_keymap("n", "ss", [[ lua require("harpoon.ui").toggle_quick_menu()]], {noremap = true, silent = true, expr = false}) + +vim.api.nvim_set_keymap("n", "sa", [[ lua require("harpoon.mark").add_file()]], {noremap = true, silent = true, expr = false}) +vim.api.nvim_set_keymap("n", "su", [[ lua require("harpoon.ui").nav_file(1)]], {noremap = true, silent = true, expr = false}) +vim.api.nvim_set_keymap("n", "si", [[ lua require("harpoon.ui").nav_file(2)]], {noremap = true, silent = true, expr = false}) +vim.api.nvim_set_keymap("n", "so", [[ lua require("harpoon.ui").nav_file(3)]], {noremap = true, silent = true, expr = false}) +vim.api.nvim_set_keymap("n", "sp", [[ lua require("harpoon.ui").nav_file(4)]], {noremap = true, silent = true, expr = false}) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua new file mode 100644 index 0000000..40a56d6 --- /dev/null +++ b/after/plugin/lsp.lua @@ -0,0 +1,43 @@ +local function on_attach() + -- keymaps for lsp + vim.api.nvim_set_keymap('n', 'K', ':lua vim.lsp.buf.hover()', {noremap = true}) + vim.api.nvim_set_keymap('n', 'vd', ':lua vim.lsp.buf.definition()', {noremap = true}) + + + vim.api.nvim_set_keymap('n', 'vo', ':LspRestart', {noremap = true}) + + -- diagnostics to move between info and errors + vim.api.nvim_set_keymap('n', 'vn', ':lua vim.lsp.diagnostic.goto_next()', {noremap = true}) + vim.api.nvim_set_keymap('n', 'vp', ':lua vim.lsp.diagnostic.goto_prev()', {noremap = true}) + + + vim.api.nvim_set_keymap('n', 'vca', ':lua vim.lsp.buf.code_action()', {noremap = true}) + vim.api.nvim_set_keymap('n', 'vf', ':lua vim.lsp.buf.formatting()', {noremap = true}) + + vim.api.nvim_set_keymap('n', 'vi', ':lua vim.lsp.buf.implementation()', {noremap = true}) + vim.api.nvim_set_keymap('n', 'vrn', ':lua vim.lsp.buf.rename()', {noremap = true}) + + require "lsp_signature".on_attach() + + vim.cmd [[au Filetype php setl omnifunc=v:lua.vim.lsp.omnifunc]] + vim.cmd [[autocmd FileType go setlocal omnifunc=v:lua.vim.lsp.omnifunc]] + + vim.g.completion_matching_strategy_list = { 'exact', 'substring', 'fuzzy' } + +end + +local lsp_installer = require("nvim-lsp-installer") + +lsp_installer.on_server_ready(function(server) + local opts = {} + + -- (optional) Customize the options passed to the server + if server.name == "emmet_ls" then + opts.filetypes = {"html", "css", "blade"} + end + + opts.on_attach = on_attach + -- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart) + server:setup(opts) + vim.cmd [[ do User LspAttachBuffers ]] +end) diff --git a/after/plugin/lualine.lua b/after/plugin/lualine.lua new file mode 100644 index 0000000..bfd449a --- /dev/null +++ b/after/plugin/lualine.lua @@ -0,0 +1,36 @@ +local ok, lualine = pcall(require, "lualine") +if not ok then + return +end + +lualine.setup{ + options = { + theme = 'dracula', + icons_enabled = true, + }, + extensions = {'quickfix', 'fugitive'}, + sections = { + lualine_a = { { 'mode', upper = true } }, + lualine_b = { { 'branch', icon = '' }, 'diff' }, + lualine_c = { { 'filename', file_status = true, path = 1 } }, + lualine_x = { { 'diagnostics', sources = { 'nvim_diagnostic' } },'encoding', 'fileformat', 'filetype' }, + lualine_y = { 'progress' }, + lualine_z = { 'location' }, + }, + inactive_sections = { + lualine_a = { }, + lualine_b = { }, + lualine_c = { 'filename' }, + lualine_x = { 'location' }, + lualine_y = { }, + lualine_z = { }, + }, + -- tabline = { + -- lualine_a = {'buffers'}, + -- lualine_b = {}, + -- lualine_c = {}, + -- lualine_x = {}, + -- lualine_y = {}, + -- lualine_z = {'tabs'} + -- } + } diff --git a/after/plugin/luasnip.lua b/after/plugin/luasnip.lua new file mode 100644 index 0000000..9a1c3db --- /dev/null +++ b/after/plugin/luasnip.lua @@ -0,0 +1,7 @@ +if vim.g.snippets ~= "luasnip" then + return +end + + +-- shorcut to source my luasnips file again, which will reload my snippets +vim.keymap.set("n", "s", "source ~/.config/nvim/after/plugin/luasnip.lua") diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua new file mode 100644 index 0000000..f2f5360 --- /dev/null +++ b/after/plugin/treesitter.lua @@ -0,0 +1,64 @@ +if not pcall(require, "nvim-treesitter") then + return +end + +require "nvim-treesitter.configs".setup { + ensure_installed = {"php", "go", "comment", "css", "html", "javascript", "lua", "typescript"}, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + indent = { + enable = true, + }, + incremental_selection = { + enable = true, + keymaps = { + init_selection = "gnn", + node_incremental = "grn", + scope_incremental = "grc", + node_decremental = "grm", + }, + }, + refactor = { + highlight_definitions = { enable = true }, + smart_rename = { + enable = true, + keymaps = { + smart_rename = "grr", + }, + }, + }, + textobjects = { + select = { + enable = true, + lookahead = true, + keymaps = { + ["af"] = "@function.outer", + ["if"] = "@function.inner", + ["ac"] = "@conditional.outer", + ["ic"] = "@conditional.inner", + ["al"] = "@loop.outer", + ["il"] = "@loop.inner", + } + } + }, + playground = { + enable = true, + disable = {}, + updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code + persist_queries = false, -- Whether the query persists across vim sessions + keybindings = { + toggle_query_editor = 'o', + toggle_hl_groups = 'i', + toggle_injected_languages = 't', + toggle_anonymous_nodes = 'a', + toggle_language_display = 'I', + focus_language = 'f', + unfocus_language = 'F', + update = 'R', + goto_node = '', + show_help = '?', + }, + } +} diff --git a/init-old.vim b/init-old.vim new file mode 100644 index 0000000..fcbaeab --- /dev/null +++ b/init-old.vim @@ -0,0 +1,51 @@ +" Allows to have a .nvimrc per project folder +set exrc + +syntax enable + +let mapleader = ' ' + +inoremap + +nnoremap :so ~/.config/nvim/init.vim + +let g:vimwiki_list = [{'path': '~/vimwiki/', + \ 'syntax': 'markdown', 'ext': '.md'}] + +let g:gitgutter_map_keys = 0 + +" forward and backward search of current word + +" remove whitespaces +autocmd BufWritePre * :%s/\s\+$//e + +" format json files +autocmd BufWritePre *stubs/**/*.json :%!jq + +" augroup fmtphp +" autocmd! +" autocmd BufWritePre filetype php undojoin | lua vim.lsp.buf.formatting() +" augroup END + +filetype plugin indent on +autocmd FileType yaml setl indentkeys-=<:> +autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab +autocmd FileType cucumber setl indentkeys-=<:> +autocmd FileType cucumber setlocal ts=2 sts=2 sw=2 expandtab + +autocmd BufWritePost */alpha/**.lua lua require('plenary.reload').reload_module('alpha') + +" disable vim-go K binding +let g:go_doc_keywordprg_enabled = 0 + +lua require("alpha") + +" quick duplication of files + +let g:laravel_artisan = 'sail artisan' +let test#php#pest#executable = 'sail debug test' + +let $NO_TTY = 1 + +" Has to be the last line for the .nvimrc per project +set secure diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..06d2cef --- /dev/null +++ b/init.lua @@ -0,0 +1,20 @@ +pcall(require, "impatient") + +if require "alpha.first_load"() then + return +end + +vim.g.mapleader = " " + +vim.g.snippets = "luasnip" + +require "alpha.globals" + +require "alpha.disable_builtin" + +require "alpha.plugins" + +-- require "alpha.lsp" + +-- require "alpha.telescope" +-- maybe here set up and mapping // need to check tj config diff --git a/init.vim b/init.vim deleted file mode 100644 index 01ca079..0000000 --- a/init.vim +++ /dev/null @@ -1,73 +0,0 @@ -" Allows to have a .nvimrc per project folder -set exrc - -syntax enable - -let mapleader = ' ' - -inoremap - -nnoremap :so ~/.config/nvim/init.vim - -let g:vimwiki_list = [{'path': '~/vimwiki/', - \ 'syntax': 'markdown', 'ext': '.md'}] - -let g:gitgutter_map_keys = 0 - -" forward and backward search of current word -nnoremap * /\<=expand('')\> -nnoremap # ?\<=expand('')\> - -vnoremap p "_dP - -" remove whitespaces -autocmd BufWritePre * :%s/\s\+$//e - -" format json files -autocmd BufWritePre *stubs/**/*.json :%!jq - -" augroup fmtphp -" autocmd! -" autocmd BufWritePre filetype php undojoin | lua vim.lsp.buf.formatting() -" augroup END - -filetype plugin indent on -autocmd FileType yaml setl indentkeys-=<:> -autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab -autocmd FileType cucumber setl indentkeys-=<:> -autocmd FileType cucumber setlocal ts=2 sts=2 sw=2 expandtab - -autocmd BufWritePost */alpha/**.lua lua require('plenary.reload').reload_module('alpha') - -nnoremap Y y$ - -nnoremap n nzzzv -nnoremap N Nzzzv -nnoremap J mzJ`z - -inoremap , ,u -inoremap . .u -inoremap ! !u -inoremap ? ?u -inoremap $ $u -inoremap > >u - -vnoremap < >gv - -" disable vim-go K binding -let g:go_doc_keywordprg_enabled = 0 - -lua require('plugins') -lua require("alpha") - -" quick duplication of files -nnoremap dp ":saveas " . expand('%') - -let g:laravel_artisan = 'sail artisan' -let test#php#pest#executable = 'sail debug test' - -let $NO_TTY = 1 - -" Has to be the last line for the .nvimrc per project -set secure diff --git a/lua/alpha/colors.lua b/lua/alpha/colors.lua deleted file mode 100644 index d6d0d18..0000000 --- a/lua/alpha/colors.lua +++ /dev/null @@ -1,16 +0,0 @@ -local Color, colors, Group, groups, styles = require('colorbuddy').setup() - --- Use Color.new(, <#rrggbb>) to create new colors --- They can be accessed through colors. -Color.new('background', '#282c34') -Color.new('red', '#cc6666') -Color.new('green', '#99cc99') -Color.new('yellow', '#f0c674') - --- Define highlights in terms of `colors` and `groups` -Group.new('Comment' , colors.yellow , colors.background , styles.bold) -Group.new('Special' , groups.Comment , groups.Comment , groups.Comment) -Group.new('NonText' , groups.Comment , groups.Comment , groups.Comment) - --- Define highlights in relative terms of other colors -Group.new('Error' , colors.red:light() , nil , styles.bold) diff --git a/lua/alpha/completition.lua b/lua/alpha/completition.lua deleted file mode 100644 index 7140ca5..0000000 --- a/lua/alpha/completition.lua +++ /dev/null @@ -1,96 +0,0 @@ -local lspkind = require "lspkind" - -local luasnip = require("luasnip") -local cmp = require "cmp" -local cmp_autopairs = require('nvim-autopairs.completion.cmp') -cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } })) - -cmp.setup { - mapping = { - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.close() - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.choice_active() then - luasnip.change_choice(1) - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping.confirm { - behavior = cmp.ConfirmBehavior.Insert, - select = true, - }, - [""] = cmp.mapping.complete(), - }, - sources = { - { name = "nvim_lua" }, - { name = "nvim_lsp" }, - { name = "path" }, - { name = "luasnip" }, - { - name = "buffer", - keyword_length = 5, - option = { - get_bufnrs = function() - local bufs = {} - for _, win in ipairs(vim.api.nvim_list_wins()) do - bufs[vim.api.nvim_win_get_buf(win)] = true - end - return vim.tbl_keys(bufs) - end - } - }, - }, - - snippet = { - expand = function(args) - require("luasnip").lsp_expand(args.body) - end, - }, - - formatting = { - format = lspkind.cmp_format { - with_text = true, - menu = { - buffer = "[buf]", - nvim_lsp = "[LSP]", - nvim_lua = "[api]", - path = "[path]", - luasnip = "[snip]", - } - } - }, - - experimental = { - native_menu = false, - - ghost_text = true, - } -} --- Setup lspconfig. - local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) - -- Replace with each lsp server you've enabled. - require('lspconfig')['emmet_ls'].setup { - capabilities = capabilities - } - -local Group = require("colorbuddy.group").Group -local g = require("colorbuddy.group").groups -local s = require("colorbuddy.style").styles - -Group.new("CmpItemAbbr", g.Comment) -Group.new("CmpItemAbbrDeprecated", g.Error) -Group.new("CmpItemAbbrMatchFuzzy", g.CmpItemAbbr.fg:dark(), nil, s.italic) -Group.new("CmpItemKind", g.Special) -Group.new("CmpItemMenu", g.NonText) diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index fdd2150..bd1a403 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -13,7 +13,7 @@ dap_install.config("php", { port = 9003, pathMappings = function () local sail = vim.call('composer#query', 'require-dev.laravel/sail') - if sail == nil then + if sail == "" then return {['/app'] = vim.fn.getcwd()} end return {['/var/www/html'] = vim.fn.getcwd()} diff --git a/lua/alpha/disable_builtin.lua b/lua/alpha/disable_builtin.lua new file mode 100644 index 0000000..6177c82 --- /dev/null +++ b/lua/alpha/disable_builtin.lua @@ -0,0 +1,20 @@ +vim.g.loaded_gzip = 1 +vim.g.loaded_zip = 1 +vim.g.loaded_zipPlugin = 1 +vim.g.loaded_tar = 1 +vim.g.loaded_tarPlugin = 1 + +vim.g.loaded_getscript = 1 +vim.g.loaded_getscriptPlugin = 1 +vim.g.loaded_vimball = 1 +vim.g.loaded_vimballPlugin = 1 +vim.g.loaded_2html_plugin = 1 + +vim.g.loaded_matchit = 1 +vim.g.loaded_matchparen = 1 +vim.g.loaded_logiPat = 1 +vim.g.loaded_rrhelper = 1 + +-- vim.g.loaded_netrw = 1 +-- vim.g.loaded_netrwPlugin = 1 +-- vim.g.loaded_netrwSettings = 1 diff --git a/lua/alpha/first_load.lua b/lua/alpha/first_load.lua new file mode 100644 index 0000000..9ef6658 --- /dev/null +++ b/lua/alpha/first_load.lua @@ -0,0 +1,27 @@ +local download_packer = function() + if vim.fn.input "Download Packer? (y for yes)" ~= "y" then + return + end + + local directory = string.format("%s/site/pack/packer/start/", vim.fn.stdpath "data") + + vim.fn.mkdir(directory, "p") + + local out = vim.fn.system( + string.format("git clone %s %s", "https://github.com/wbthomason/packer.nvim", directory .. "/packer.nvim") + ) + + print(out) + print "Downloading packer.nvim..." + print "( You'll need to restart now )" +end + +return function() + if not pcall(require, "packer") then + download_packer() + + return true + end + + return false +end diff --git a/lua/alpha/global.lua b/lua/alpha/global.lua deleted file mode 100644 index 5fcee70..0000000 --- a/lua/alpha/global.lua +++ /dev/null @@ -1,13 +0,0 @@ -P = function (v) - print(vim.inspect(v)) - return v -end - -RELOAD = function (...) - return require("plenary.reload").reload_module(...) -end - -R = function (name) - RELOAD(name) - return require(name) -end diff --git a/lua/alpha/globals.lua b/lua/alpha/globals.lua new file mode 100644 index 0000000..5fcee70 --- /dev/null +++ b/lua/alpha/globals.lua @@ -0,0 +1,13 @@ +P = function (v) + print(vim.inspect(v)) + return v +end + +RELOAD = function (...) + return require("plenary.reload").reload_module(...) +end + +R = function (name) + RELOAD(name) + return require(name) +end diff --git a/lua/alpha/harpoon.lua b/lua/alpha/harpoon.lua deleted file mode 100644 index c4fa9df..0000000 --- a/lua/alpha/harpoon.lua +++ /dev/null @@ -1,7 +0,0 @@ -vim.api.nvim_set_keymap("n", "ss", [[ lua require("harpoon.ui").toggle_quick_menu()]], {noremap = true, silent = true, expr = false}) - -vim.api.nvim_set_keymap("n", "sa", [[ lua require("harpoon.mark").add_file()]], {noremap = true, silent = true, expr = false}) -vim.api.nvim_set_keymap("n", "su", [[ lua require("harpoon.ui").nav_file(1)]], {noremap = true, silent = true, expr = false}) -vim.api.nvim_set_keymap("n", "si", [[ lua require("harpoon.ui").nav_file(2)]], {noremap = true, silent = true, expr = false}) -vim.api.nvim_set_keymap("n", "so", [[ lua require("harpoon.ui").nav_file(3)]], {noremap = true, silent = true, expr = false}) -vim.api.nvim_set_keymap("n", "sp", [[ lua require("harpoon.ui").nav_file(4)]], {noremap = true, silent = true, expr = false}) diff --git a/lua/alpha/init.lua b/lua/alpha/init.lua index cd38f36..0b14730 100644 --- a/lua/alpha/init.lua +++ b/lua/alpha/init.lua @@ -14,6 +14,4 @@ require("alpha.dap") vim.api.nvim_set_keymap('n', 'rs', ':lua require(\'alpha.refactor\').setter_getter()', {noremap = true}) vim.api.nvim_set_keymap('n', 'rn', ':lua require(\'alpha.refactor\').new_property()', {noremap = true}) -vim.api.nvim_set_keymap('n', 'x', ':call alpha#save_and_exec()', {noremap = true}) - vim.api.nvim_set_keymap('n', 'm', ':MaximizerToggle', {noremap = true}) diff --git a/lua/alpha/lsp.lua b/lua/alpha/lsp.lua deleted file mode 100644 index 40a56d6..0000000 --- a/lua/alpha/lsp.lua +++ /dev/null @@ -1,43 +0,0 @@ -local function on_attach() - -- keymaps for lsp - vim.api.nvim_set_keymap('n', 'K', ':lua vim.lsp.buf.hover()', {noremap = true}) - vim.api.nvim_set_keymap('n', 'vd', ':lua vim.lsp.buf.definition()', {noremap = true}) - - - vim.api.nvim_set_keymap('n', 'vo', ':LspRestart', {noremap = true}) - - -- diagnostics to move between info and errors - vim.api.nvim_set_keymap('n', 'vn', ':lua vim.lsp.diagnostic.goto_next()', {noremap = true}) - vim.api.nvim_set_keymap('n', 'vp', ':lua vim.lsp.diagnostic.goto_prev()', {noremap = true}) - - - vim.api.nvim_set_keymap('n', 'vca', ':lua vim.lsp.buf.code_action()', {noremap = true}) - vim.api.nvim_set_keymap('n', 'vf', ':lua vim.lsp.buf.formatting()', {noremap = true}) - - vim.api.nvim_set_keymap('n', 'vi', ':lua vim.lsp.buf.implementation()', {noremap = true}) - vim.api.nvim_set_keymap('n', 'vrn', ':lua vim.lsp.buf.rename()', {noremap = true}) - - require "lsp_signature".on_attach() - - vim.cmd [[au Filetype php setl omnifunc=v:lua.vim.lsp.omnifunc]] - vim.cmd [[autocmd FileType go setlocal omnifunc=v:lua.vim.lsp.omnifunc]] - - vim.g.completion_matching_strategy_list = { 'exact', 'substring', 'fuzzy' } - -end - -local lsp_installer = require("nvim-lsp-installer") - -lsp_installer.on_server_ready(function(server) - local opts = {} - - -- (optional) Customize the options passed to the server - if server.name == "emmet_ls" then - opts.filetypes = {"html", "css", "blade"} - end - - opts.on_attach = on_attach - -- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart) - server:setup(opts) - vim.cmd [[ do User LspAttachBuffers ]] -end) diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua new file mode 100644 index 0000000..d427aca --- /dev/null +++ b/lua/alpha/plugins.lua @@ -0,0 +1,139 @@ +vim.cmd [[packadd packer.nvim]] +vim.cmd([[autocmd BufWritePost plugins.lua source | PackerCompile]]) + +return require('packer').startup(function(use) + use 'wbthomason/packer.nvim' + use "lewis6991/impatient.nvim" + + use { + 'ThePrimeagen/refactoring.nvim', + requires = { + {'nvim-lua/plenary.nvim'}, + {'nvim-treesitter/nvim-treesitter'} + } + } + + use { + 'nvim-treesitter/nvim-treesitter', + run = ':TSUpdate', + requires = { + 'nvim-treesitter/playground', + 'nvim-treesitter/nvim-treesitter-refactor', + 'nvim-treesitter/nvim-treesitter-textobjects', + } + } + + use { + 'ThePrimeagen/harpoon', + requires = { + 'nvim-lua/plenary.nvim', + 'nvim-lua/popup.nvim', + }, + } + + use 'tpope/vim-dispatch' + + -- Completition + use { + "hrsh7th/nvim-cmp", + requires = { + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + "hrsh7th/cmp-nvim-lua", + "hrsh7th/cmp-nvim-lsp", + "saadparwaiz1/cmp_luasnip", + "onsails/lspkind-nvim", + "L3MON4D3/LuaSnip", + } + } + + use "windwp/nvim-autopairs" + + use "tjdevries/colorbuddy.nvim" + + use { + 'neovim/nvim-lspconfig', + 'williamboman/nvim-lsp-installer', + 'hrsh7th/cmp-nvim-lsp-signature-help', + 'ray-x/lsp_signature.nvim' + } + + use { + 'nvim-telescope/telescope.nvim', + requires = { + { 'nvim-lua/plenary.nvim'}, + { 'nvim-lua/popup.nvim' }, + { 'nvim-telescope/telescope-fzy-native.nvim' }, + { 'kyazdani42/nvim-web-devicons' }, + { 'nvim-telescope/telescope-file-browser.nvim' } + } + } + + use { + 'nvim-lualine/lualine.nvim', + requires = {'kyazdani42/nvim-web-devicons', opt = true} + } + + use { + 'leoluz/nvim-dap-go', + requires = { + 'rcarriga/nvim-dap-ui', + 'mfussenegger/nvim-dap', + "Pocco81/DAPInstall.nvim", + 'leoluz/nvim-dap-go', + } + } + + use 'szw/vim-maximizer' + + use 'vim-test/vim-test' + + use 'fatih/vim-go' + + use { + 'noahfrederick/vim-laravel', + requires = { + { 'tpope/vim-projectionist' }, + { 'noahfrederick/vim-composer' } + } + } + + use 'jwalton512/vim-blade' + + use 'dracula/vim' + + use 'Raimondi/delimitMate' + use 'tpope/vim-surround' + use 'tpope/vim-dotenv' + use 'tpope/vim-fugitive' + use 'tpope/vim-repeat' + use 'tpope/vim-obsession' + use 'tpope/vim-vinegar' + use 'tpope/vim-eunuch' + use 'tpope/vim-commentary' + + use { + 'lewis6991/gitsigns.nvim', + requires = { + 'nvim-lua/plenary.nvim' + }, + config = function() + require('gitsigns').setup() + end + } + + use 'tpope/vim-tbone' + + use { + 'tpope/vim-dadbod', + requires = { + 'kristijanhusak/vim-dadbod-ui', + } + } + + use { 'nicwest/vim-http', opt = true, cmd = {'Http'}} + use { 'vimwiki/vimwiki', opt = true, cmd = {'VimwikiIndex'}} + + -- Local plugins can be included + use '~/code/neovim/telescope-projectionist.nvim' +end) diff --git a/lua/alpha/status-line.lua b/lua/alpha/status-line.lua deleted file mode 100644 index e504b2d..0000000 --- a/lua/alpha/status-line.lua +++ /dev/null @@ -1,31 +0,0 @@ -require('lualine').setup{ - options = { - theme = 'dracula', - icons_enabled = true, - }, - extensions = {'quickfix', 'fugitive'}, - sections = { - lualine_a = { { 'mode', upper = true } }, - lualine_b = { { 'branch', icon = '' }, 'diff' }, - lualine_c = { { 'filename', file_status = true, path = 1 } }, - lualine_x = { { 'diagnostics', sources = { 'nvim_diagnostic' } },'encoding', 'fileformat', 'filetype' }, - lualine_y = { 'progress' }, - lualine_z = { 'location' }, - }, - inactive_sections = { - lualine_a = { }, - lualine_b = { }, - lualine_c = { 'filename' }, - lualine_x = { 'location' }, - lualine_y = { }, - lualine_z = { }, - }, - -- tabline = { - -- lualine_a = {'buffers'}, - -- lualine_b = {}, - -- lualine_c = {}, - -- lualine_x = {}, - -- lualine_y = {}, - -- lualine_z = {'tabs'} - -- } - } diff --git a/lua/alpha/treesitter.lua b/lua/alpha/treesitter.lua deleted file mode 100644 index 14b1295..0000000 --- a/lua/alpha/treesitter.lua +++ /dev/null @@ -1,60 +0,0 @@ -require "nvim-treesitter.configs".setup { - ensure_installed = {"php", "go", "comment", "css", "html", "javascript", "lua", "typescript"}, - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - }, - indent = { - enable = true, - }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "gnn", - node_incremental = "grn", - scope_incremental = "grc", - node_decremental = "grm", - }, - }, - refactor = { - highlight_definitions = { enable = true }, - smart_rename = { - enable = true, - keymaps = { - smart_rename = "grr", - }, - }, - }, - textobjects = { - select = { - enable = true, - lookahead = true, - keymaps = { - ["af"] = "@function.outer", - ["if"] = "@function.inner", - ["ac"] = "@conditional.outer", - ["ic"] = "@conditional.inner", - ["al"] = "@loop.outer", - ["il"] = "@loop.inner", - } - } - }, - playground = { - enable = true, - disable = {}, - updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code - persist_queries = false, -- Whether the query persists across vim sessions - keybindings = { - toggle_query_editor = 'o', - toggle_hl_groups = 'i', - toggle_injected_languages = 't', - toggle_anonymous_nodes = 'a', - toggle_language_display = 'I', - focus_language = 'f', - unfocus_language = 'F', - update = 'R', - goto_node = '', - show_help = '?', - }, - } -} diff --git a/lua/plugins.lua b/lua/plugins.lua deleted file mode 100644 index 31a3aad..0000000 --- a/lua/plugins.lua +++ /dev/null @@ -1,138 +0,0 @@ -vim.cmd [[packadd packer.nvim]] -vim.cmd([[autocmd BufWritePost plugins.lua source | PackerCompile]]) - -return require('packer').startup(function(use) - use {'wbthomason/packer.nvim', opt = true} - - use { - 'ThePrimeagen/refactoring.nvim', - requires = { - {'nvim-lua/plenary.nvim'}, - {'nvim-treesitter/nvim-treesitter'} - } - } - - use { - 'nvim-treesitter/nvim-treesitter', - run = ':TSUpdate', - requires = { - 'nvim-treesitter/playground', - 'nvim-treesitter/nvim-treesitter-refactor', - 'nvim-treesitter/nvim-treesitter-textobjects', - } - } - - use { - 'ThePrimeagen/harpoon', - requires = { - 'nvim-lua/plenary.nvim', - 'nvim-lua/popup.nvim', - }, - } - - use 'tpope/vim-dispatch' - - -- Completition - use { - "hrsh7th/nvim-cmp", - requires = { - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", - "hrsh7th/cmp-nvim-lua", - "hrsh7th/cmp-nvim-lsp", - "saadparwaiz1/cmp_luasnip", - "onsails/lspkind-nvim", - "L3MON4D3/LuaSnip", - } - } - - use "windwp/nvim-autopairs" - - use "tjdevries/colorbuddy.nvim" - - use { - 'neovim/nvim-lspconfig', - 'williamboman/nvim-lsp-installer', - 'hrsh7th/cmp-nvim-lsp-signature-help', - 'ray-x/lsp_signature.nvim' - } - - use { - 'nvim-telescope/telescope.nvim', - requires = { - { 'nvim-lua/plenary.nvim'}, - { 'nvim-lua/popup.nvim' }, - { 'nvim-telescope/telescope-fzy-native.nvim' }, - { 'kyazdani42/nvim-web-devicons' }, - { 'nvim-telescope/telescope-file-browser.nvim' } - } - } - - use { - 'nvim-lualine/lualine.nvim', - requires = {'kyazdani42/nvim-web-devicons', opt = true} - } - - use { - 'leoluz/nvim-dap-go', - requires = { - 'rcarriga/nvim-dap-ui', - 'mfussenegger/nvim-dap', - "Pocco81/DAPInstall.nvim", - 'leoluz/nvim-dap-go', - } - } - - use 'szw/vim-maximizer' - - use 'vim-test/vim-test' - - use 'fatih/vim-go' - - use { - 'noahfrederick/vim-laravel', - requires = { - { 'tpope/vim-projectionist' }, - { 'noahfrederick/vim-composer' } - } - } - - use 'jwalton512/vim-blade' - - use 'dracula/vim' - - use 'Raimondi/delimitMate' - use 'tpope/vim-surround' - use 'tpope/vim-dotenv' - use 'tpope/vim-fugitive' - use 'tpope/vim-repeat' - use 'tpope/vim-obsession' - use 'tpope/vim-vinegar' - use 'tpope/vim-eunuch' - use 'tpope/vim-commentary' - - use { - 'lewis6991/gitsigns.nvim', - requires = { - 'nvim-lua/plenary.nvim' - }, - config = function() - require('gitsigns').setup() - end - } - - use 'tpope/vim-tbone' - - use { - 'tpope/vim-dadbod', - requires = { - 'kristijanhusak/vim-dadbod-ui', - } - } - - use { 'nicwest/vim-http', opt = true, cmd = {'Http'}} - use { 'vimwiki/vimwiki', opt = true, cmd = {'VimwikiIndex'}} - - -- Local plugins can be included - use '~/code/neovim/telescope-projectionist.nvim' -end) diff --git a/plugin/keymaps.vim b/plugin/keymaps.vim new file mode 100644 index 0000000..10f9bdb --- /dev/null +++ b/plugin/keymaps.vim @@ -0,0 +1,71 @@ +scriptencoding utf-8 + +nnoremap * /\<=expand('')\> +nnoremap # ?\<=expand('')\> + +vnoremap p "_dP + +nnoremap Y y$ + +nnoremap n nzzzv +nnoremap N Nzzzv +nnoremap J mzJ`z + +inoremap , ,u +inoremap . .u +inoremap ! !u +inoremap ? ?u +inoremap $ $u +inoremap > >u + +vnoremap < >gv + +nnoremap h :wincmd h +nnoremap j :wincmd j +nnoremap k :wincmd k +nnoremap l :wincmd l +nnoremap q :wincmd q +" Make windows to be basically the same size +nnoremap = = + +nnoremap wv :vsp +nnoremap wh :sp + +nnoremap :cnext +nnoremap :cprev + +nnoremap i :lnext +nnoremap o :lprev + +nnoremap bd :bd + +nnoremap dp ":saveas " . expand('%') + +" For moving quickly up and down, +" Goes to the first line above/below that isn't whitespace +" Thanks to: http://vi.stackexchange.com/a/213 +nnoremap gj :let _=&lazyredraw:set lazyredraw/\%=virtcol(".")v\S:nohl:let &lazyredraw=_ +nnoremap gk :let _=&lazyredraw:set lazyredraw?\%=virtcol(".")v\S:nohl:let &lazyredraw=_ + +" Run the last command +nnoremap c : + + +if has('nvim') + " Make esc leave terminal mode + tnoremap + tnoremap + + " Easy moving between the buffers + tnoremap h + tnoremap j + tnoremap k + tnoremap l + + " Try and make sure to not mangle space items + tnoremap + tnoremap +endif + +nnoremap x :call alpha#save_and_exec() diff --git a/plugin/navigation.vim b/plugin/navigation.vim deleted file mode 100644 index 522b80a..0000000 --- a/plugin/navigation.vim +++ /dev/null @@ -1,16 +0,0 @@ -nnoremap h :wincmd h -nnoremap j :wincmd j -nnoremap k :wincmd k -nnoremap l :wincmd l -nnoremap q :wincmd q - -nnoremap wv :vsp -nnoremap wh :sp - -nnoremap :cnext -nnoremap :cprev - -nnoremap i :lnext -nnoremap o :lprev - -nnoremap bd :bd diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua new file mode 100644 index 0000000..f643f76 --- /dev/null +++ b/plugin/packer_compiled.lua @@ -0,0 +1,389 @@ +-- 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() + + 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 + + _G._packer = _G._packer or {} + _G._packer.profile_output = results +end + +time([[Luarocks path setup]], true) +local package_path_str = "/home/adalessa/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/adalessa/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/adalessa/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/adalessa/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/home/adalessa/.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 = { + ["DAPInstall.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/DAPInstall.nvim", + url = "https://github.com/Pocco81/DAPInstall.nvim" + }, + LuaSnip = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/LuaSnip", + url = "https://github.com/L3MON4D3/LuaSnip" + }, + ["cmp-buffer"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/cmp-buffer", + url = "https://github.com/hrsh7th/cmp-buffer" + }, + ["cmp-nvim-lsp"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", + url = "https://github.com/hrsh7th/cmp-nvim-lsp" + }, + ["cmp-nvim-lsp-signature-help"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help", + url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help" + }, + ["cmp-nvim-lua"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", + url = "https://github.com/hrsh7th/cmp-nvim-lua" + }, + ["cmp-path"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/cmp-path", + url = "https://github.com/hrsh7th/cmp-path" + }, + cmp_luasnip = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/cmp_luasnip", + url = "https://github.com/saadparwaiz1/cmp_luasnip" + }, + ["colorbuddy.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/colorbuddy.nvim", + url = "https://github.com/tjdevries/colorbuddy.nvim" + }, + delimitMate = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/delimitMate", + url = "https://github.com/Raimondi/delimitMate" + }, + ["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/adalessa/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", + url = "https://github.com/lewis6991/gitsigns.nvim" + }, + harpoon = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/harpoon", + url = "https://github.com/ThePrimeagen/harpoon" + }, + ["impatient.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/impatient.nvim", + url = "https://github.com/lewis6991/impatient.nvim" + }, + ["lsp_signature.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim", + url = "https://github.com/ray-x/lsp_signature.nvim" + }, + ["lspkind-nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/lspkind-nvim", + url = "https://github.com/onsails/lspkind-nvim" + }, + ["lualine.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/lualine.nvim", + url = "https://github.com/nvim-lualine/lualine.nvim" + }, + ["nvim-autopairs"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-autopairs", + url = "https://github.com/windwp/nvim-autopairs" + }, + ["nvim-cmp"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-cmp", + url = "https://github.com/hrsh7th/nvim-cmp" + }, + ["nvim-dap"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-dap", + url = "https://github.com/mfussenegger/nvim-dap" + }, + ["nvim-dap-go"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-dap-go", + url = "https://github.com/leoluz/nvim-dap-go" + }, + ["nvim-dap-ui"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-dap-ui", + url = "https://github.com/rcarriga/nvim-dap-ui" + }, + ["nvim-lsp-installer"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer", + url = "https://github.com/williamboman/nvim-lsp-installer" + }, + ["nvim-lspconfig"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", + url = "https://github.com/neovim/nvim-lspconfig" + }, + ["nvim-treesitter"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, + ["nvim-treesitter-refactor"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-treesitter-refactor", + url = "https://github.com/nvim-treesitter/nvim-treesitter-refactor" + }, + ["nvim-treesitter-textobjects"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textobjects", + url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects" + }, + ["nvim-web-devicons"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", + url = "https://github.com/kyazdani42/nvim-web-devicons" + }, + ["packer.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/packer.nvim", + url = "https://github.com/wbthomason/packer.nvim" + }, + playground = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/playground", + url = "https://github.com/nvim-treesitter/playground" + }, + ["plenary.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/plenary.nvim", + url = "https://github.com/nvim-lua/plenary.nvim" + }, + ["popup.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/popup.nvim", + url = "https://github.com/nvim-lua/popup.nvim" + }, + ["refactoring.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/refactoring.nvim", + url = "https://github.com/ThePrimeagen/refactoring.nvim" + }, + ["telescope-file-browser.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/telescope-file-browser.nvim", + url = "https://github.com/nvim-telescope/telescope-file-browser.nvim" + }, + ["telescope-fzy-native.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim", + url = "https://github.com/nvim-telescope/telescope-fzy-native.nvim" + }, + ["telescope-projectionist.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/telescope-projectionist.nvim", + url = "/home/adalessa/code/neovim/telescope-projectionist.nvim" + }, + ["telescope.nvim"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/telescope.nvim", + url = "https://github.com/nvim-telescope/telescope.nvim" + }, + vim = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim", + url = "https://github.com/dracula/vim" + }, + ["vim-blade"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-blade", + url = "https://github.com/jwalton512/vim-blade" + }, + ["vim-commentary"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-commentary", + url = "https://github.com/tpope/vim-commentary" + }, + ["vim-composer"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-composer", + url = "https://github.com/noahfrederick/vim-composer" + }, + ["vim-dadbod"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-dadbod", + url = "https://github.com/tpope/vim-dadbod" + }, + ["vim-dadbod-ui"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-dadbod-ui", + url = "https://github.com/kristijanhusak/vim-dadbod-ui" + }, + ["vim-dispatch"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-dispatch", + url = "https://github.com/tpope/vim-dispatch" + }, + ["vim-dotenv"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-dotenv", + url = "https://github.com/tpope/vim-dotenv" + }, + ["vim-eunuch"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-eunuch", + url = "https://github.com/tpope/vim-eunuch" + }, + ["vim-fugitive"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-fugitive", + url = "https://github.com/tpope/vim-fugitive" + }, + ["vim-go"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-go", + url = "https://github.com/fatih/vim-go" + }, + ["vim-http"] = { + commands = { "Http" }, + loaded = false, + needs_bufread = true, + only_cond = false, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/opt/vim-http", + url = "https://github.com/nicwest/vim-http" + }, + ["vim-laravel"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-laravel", + url = "https://github.com/noahfrederick/vim-laravel" + }, + ["vim-maximizer"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-maximizer", + url = "https://github.com/szw/vim-maximizer" + }, + ["vim-obsession"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-obsession", + url = "https://github.com/tpope/vim-obsession" + }, + ["vim-projectionist"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-projectionist", + url = "https://github.com/tpope/vim-projectionist" + }, + ["vim-repeat"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-repeat", + url = "https://github.com/tpope/vim-repeat" + }, + ["vim-surround"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-surround", + url = "https://github.com/tpope/vim-surround" + }, + ["vim-tbone"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-tbone", + url = "https://github.com/tpope/vim-tbone" + }, + ["vim-test"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-test", + url = "https://github.com/vim-test/vim-test" + }, + ["vim-vinegar"] = { + loaded = true, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/start/vim-vinegar", + url = "https://github.com/tpope/vim-vinegar" + }, + vimwiki = { + commands = { "VimwikiIndex" }, + loaded = false, + needs_bufread = true, + only_cond = false, + path = "/home/adalessa/.local/share/nvim/site/pack/packer/opt/vimwiki", + url = "https://github.com/vimwiki/vimwiki" + } +} + +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) + +-- Command lazy-loads +time([[Defining lazy-load commands]], true) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file VimwikiIndex lua require("packer.load")({'vimwiki'}, { cmd = "VimwikiIndex", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Http lua require("packer.load")({'vim-http'}, { cmd = "Http", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +time([[Defining lazy-load commands]], false) + +if should_profile then save_profiles() end + +end) + +if not no_errors then + vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') +end -- cgit v1.2.3