plenty of formatting, lsp fixes
This commit is contained in:
parent
6a992b9e73
commit
1fbc881852
23 changed files with 290 additions and 240 deletions
4
.config/nvim/TODO
Normal file
4
.config/nvim/TODO
Normal file
|
@ -0,0 +1,4 @@
|
|||
BUG: Formatting broken along with some other lsp keybinds https://github.com/neovim/nvim-lspconfig
|
||||
TODO: Separate DAP and LSP bindings into own section
|
||||
TODO: Make keybinds for packer
|
||||
NOTE: Maybe use autocmds to register to which-key to allow late startup
|
|
@ -1,4 +1,9 @@
|
|||
vim.defer_fn(function()
|
||||
pcall(require, "impatient")
|
||||
end, 0)
|
||||
|
||||
require('config.options')
|
||||
require('funcs').bootstrap()
|
||||
require('plugins')
|
||||
require('funcs').autocmd(require('config.autocmdlist'))
|
||||
require('funcs').map('general')
|
||||
|
|
|
@ -3,14 +3,14 @@ return {
|
|||
{ "BufEnter", "FocusGained", "InsertLeave", "WinEnter" },
|
||||
{
|
||||
pattern = "*",
|
||||
command="if &nu && mode() != \"i\" | set rnu | endif"
|
||||
command = "if &nu && mode() != \"i\" | set rnu | endif"
|
||||
}
|
||||
},
|
||||
{ -- Handles the automatic line numeration changes
|
||||
{ "BufLeave", "FocusLost", "InsertEnter", "WinLeave" },
|
||||
{
|
||||
pattern = "*",
|
||||
command="if &nu | set nornu | endif"
|
||||
command = "if &nu | set nornu | endif"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -114,7 +114,7 @@ return {
|
|||
Pencil = "",
|
||||
Plus = "",
|
||||
Project = "",
|
||||
Search = "",
|
||||
Search = "",
|
||||
SignIn = "",
|
||||
SignOut = "",
|
||||
Tab = "",
|
||||
|
|
|
@ -3,42 +3,42 @@ M.maps = {
|
|||
general = {
|
||||
n = { -- normal mode
|
||||
-- Better window navigation
|
||||
{"<C-h>", "<C-w>h"},
|
||||
{"<C-j>", "<C-w>j"},
|
||||
{"<C-k>", "<C-w>k"},
|
||||
{"<C-l>", "<C-w>l"},
|
||||
{ "<C-h>", "<C-w>h" },
|
||||
{ "<C-j>", "<C-w>j" },
|
||||
{ "<C-k>", "<C-w>k" },
|
||||
{ "<C-l>", "<C-w>l" },
|
||||
-- Resize with arrows
|
||||
{"<C-Up>", ":resize -2<CR>"},
|
||||
{"<C-Down>", ":resize +2<CR>"},
|
||||
{"<C-Left>", ":vertical resize -2<CR>"},
|
||||
{"<C-Right>", ":vertical resize +2<CR>"},
|
||||
{ "<C-Up>", ":resize -2<CR>" },
|
||||
{ "<C-Down>", ":resize +2<CR>" },
|
||||
{ "<C-Left>", ":vertical resize -2<CR>" },
|
||||
{ "<C-Right>", ":vertical resize +2<CR>" },
|
||||
-- Navigate buffers
|
||||
{"<TAB>", ":bnext<CR>"},
|
||||
{"<S-TAB>", ":bprevious<CR>"},
|
||||
-- LSP
|
||||
{"gD", "<cmd>lua vim.lsp.buf.declaration()<CR>"},
|
||||
{"gd", "<cmd>lua vim.lsp.buf.definition()<CR>"},
|
||||
{"K", "<cmd>lua vim.lsp.buf.hover()<CR>"},
|
||||
{"gI", "<cmd>lua vim.lsp.buf.implementation()<CR>"},
|
||||
{"gr", "<cmd>lua vim.lsp.buf.references()<CR>"},
|
||||
{"gl", "<cmd>lua vim.diagnostic.open_float()<CR>"},
|
||||
{ "<TAB>", ":bnext<CR>" },
|
||||
{ "<S-TAB>", ":bprevious<CR>" },
|
||||
-- lsp
|
||||
{ "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>" },
|
||||
{ "gd", "<cmd>lua vim.lsp.buf.definition()<CR>" },
|
||||
{ "K", "<cmd>lua vim.lsp.buf.hover()<CR>" },
|
||||
{ "gI", "<cmd>lua vim.lsp.buf.implementation()<CR>" },
|
||||
{ "gr", "<cmd>lua vim.lsp.buf.references()<CR>" },
|
||||
{ "gl", "<cmd>lua vim.diagnostic.open_float()<CR>" },
|
||||
},
|
||||
i = { -- insert mode
|
||||
-- Delete last word with ctrl + del
|
||||
{"<C-BS>", "<C-W>"},
|
||||
{ "<C-BS>", "<C-W>" },
|
||||
},
|
||||
v = { -- visual mode
|
||||
-- Better paste
|
||||
{"p", '"_dP'},
|
||||
{ "p", '"_dP' },
|
||||
-- Stay in indent mode
|
||||
{"<", "<gv"},
|
||||
{">", ">gv"},
|
||||
{ "<", "<gv" },
|
||||
{ ">", ">gv" },
|
||||
}
|
||||
},
|
||||
illuminate = {
|
||||
n = {
|
||||
{"<a-n>", "<cmd>lua require('illuminate').next_reference{wrap=true}<CR>"},
|
||||
{"<a-p>", "<cmd>lua require('illuminate').next_reference{reverse=true,wrap=true}<CR>"},
|
||||
{ "<a-n>", "<cmd>lua require('illuminate').next_reference{wrap=true}<CR>" },
|
||||
{ "<a-p>", "<cmd>lua require('illuminate').next_reference{reverse=true,wrap=true}<CR>" },
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@ -50,34 +50,53 @@ M.whichkey = {
|
|||
["q"] = { function() require("funcs").buf_kill() end, "Close" },
|
||||
-- TODO: filepicker ["f"] = {},
|
||||
["h"] = { "<cmd>nohlsearch<CR>", "Clear Highlights" },
|
||||
u = {
|
||||
name = "Utility",
|
||||
c = { "<cmd>w!<CR><cmd>!compiler \"%:p\"<CR>", "Compile" },
|
||||
},
|
||||
l = {
|
||||
name = "LSP",
|
||||
a = { function() vim.lsp.buf.code_action() end, "Code Action" },
|
||||
f = { function() vim.lsp.buf.format{ async = true }() end, "Format" },
|
||||
i = { "<cmd>LspInfo<cr>", "Info" },
|
||||
I = { "<cmd>Mason<cr>", "Mason Info" },
|
||||
f = { function() vim.lsp.buf.format { async = true } end, "Format" },
|
||||
j = { function() vim.diagnostic.goto_next() end, "Next Diagnostic" },
|
||||
k = { function() vim.diagnostic.goto_prev() end, "Prev Diagnostic" },
|
||||
l = { function() vim.lsp.codelens.run() end, "CodeLens Action" },
|
||||
q = { function() vim.diagnostic.setloclist() end, "Quickfix" },
|
||||
r = { function() vim.lsp.buf.rename() end, "Rename" },
|
||||
},
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
lspconfig = {
|
||||
n = {
|
||||
l = {
|
||||
name = "LSP",
|
||||
i = { "<cmd>LspInfo<cr>", "Info" },
|
||||
}
|
||||
}
|
||||
},
|
||||
mason = {
|
||||
n = {
|
||||
l = {
|
||||
name = "LSP",
|
||||
I = { "<cmd>Mason<cr>", "Mason Info" },
|
||||
}
|
||||
}
|
||||
},
|
||||
dap = {
|
||||
n = {
|
||||
d = {
|
||||
name = "DAP",
|
||||
b = { function() require("dap").toggle_breakpoint() end, "Toggle Breakpoint"},
|
||||
c = { function() require("dap").continue() end, "Continue"},
|
||||
i = { function() require("dap").step_into() end, "Step Into"},
|
||||
o = { function() require("dap").step_over() end, "Step Over"},
|
||||
O = { function() require("dap").step_out() end, "Step Out"},
|
||||
r = { function() require("dap").repl.toggle() end, "Toggle REPL"},
|
||||
l = { function() require("dap").run_last() end, "Run Last"},
|
||||
t = { function() require("dap").terminate() end, "Stop Debugger"},
|
||||
u = { function() require("dapui").toggle() end, "Toggle DAP UI"},
|
||||
},
|
||||
u = {
|
||||
name = "Utility",
|
||||
c = { "<cmd>w!<CR><cmd>!compiler \"%:p\"<CR>", "Compile" },
|
||||
},
|
||||
b = { function() require("dap").toggle_breakpoint() end, "Toggle Breakpoint" },
|
||||
c = { function() require("dap").continue() end, "Continue" },
|
||||
i = { function() require("dap").step_into() end, "Step Into" },
|
||||
o = { function() require("dap").step_over() end, "Step Over" },
|
||||
O = { function() require("dap").step_out() end, "Step Out" },
|
||||
r = { function() require("dap").repl.toggle() end, "Toggle REPL" },
|
||||
l = { function() require("dap").run_last() end, "Run Last" },
|
||||
t = { function() require("dap").terminate() end, "Stop Debugger" },
|
||||
u = { function() require("dapui").toggle() end, "Toggle DAP UI" },
|
||||
}
|
||||
}
|
||||
},
|
||||
telescope = {
|
||||
|
@ -103,7 +122,6 @@ M.whichkey = {
|
|||
},
|
||||
s = {
|
||||
name = "Search",
|
||||
b = { "<cmd>Telescope git_branches<cr>", "Checkout branch" },
|
||||
c = { "<cmd>Telescope colorscheme<cr>", "Colorscheme" },
|
||||
f = { "<cmd>Telescope find_files<cr>", "Find File" },
|
||||
h = { "<cmd>Telescope help_tags<cr>", "Find Help" },
|
||||
|
@ -112,14 +130,15 @@ M.whichkey = {
|
|||
r = { "<cmd>Telescope oldfiles<cr>", "Open Recent File" },
|
||||
R = { "<cmd>Telescope registers<cr>", "Registers" },
|
||||
t = { "<cmd>Telescope live_grep<cr>", "Text" },
|
||||
T = { "<cmd>TodoTelescope<cr>", "Todo Comments" },
|
||||
k = { "<cmd>Telescope keymaps<cr>", "Keymaps" },
|
||||
C = { "<cmd>Telescope commands<cr>", "Commands" },
|
||||
}
|
||||
}
|
||||
},
|
||||
blankline = {
|
||||
n ={
|
||||
["c"] = {
|
||||
n = {
|
||||
c = {
|
||||
function()
|
||||
local ok, start = require("indent_blankline.utils").get_current_context(
|
||||
vim.g.indent_blankline_context_patterns,
|
||||
|
|
|
@ -21,8 +21,6 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
["bashls"] = {
|
||||
},
|
||||
["clangd"] = {
|
||||
},
|
||||
["bashls"] = {},
|
||||
["clangd"] = {},
|
||||
}
|
||||
|
|
|
@ -34,6 +34,5 @@ o.number = true
|
|||
o.relativenumber = true
|
||||
o.laststatus = 3
|
||||
|
||||
g.Illuminate_ftblacklist = {'alpha', 'NvimTree'}
|
||||
g.Illuminate_ftblacklist = { 'alpha', 'NvimTree' }
|
||||
g.mapleader = ' '
|
||||
|
||||
|
|
|
@ -70,10 +70,20 @@ function M.bootstrap()
|
|||
local fn = vim.fn
|
||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||
if fn.empty(fn.glob(install_path)) > 0 then
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#1e222a" })
|
||||
print "Cloning Packer..."
|
||||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||
return true
|
||||
vim.cmd "packadd packer.nvim"
|
||||
require "plugins"
|
||||
vim.cmd "PackerSync"
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "PackerComplete",
|
||||
callback = function()
|
||||
vim.cmd "bw | silent! MasonInstallAll" -- close packer window
|
||||
require("packer").loader "nvim-treesitter"
|
||||
end,
|
||||
})
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function M.map(section)
|
||||
|
|
|
@ -12,7 +12,8 @@ local function border(hl_name)
|
|||
{ "╯", hl_name },
|
||||
{ "─", hl_name },
|
||||
{ "╰", hl_name },
|
||||
{ "│", hl_name },}
|
||||
{ "│", hl_name },
|
||||
}
|
||||
end
|
||||
|
||||
local check_backspace = function()
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
local status_ok, illuminate = pcall(require, "illuminate")
|
||||
if not status_ok then
|
||||
return
|
||||
return
|
||||
end
|
||||
|
||||
vim.g.Illuminate_ftblacklist = {'alpha', 'NvimTree'}
|
||||
vim.g.Illuminate_ftblacklist = { 'alpha', 'NvimTree' }
|
||||
|
||||
illuminate.configure {
|
||||
providers = {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
-- This file is currently not used anywhere
|
||||
local status_ok, impatient = pcall(require, "impatient")
|
||||
if not status_ok then
|
||||
return
|
||||
|
|
|
@ -7,9 +7,6 @@ local servers = require('config.lsp')
|
|||
local opts = {}
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
-- TODO: load keymaps
|
||||
end
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
|
|
|
@ -90,7 +90,7 @@ ins_left {
|
|||
function()
|
||||
return '▊'
|
||||
end,
|
||||
color = function ()
|
||||
color = function()
|
||||
return mode_color()
|
||||
end,
|
||||
padding = { right = 1 },
|
||||
|
@ -119,7 +119,8 @@ ins_left {
|
|||
ins_left {
|
||||
'diagnostics',
|
||||
sources = { 'nvim_diagnostic' },
|
||||
symbols = { error = icons.diagnostics.BoldError .. ' ', warn = icons.diagnostics.BoldWarning .. ' ', info = icons.diagnostics.BoldInformation },
|
||||
symbols = { error = icons.diagnostics.BoldError .. ' ', warn = icons.diagnostics.BoldWarning .. ' ',
|
||||
info = icons.diagnostics.BoldInformation },
|
||||
diagnostics_color = {
|
||||
color_error = { fg = colors.red },
|
||||
color_warn = { fg = colors.yellow },
|
||||
|
@ -135,7 +136,6 @@ ins_left {
|
|||
|
||||
ins_left {
|
||||
'filename',
|
||||
cond = conditions.buffer_not_empty,
|
||||
color = { fg = colors.magenta, gui = 'bold' },
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ ins_right {
|
|||
function()
|
||||
return '▊'
|
||||
end,
|
||||
color = function ()
|
||||
color = function()
|
||||
return mode_color()
|
||||
end,
|
||||
padding = { left = 1 },
|
||||
|
|
|
@ -14,12 +14,10 @@ require("luasnip.loaders.from_vscode").lazy_load()
|
|||
|
||||
vim.api.nvim_create_autocmd("InsertLeave", {
|
||||
callback = function()
|
||||
if
|
||||
require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()]
|
||||
and not require("luasnip").session.jump_active
|
||||
if require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()]
|
||||
and not require("luasnip").session.jump_active
|
||||
then
|
||||
require("luasnip").unlink_current()
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ end
|
|||
|
||||
local serverlist = require('config.lsp')
|
||||
local servers = {}
|
||||
for key,_ in pairs(serverlist) do
|
||||
for key, _ in pairs(serverlist) do
|
||||
table.insert(servers, key)
|
||||
end
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ end
|
|||
|
||||
local serverlist = require('config.lsp')
|
||||
local servers = {}
|
||||
for key,_ in pairs(serverlist) do
|
||||
for key, _ in pairs(serverlist) do
|
||||
table.insert(servers, key)
|
||||
end
|
||||
local icons = require('config.iconlist')
|
||||
|
|
|
@ -8,11 +8,14 @@ local formatting = null_ls.builtins.formatting
|
|||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||
local diagnostics = null_ls.builtins.diagnostics
|
||||
|
||||
-- WARN: If this setup doesn't work it's probably because a different language server with a formatter is taking precedence
|
||||
-- https://github.com/LunarVim/LunarVim/blob/master/lua/lvim/lsp/utils.lua#L172
|
||||
|
||||
null_ls.setup {
|
||||
debug = false,
|
||||
sources = {
|
||||
-- formatting.black.with { extra_args = { "--fast" } },
|
||||
-- formatting.stylua,
|
||||
-- diagnostics.flake8,
|
||||
-- formatting.black.with { extra_args = { "--fast" } },
|
||||
-- formatting.stylua,
|
||||
-- diagnostics.flake8,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -3,25 +3,65 @@ if not status_ok then
|
|||
return
|
||||
end
|
||||
|
||||
local actions = require ('telescope.actions')
|
||||
local icons = require ('config.iconlist')
|
||||
local icons = require('config.iconlist')
|
||||
|
||||
telescope.setup {
|
||||
defaults = {
|
||||
|
||||
prompt_prefix = icons.ui.Telescope,
|
||||
selection_caret = icons.ui.Forward,
|
||||
path_display = { "smart" },
|
||||
file_ignore_patterns = { ".git/", "node_modules" },
|
||||
|
||||
mappings = {
|
||||
i = {
|
||||
["<Down>"] = actions.cycle_history_next,
|
||||
["<Up>"] = actions.cycle_history_prev,
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
}
|
||||
telescope.setup {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
"-L",
|
||||
"--color=never",
|
||||
"--no-heading",
|
||||
"--with-filename",
|
||||
"--line-number",
|
||||
"--column",
|
||||
"--smart-case",
|
||||
},
|
||||
prompt_prefix = " " .. icons.ui.Search .. " ",
|
||||
selection_caret = " ",
|
||||
entry_prefix = " ",
|
||||
initial_mode = "insert",
|
||||
selection_strategy = "reset",
|
||||
sorting_strategy = "ascending",
|
||||
layout_strategy = "horizontal",
|
||||
layout_config = {
|
||||
horizontal = {
|
||||
prompt_position = "top",
|
||||
preview_width = 0.55,
|
||||
results_width = 0.8,
|
||||
},
|
||||
vertical = {
|
||||
mirror = false,
|
||||
},
|
||||
width = 0.87,
|
||||
height = 0.80,
|
||||
preview_cutoff = 120,
|
||||
},
|
||||
file_sorter = require("telescope.sorters").get_fuzzy_file,
|
||||
file_ignore_patterns = { ".git/", "node_modules" },
|
||||
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
|
||||
path_display = { "truncate" },
|
||||
winblend = 0,
|
||||
border = {},
|
||||
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||
color_devicons = true,
|
||||
set_env = { ["COLORTERM"] = "truecolor" }, -- default = nil,
|
||||
file_previewer = require("telescope.previewers").vim_buffer_cat.new,
|
||||
grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new,
|
||||
qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new,
|
||||
-- Developer configurations: Not meant for general override
|
||||
buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker,
|
||||
mappings = {
|
||||
n = { ["q"] = require("telescope.actions").close },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -9,4 +9,4 @@ tokyonight.setup({
|
|||
dim_inactive = true,
|
||||
lualine_bold = true,
|
||||
})
|
||||
vim.cmd[[colorscheme tokyonight]]
|
||||
vim.cmd [[colorscheme tokyonight]]
|
||||
|
|
|
@ -49,4 +49,3 @@ whichkey.setup {
|
|||
v = { "j", "k", "c", "y", "d", "v" },
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local packer_bootstrap = require('funcs').bootstrap()
|
||||
local icons = require "config.iconlist"
|
||||
local plugins = {
|
||||
{ "wbthomason/packer.nvim" },
|
||||
|
@ -25,7 +24,7 @@ local plugins = {
|
|||
},
|
||||
{ "folke/which-key.nvim",
|
||||
config = function()
|
||||
require "plugins.config.whichkey"
|
||||
require('plugins.config.whichkey')
|
||||
end,
|
||||
},
|
||||
{ "folke/tokyonight.nvim",
|
||||
|
@ -34,7 +33,6 @@ local plugins = {
|
|||
end
|
||||
},
|
||||
{ "folke/todo-comments.nvim",
|
||||
opt = true,
|
||||
after = "which-key.nvim",
|
||||
setup = function()
|
||||
require('funcs').on_file_open("todo-comments.nvim")
|
||||
|
@ -44,14 +42,13 @@ local plugins = {
|
|||
end
|
||||
},
|
||||
{ "akinsho/bufferline.nvim",
|
||||
opt = true,
|
||||
after = "which-key.nvim",
|
||||
setup = function()
|
||||
require('funcs').on_file_open("bufferline.nvim")
|
||||
require('funcs').map("bufferline")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.bufferline")
|
||||
require('plugins.config.bufferline')
|
||||
end,
|
||||
},
|
||||
{ "nvim-lualine/lualine.nvim",
|
||||
|
@ -59,43 +56,40 @@ local plugins = {
|
|||
require('funcs').on_file_open("lualine.nvim")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.lualine")
|
||||
require('plugins.config.lualine')
|
||||
end,
|
||||
},
|
||||
{ "akinsho/toggleterm.nvim",
|
||||
config = function()
|
||||
require("plugins.config.toggleterm")
|
||||
require('plugins.config.toggleterm')
|
||||
end,
|
||||
},
|
||||
{ "lukas-reineke/indent-blankline.nvim",
|
||||
opt = true,
|
||||
after = "which-key.nvim",
|
||||
setup = function()
|
||||
require('funcs').on_file_open("indent-blankline.nvim")
|
||||
require('funcs').map("blankline")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.indent-blankline")
|
||||
require('plugins.config.indent-blankline')
|
||||
end,
|
||||
},
|
||||
{ "norcalli/nvim-colorizer.lua",
|
||||
opt = true,
|
||||
setup = function()
|
||||
require('funcs').on_file_open("nvim-colorizer.lua")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.nvim-colorizer")
|
||||
require('plugins.config.nvim-colorizer')
|
||||
end,
|
||||
},
|
||||
{ "RRethy/vim-illuminate",
|
||||
opt = true,
|
||||
after = "which-key.nvim",
|
||||
setup = function()
|
||||
require('funcs').on_file_open("vim-illuminate")
|
||||
require('funcs').map("illuminate")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.illuminate")
|
||||
require('plugins.config.illuminate')
|
||||
end,
|
||||
},
|
||||
{ "nvim-treesitter/nvim-treesitter",
|
||||
|
@ -112,7 +106,7 @@ local plugins = {
|
|||
},
|
||||
run = ":TSUpdate",
|
||||
config = function()
|
||||
require("plugins.config.treesitter")
|
||||
require('plugins.config.treesitter')
|
||||
end,
|
||||
},
|
||||
{ "lewis6991/gitsigns.nvim",
|
||||
|
@ -121,49 +115,52 @@ local plugins = {
|
|||
require('funcs').gitsigns()
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.gitsigns")
|
||||
require('plugins.config.gitsigns')
|
||||
end,
|
||||
},
|
||||
{ "williamboman/mason.nvim",
|
||||
setup = function()
|
||||
require('funcs').map("mason")
|
||||
end,
|
||||
config = function()
|
||||
require "plugins.config.mason"
|
||||
end,
|
||||
},
|
||||
{ "williamboman/mason-lspconfig.nvim",
|
||||
config = function()
|
||||
require("plugins.config.mason-lspconfig")
|
||||
require('plugins.config.mason-lspconfig')
|
||||
end,
|
||||
},
|
||||
{ "neovim/nvim-lspconfig",
|
||||
setup = function()
|
||||
require('funcs').on_file_open("nvim-lspconfig")
|
||||
require('funcs').map("lspconfig")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.lspconfig")
|
||||
require('plugins.config.lspconfig')
|
||||
end,
|
||||
},
|
||||
{ "jose-elias-alvarez/null-ls.nvim",
|
||||
config = function()
|
||||
require("plugins.config.null-ls")
|
||||
require('plugins.config.null-ls')
|
||||
end,
|
||||
},
|
||||
{ "rcarriga/nvim-dap-ui",
|
||||
opt = true,
|
||||
after = "nvim-dap",
|
||||
setup = function()
|
||||
require('funcs').on_file_open("nvim-dap-ui")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.dapui")
|
||||
require('plugins.config.dapui')
|
||||
end,
|
||||
},
|
||||
{ "mfussenegger/nvim-dap",
|
||||
opt = true,
|
||||
setup = function()
|
||||
require('funcs').on_file_open("nvim-dap")
|
||||
require('funcs').map("dap")
|
||||
end,
|
||||
config = function()
|
||||
require("plugins.config.dap")
|
||||
require('plugins.config.dap')
|
||||
end,
|
||||
},
|
||||
{ "rafamadriz/friendly-snippets",
|
||||
|
@ -173,13 +170,13 @@ local plugins = {
|
|||
{ "hrsh7th/nvim-cmp",
|
||||
after = "friendly-snippets",
|
||||
config = function()
|
||||
require("plugins.config.cmp")
|
||||
require('plugins.config.cmp')
|
||||
end,
|
||||
},
|
||||
{ "L3MON4D3/LuaSnip",
|
||||
after = "nvim-cmp",
|
||||
config = function()
|
||||
require("plugins.config.luasnip")
|
||||
require('plugins.config.luasnip')
|
||||
end,
|
||||
},
|
||||
{ "saadparwaiz1/cmp_luasnip", after = "LuaSnip" },
|
||||
|
@ -190,18 +187,18 @@ local plugins = {
|
|||
{ "windwp/nvim-autopairs",
|
||||
after = "nvim-cmp",
|
||||
config = function()
|
||||
require("plugins.config.autopairs")
|
||||
require('plugins.config.autopairs')
|
||||
end,
|
||||
},
|
||||
{ "goolord/alpha-nvim",
|
||||
config = function()
|
||||
require("plugins.config.alpha")
|
||||
require('plugins.config.alpha')
|
||||
end,
|
||||
},
|
||||
{ "numToStr/Comment.nvim",
|
||||
after = "which-key.nvim",
|
||||
config = function()
|
||||
require("plugins.config.comment")
|
||||
require('plugins.config.comment')
|
||||
end,
|
||||
setup = function()
|
||||
require('funcs').on_file_open("Comment.nvim")
|
||||
|
@ -213,7 +210,7 @@ local plugins = {
|
|||
cmd = { "NvimTreeToggle", "NvimTreeFocus" },
|
||||
after = "which-key.nvim",
|
||||
config = function()
|
||||
require("plugins.config.nvim-tree")
|
||||
require('plugins.config.nvim-tree')
|
||||
end,
|
||||
setup = function()
|
||||
require('funcs').map("nvimtree")
|
||||
|
@ -223,17 +220,17 @@ local plugins = {
|
|||
cmd = "Telescope",
|
||||
after = "which-key.nvim",
|
||||
config = function()
|
||||
require("plugins.config.telescope")
|
||||
require('plugins.config.telescope')
|
||||
end,
|
||||
setup = function()
|
||||
require('funcs').map("telescope")
|
||||
end,
|
||||
setup = function()
|
||||
require('funcs').map("telescope")
|
||||
end,
|
||||
},
|
||||
{ "ahmedkhalf/project.nvim",
|
||||
cmd = "Telescope",
|
||||
after = "telescope.nvim",
|
||||
config = function()
|
||||
require("plugins.config.project")
|
||||
require('plugins.config.project')
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
@ -242,7 +239,7 @@ local status_ok, packer = pcall(require, "packer")
|
|||
if not status_ok then
|
||||
return
|
||||
end
|
||||
vim.cmd("packadd packer.nvim")
|
||||
vim.cmd "packadd packer.nvim"
|
||||
packer.init {
|
||||
auto_clean = true,
|
||||
compile_on_sync = true,
|
||||
|
@ -254,11 +251,8 @@ packer.init {
|
|||
removed_sym = icons.ui.MinusCircle,
|
||||
moved_sym = icons.ui.Forward,
|
||||
open_fn = function()
|
||||
return require("packer.util").float { border = "single" }
|
||||
return require('packer.util').float { border = "single" }
|
||||
end
|
||||
}
|
||||
}
|
||||
packer.startup { plugins }
|
||||
if packer_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
|
|
|
@ -206,7 +206,8 @@ _G.packer_plugins = {
|
|||
["mason.nvim"] = {
|
||||
config = { "\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugins.config.mason\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/luca/.local/share/nvim/site/pack/packer/start/mason.nvim",
|
||||
needs_bufread = false,
|
||||
path = "/home/luca/.local/share/nvim/site/pack/packer/opt/mason.nvim",
|
||||
url = "https://github.com/williamboman/mason.nvim"
|
||||
},
|
||||
["null-ls.nvim"] = {
|
||||
|
@ -379,7 +380,7 @@ _G.packer_plugins = {
|
|||
url = "https://github.com/tpope/vim-surround"
|
||||
},
|
||||
["which-key.nvim"] = {
|
||||
after = { "telescope.nvim", "indent-blankline.nvim", "vim-illuminate", "nvim-tree.lua", "todo-comments.nvim", "bufferline.nvim", "Comment.nvim" },
|
||||
after = { "bufferline.nvim", "Comment.nvim", "telescope.nvim", "todo-comments.nvim", "indent-blankline.nvim", "vim-illuminate", "nvim-tree.lua" },
|
||||
config = { "\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.whichkey\frequire\0" },
|
||||
loaded = true,
|
||||
only_config = true,
|
||||
|
@ -418,46 +419,10 @@ if not vim.g.packer_custom_loader_enabled then
|
|||
vim.g.packer_custom_loader_enabled = true
|
||||
end
|
||||
|
||||
-- Setup for: lualine.nvim
|
||||
time([[Setup for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nK\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\17lualine.nvim\17on_file_open\nfuncs\frequire\0", "setup", "lualine.nvim")
|
||||
time([[Setup for lualine.nvim]], false)
|
||||
time([[packadd for lualine.nvim]], true)
|
||||
vim.cmd [[packadd lualine.nvim]]
|
||||
time([[packadd for lualine.nvim]], false)
|
||||
-- Setup for: telescope.nvim
|
||||
time([[Setup for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\14telescope\bmap\nfuncs\frequire\0", "setup", "telescope.nvim")
|
||||
time([[Setup for telescope.nvim]], false)
|
||||
-- Setup for: indent-blankline.nvim
|
||||
time([[Setup for indent-blankline.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nz\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\14blankline\bmap\26indent-blankline.nvim\17on_file_open\nfuncs\frequire\0", "setup", "indent-blankline.nvim")
|
||||
time([[Setup for indent-blankline.nvim]], false)
|
||||
-- Setup for: vim-surround
|
||||
time([[Setup for vim-surround]], true)
|
||||
try_loadstring("\27LJ\2\nK\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\17vim-surround\17on_file_open\nfuncs\frequire\0", "setup", "vim-surround")
|
||||
time([[Setup for vim-surround]], false)
|
||||
time([[packadd for vim-surround]], true)
|
||||
vim.cmd [[packadd vim-surround]]
|
||||
time([[packadd for vim-surround]], false)
|
||||
-- Setup for: vim-repeat
|
||||
time([[Setup for vim-repeat]], true)
|
||||
try_loadstring("\27LJ\2\nI\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\15vim-repeat\17on_file_open\nfuncs\frequire\0", "setup", "vim-repeat")
|
||||
time([[Setup for vim-repeat]], false)
|
||||
time([[packadd for vim-repeat]], true)
|
||||
vim.cmd [[packadd vim-repeat]]
|
||||
time([[packadd for vim-repeat]], false)
|
||||
-- Setup for: vim-illuminate
|
||||
time([[Setup for vim-illuminate]], true)
|
||||
try_loadstring("\27LJ\2\nt\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\15illuminate\bmap\19vim-illuminate\17on_file_open\nfuncs\frequire\0", "setup", "vim-illuminate")
|
||||
time([[Setup for vim-illuminate]], false)
|
||||
-- Setup for: nvim-lspconfig
|
||||
time([[Setup for nvim-lspconfig]], true)
|
||||
try_loadstring("\27LJ\2\nM\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\19nvim-lspconfig\17on_file_open\nfuncs\frequire\0", "setup", "nvim-lspconfig")
|
||||
time([[Setup for nvim-lspconfig]], false)
|
||||
time([[packadd for nvim-lspconfig]], true)
|
||||
vim.cmd [[packadd nvim-lspconfig]]
|
||||
time([[packadd for nvim-lspconfig]], false)
|
||||
-- Setup for: nvim-treesitter
|
||||
time([[Setup for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\nN\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\20nvim-treesitter\17on_file_open\nfuncs\frequire\0", "setup", "nvim-treesitter")
|
||||
time([[Setup for nvim-treesitter]], false)
|
||||
-- Setup for: vim-sanegx
|
||||
time([[Setup for vim-sanegx]], true)
|
||||
try_loadstring("\27LJ\2\nI\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\15vim-sanegx\17on_file_open\nfuncs\frequire\0", "setup", "vim-sanegx")
|
||||
|
@ -465,22 +430,10 @@ time([[Setup for vim-sanegx]], false)
|
|||
time([[packadd for vim-sanegx]], true)
|
||||
vim.cmd [[packadd vim-sanegx]]
|
||||
time([[packadd for vim-sanegx]], false)
|
||||
-- Setup for: Comment.nvim
|
||||
time([[Setup for Comment.nvim]], true)
|
||||
try_loadstring("\27LJ\2\no\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\fcomment\bmap\17Comment.nvim\17on_file_open\nfuncs\frequire\0", "setup", "Comment.nvim")
|
||||
time([[Setup for Comment.nvim]], false)
|
||||
-- Setup for: nvim-dap-ui
|
||||
time([[Setup for nvim-dap-ui]], true)
|
||||
try_loadstring("\27LJ\2\nJ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\16nvim-dap-ui\17on_file_open\nfuncs\frequire\0", "setup", "nvim-dap-ui")
|
||||
time([[Setup for nvim-dap-ui]], false)
|
||||
-- Setup for: todo-comments.nvim
|
||||
time([[Setup for todo-comments.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nQ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\23todo-comments.nvim\17on_file_open\nfuncs\frequire\0", "setup", "todo-comments.nvim")
|
||||
time([[Setup for todo-comments.nvim]], false)
|
||||
-- Setup for: nvim-colorizer.lua
|
||||
time([[Setup for nvim-colorizer.lua]], true)
|
||||
try_loadstring("\27LJ\2\nQ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\23nvim-colorizer.lua\17on_file_open\nfuncs\frequire\0", "setup", "nvim-colorizer.lua")
|
||||
time([[Setup for nvim-colorizer.lua]], false)
|
||||
-- Setup for: telescope.nvim
|
||||
time([[Setup for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\14telescope\bmap\nfuncs\frequire\0", "setup", "telescope.nvim")
|
||||
time([[Setup for telescope.nvim]], false)
|
||||
-- Setup for: gitsigns.nvim
|
||||
time([[Setup 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\rgitsigns\nfuncs\frequire\0", "setup", "gitsigns.nvim")
|
||||
|
@ -493,42 +446,81 @@ time([[Setup for bufferline.nvim]], false)
|
|||
time([[Setup for nvim-tree.lua]], true)
|
||||
try_loadstring("\27LJ\2\n>\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\rnvimtree\bmap\nfuncs\frequire\0", "setup", "nvim-tree.lua")
|
||||
time([[Setup for nvim-tree.lua]], false)
|
||||
-- Setup for: nvim-treesitter
|
||||
time([[Setup for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\nN\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\20nvim-treesitter\17on_file_open\nfuncs\frequire\0", "setup", "nvim-treesitter")
|
||||
time([[Setup for nvim-treesitter]], false)
|
||||
-- Setup for: lualine.nvim
|
||||
time([[Setup for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nK\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\17lualine.nvim\17on_file_open\nfuncs\frequire\0", "setup", "lualine.nvim")
|
||||
time([[Setup for lualine.nvim]], false)
|
||||
time([[packadd for lualine.nvim]], true)
|
||||
vim.cmd [[packadd lualine.nvim]]
|
||||
time([[packadd for lualine.nvim]], false)
|
||||
-- Setup for: nvim-lspconfig
|
||||
time([[Setup for nvim-lspconfig]], true)
|
||||
try_loadstring("\27LJ\2\ns\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\14lspconfig\bmap\19nvim-lspconfig\17on_file_open\nfuncs\frequire\0", "setup", "nvim-lspconfig")
|
||||
time([[Setup for nvim-lspconfig]], false)
|
||||
time([[packadd for nvim-lspconfig]], true)
|
||||
vim.cmd [[packadd nvim-lspconfig]]
|
||||
time([[packadd for nvim-lspconfig]], false)
|
||||
-- Setup for: nvim-dap
|
||||
time([[Setup for nvim-dap]], true)
|
||||
try_loadstring("\27LJ\2\nG\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\rnvim-dap\17on_file_open\nfuncs\frequire\0", "setup", "nvim-dap")
|
||||
try_loadstring("\27LJ\2\ng\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\bdap\bmap\rnvim-dap\17on_file_open\nfuncs\frequire\0", "setup", "nvim-dap")
|
||||
time([[Setup for nvim-dap]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27plugins.config.lualine\frequire\0", "config", "lualine.nvim")
|
||||
time([[Config for lualine.nvim]], false)
|
||||
-- Config for: toggleterm.nvim
|
||||
time([[Config for toggleterm.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.toggleterm\frequire\0", "config", "toggleterm.nvim")
|
||||
time([[Config for toggleterm.nvim]], false)
|
||||
-- Setup for: indent-blankline.nvim
|
||||
time([[Setup for indent-blankline.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nz\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\14blankline\bmap\26indent-blankline.nvim\17on_file_open\nfuncs\frequire\0", "setup", "indent-blankline.nvim")
|
||||
time([[Setup for indent-blankline.nvim]], false)
|
||||
-- Setup for: Comment.nvim
|
||||
time([[Setup for Comment.nvim]], true)
|
||||
try_loadstring("\27LJ\2\no\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\fcomment\bmap\17Comment.nvim\17on_file_open\nfuncs\frequire\0", "setup", "Comment.nvim")
|
||||
time([[Setup for Comment.nvim]], false)
|
||||
-- Setup for: nvim-dap-ui
|
||||
time([[Setup for nvim-dap-ui]], true)
|
||||
try_loadstring("\27LJ\2\nJ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\16nvim-dap-ui\17on_file_open\nfuncs\frequire\0", "setup", "nvim-dap-ui")
|
||||
time([[Setup for nvim-dap-ui]], false)
|
||||
-- Setup for: nvim-colorizer.lua
|
||||
time([[Setup for nvim-colorizer.lua]], true)
|
||||
try_loadstring("\27LJ\2\nQ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\23nvim-colorizer.lua\17on_file_open\nfuncs\frequire\0", "setup", "nvim-colorizer.lua")
|
||||
time([[Setup for nvim-colorizer.lua]], false)
|
||||
-- Setup for: vim-surround
|
||||
time([[Setup for vim-surround]], true)
|
||||
try_loadstring("\27LJ\2\nK\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\17vim-surround\17on_file_open\nfuncs\frequire\0", "setup", "vim-surround")
|
||||
time([[Setup for vim-surround]], false)
|
||||
time([[packadd for vim-surround]], true)
|
||||
vim.cmd [[packadd vim-surround]]
|
||||
time([[packadd for vim-surround]], false)
|
||||
-- Setup for: todo-comments.nvim
|
||||
time([[Setup for todo-comments.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nQ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\23todo-comments.nvim\17on_file_open\nfuncs\frequire\0", "setup", "todo-comments.nvim")
|
||||
time([[Setup for todo-comments.nvim]], false)
|
||||
-- Setup for: vim-repeat
|
||||
time([[Setup for vim-repeat]], true)
|
||||
try_loadstring("\27LJ\2\nI\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\15vim-repeat\17on_file_open\nfuncs\frequire\0", "setup", "vim-repeat")
|
||||
time([[Setup for vim-repeat]], false)
|
||||
time([[packadd for vim-repeat]], true)
|
||||
vim.cmd [[packadd vim-repeat]]
|
||||
time([[packadd for vim-repeat]], false)
|
||||
-- Setup for: vim-illuminate
|
||||
time([[Setup for vim-illuminate]], true)
|
||||
try_loadstring("\27LJ\2\nt\0\0\3\0\6\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\1\0B\0\2\0029\0\4\0'\2\5\0B\0\2\1K\0\1\0\15illuminate\bmap\19vim-illuminate\17on_file_open\nfuncs\frequire\0", "setup", "vim-illuminate")
|
||||
time([[Setup for vim-illuminate]], false)
|
||||
-- Setup for: mason.nvim
|
||||
time([[Setup for mason.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n;\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\nmason\bmap\nfuncs\frequire\0", "setup", "mason.nvim")
|
||||
time([[Setup for mason.nvim]], false)
|
||||
time([[packadd for mason.nvim]], true)
|
||||
vim.cmd [[packadd mason.nvim]]
|
||||
time([[packadd for mason.nvim]], false)
|
||||
-- Config for: mason.nvim
|
||||
time([[Config for mason.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugins.config.mason\frequire\0", "config", "mason.nvim")
|
||||
time([[Config for mason.nvim]], false)
|
||||
-- Config for: tokyonight.nvim
|
||||
time([[Config for tokyonight.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.tokyonight\frequire\0", "config", "tokyonight.nvim")
|
||||
time([[Config for tokyonight.nvim]], false)
|
||||
-- Config for: null-ls.nvim
|
||||
time([[Config for null-ls.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27plugins.config.null-ls\frequire\0", "config", "null-ls.nvim")
|
||||
time([[Config for null-ls.nvim]], false)
|
||||
-- Config for: alpha-nvim
|
||||
time([[Config for alpha-nvim]], true)
|
||||
try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugins.config.alpha\frequire\0", "config", "alpha-nvim")
|
||||
time([[Config for alpha-nvim]], false)
|
||||
-- Config for: which-key.nvim
|
||||
time([[Config for which-key.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.whichkey\frequire\0", "config", "which-key.nvim")
|
||||
time([[Config for which-key.nvim]], false)
|
||||
-- Config for: toggleterm.nvim
|
||||
time([[Config for toggleterm.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.toggleterm\frequire\0", "config", "toggleterm.nvim")
|
||||
time([[Config for toggleterm.nvim]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27plugins.config.lualine\frequire\0", "config", "lualine.nvim")
|
||||
time([[Config for lualine.nvim]], false)
|
||||
-- Config for: nvim-lspconfig
|
||||
time([[Config for nvim-lspconfig]], true)
|
||||
try_loadstring("\27LJ\2\n8\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\29plugins.config.lspconfig\frequire\0", "config", "nvim-lspconfig")
|
||||
|
@ -537,6 +529,22 @@ time([[Config for nvim-lspconfig]], false)
|
|||
time([[Config for mason-lspconfig.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n>\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0#plugins.config.mason-lspconfig\frequire\0", "config", "mason-lspconfig.nvim")
|
||||
time([[Config for mason-lspconfig.nvim]], false)
|
||||
-- Config for: which-key.nvim
|
||||
time([[Config for which-key.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.whichkey\frequire\0", "config", "which-key.nvim")
|
||||
time([[Config for which-key.nvim]], false)
|
||||
-- Config for: alpha-nvim
|
||||
time([[Config for alpha-nvim]], true)
|
||||
try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugins.config.alpha\frequire\0", "config", "alpha-nvim")
|
||||
time([[Config for alpha-nvim]], false)
|
||||
-- Config for: null-ls.nvim
|
||||
time([[Config for null-ls.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27plugins.config.null-ls\frequire\0", "config", "null-ls.nvim")
|
||||
time([[Config for null-ls.nvim]], false)
|
||||
-- Config for: tokyonight.nvim
|
||||
time([[Config for tokyonight.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.tokyonight\frequire\0", "config", "tokyonight.nvim")
|
||||
time([[Config for tokyonight.nvim]], false)
|
||||
-- Load plugins in order defined by `after`
|
||||
time([[Sequenced loading]], true)
|
||||
vim.cmd [[ packadd Comment.nvim ]]
|
||||
|
@ -548,6 +556,8 @@ time([[Sequenced loading]], false)
|
|||
|
||||
-- Command lazy-loads
|
||||
time([[Defining lazy-load commands]], true)
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Telescope lua require("packer.load")({'telescope.nvim', 'project.nvim'}, { cmd = "Telescope", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSInstall lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSInstall", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSBufEnable lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSBufEnable", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSBufDisable lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSBufDisable", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSEnable lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSEnable", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
|
@ -555,17 +565,15 @@ pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSDisable lua requ
|
|||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSModuleInfo lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSModuleInfo", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file NvimTreeToggle lua require("packer.load")({'nvim-tree.lua'}, { cmd = "NvimTreeToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file NvimTreeFocus lua require("packer.load")({'nvim-tree.lua'}, { cmd = "NvimTreeFocus", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Telescope lua require("packer.load")({'telescope.nvim', 'project.nvim'}, { cmd = "Telescope", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSInstall lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSInstall", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
time([[Defining lazy-load commands]], false)
|
||||
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Filetype lazy-loads
|
||||
time([[Defining lazy-load filetype autocommands]], true)
|
||||
vim.cmd [[au FileType gitcommit ++once lua require("packer.load")({'gitsigns.nvim'}, { ft = "gitcommit" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au FileType kitty ++once lua require("packer.load")({'vim-kitty'}, { ft = "kitty" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au FileType alpha ++once lua require("packer.load")({'nvim-tree.lua'}, { ft = "alpha" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au FileType gitcommit ++once lua require("packer.load")({'gitsigns.nvim'}, { ft = "gitcommit" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load filetype autocommands]], false)
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
cmap ;h /home/luca
|
||||
cmap ;ch /home/luca/.cache
|
||||
cmap ;cf /home/luca/.config
|
||||
cmap ;dt /home/luca/.local/share
|
||||
cmap ;rr /home/luca/.local/src
|
||||
cmap ;sc /home/luca/.local/bin
|
||||
cmap ;mn /mnt
|
||||
cmap ;dl /home/luca/Downloads
|
||||
cmap ;dm /home/luca/Documents
|
||||
cmap ;ms /home/luca/Music
|
||||
cmap ;pc /home/luca/Pictures
|
||||
cmap ;vd /home/luca/Videos
|
||||
cmap ;dot /home/luca/.local/share/dotfiles
|
||||
cmap ;bf /home/luca/.config/shell/bm-files
|
||||
cmap ;bd /home/luca/.config/shell/bm-dirs
|
||||
cmap ;cfx /home/luca/.config/x11/xresources
|
||||
cmap ;cfX /home/luca/.config/x11/xprofile
|
||||
cmap ;cfb /home/luca/.local/src/dwmblocks/config.h
|
||||
cmap ;cfk /home/luca/.config/kitty/kitty.conf
|
||||
cmap ;cfK /home/luca/.config/kitty/kittyfullscreen.conf
|
||||
cmap ;cfv /home/luca/.config/lvim/config.lua
|
||||
cmap ;cfz /home/luca/.config/zsh/.zshrc
|
||||
cmap ;cfa /home/luca/.config/shell/aliasrc
|
||||
cmap ;cfp /home/luca/.config/shell/profile
|
||||
cmap ;cfl /home/luca/.config/lf/lfrc
|
||||
cmap ;cfL /home/luca/.config/lf/preview
|
Loading…
Add table
Reference in a new issue