mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 11:46:25 +00:00
Compare commits
3 Commits
183d7b6a57
...
f5a7947005
Author | SHA1 | Date | |
---|---|---|---|
|
f5a7947005 | ||
|
eb17f0ab25 | ||
|
04eac8f2b6 |
@@ -16,7 +16,8 @@ font:
|
|||||||
family: Hack Nerd Font
|
family: Hack Nerd Font
|
||||||
style: Bold Italic
|
style: Bold Italic
|
||||||
|
|
||||||
size: 11
|
size: 15
|
||||||
|
ligatures: true
|
||||||
|
|
||||||
# Gruvbox
|
# Gruvbox
|
||||||
colors:
|
colors:
|
||||||
@@ -47,5 +48,11 @@ colors:
|
|||||||
white: '#ebdbb2'
|
white: '#ebdbb2'
|
||||||
|
|
||||||
window:
|
window:
|
||||||
opacity: 0.75
|
opacity: 0.95
|
||||||
|
decorations: none
|
||||||
|
|
||||||
|
key_bindings:
|
||||||
|
- { key: Right, mods: Alt, chars: "\x1BF" }
|
||||||
|
- { key: Left, mods: Alt, chars: "\x1BB" }
|
||||||
|
|
||||||
|
alt_send_esc: true
|
||||||
|
22
.config/efm-langserver/config.yaml
Normal file
22
.config/efm-langserver/config.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
version: 2
|
||||||
|
|
||||||
|
tools:
|
||||||
|
mix_credo: &mix_credo
|
||||||
|
lint-command: "MIX_ENV=test mix credo suggest --format=flycheck --read-from-stdin ${INPUT}"
|
||||||
|
lint-stdin: true
|
||||||
|
lint-formats:
|
||||||
|
- '%f:%l:%c: %t: %m'
|
||||||
|
- '%f:%l: %t: %m'
|
||||||
|
lint-ignore-exit-code: true
|
||||||
|
lint-category-map:
|
||||||
|
R: N
|
||||||
|
D: I
|
||||||
|
F: E
|
||||||
|
W: W
|
||||||
|
root-markers:
|
||||||
|
- mix.lock
|
||||||
|
- mix.exs
|
||||||
|
|
||||||
|
languages:
|
||||||
|
elixir:
|
||||||
|
- <<: *mix_credo
|
@@ -1,98 +0,0 @@
|
|||||||
local cmp = require'cmp'
|
|
||||||
local lspkind = require('lspkind')
|
|
||||||
local luasnip = require 'luasnip'
|
|
||||||
|
|
||||||
local source_mapping = {
|
|
||||||
buffer = "[Buffer]",
|
|
||||||
nvim_lsp = "[LSP]",
|
|
||||||
nvim_lua = "[Lua]",
|
|
||||||
cmp_tabnine = "[TN]",
|
|
||||||
path = "[Path]",
|
|
||||||
}
|
|
||||||
cmp.setup({
|
|
||||||
-- snippet = {
|
|
||||||
-- -- REQUIRED - you must specify a snippet engine
|
|
||||||
-- expand = function(args)
|
|
||||||
-- vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
|
|
||||||
-- -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
|
|
||||||
-- -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
|
|
||||||
-- -- require'snippy'.expand_snippet(args.body) -- For `snippy` users.
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
--mapping = {
|
|
||||||
--['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
|
|
||||||
--['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }),
|
|
||||||
--['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
|
|
||||||
--['<CR>'] = cmp.mapping.confirm({ select = true }),
|
|
||||||
--},
|
|
||||||
snippet = {
|
|
||||||
expand = function(args)
|
|
||||||
require'luasnip'.lsp_expand(args.body)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
mapping = {
|
|
||||||
['<C-p>'] = cmp.mapping(cmp.mapping.select_prev_item(), { 'i', 'c' }),
|
|
||||||
['<C-n>'] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 'c' }),
|
|
||||||
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
|
||||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
|
||||||
['<C-e>'] = cmp.mapping.close(),
|
|
||||||
['<CR>'] = cmp.mapping.confirm {
|
|
||||||
behavior = cmp.ConfirmBehavior.Replace,
|
|
||||||
select = false, -- only replace if explicitly selected
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = 'cmp_tabnine' },
|
|
||||||
{ name = 'nvim_lsp' },
|
|
||||||
}),
|
|
||||||
formatting = {
|
|
||||||
format = function(entry, vim_item)
|
|
||||||
vim_item.kind = lspkind.presets.default[vim_item.kind]
|
|
||||||
local menu = source_mapping[entry.source.name]
|
|
||||||
if entry.source.name == 'cmp_tabnine' then
|
|
||||||
if entry.completion_item.data ~= nil and entry.completion_item.data.detail ~= nil then
|
|
||||||
menu = entry.completion_item.data.detail .. ' ' .. menu
|
|
||||||
end
|
|
||||||
vim_item.kind = '?'
|
|
||||||
end
|
|
||||||
vim_item.menu = menu
|
|
||||||
return vim_item
|
|
||||||
end
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
|
|
||||||
cmp.setup.cmdline('/', {
|
|
||||||
sources = {
|
|
||||||
{ name = 'buffer' }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
|
||||||
cmp.setup.cmdline(':', {
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = 'path' }
|
|
||||||
}, {
|
|
||||||
{ name = 'cmdline' }
|
|
||||||
}),
|
|
||||||
mappings = cmp.mapping.preset.cmdline(),
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Setup tabnine
|
|
||||||
local tabnine = require('cmp_tabnine.config')
|
|
||||||
tabnine:setup({
|
|
||||||
max_lines = 1000;
|
|
||||||
max_num_results = 20;
|
|
||||||
sort = true;
|
|
||||||
run_on_every_keystroke = true;
|
|
||||||
snippet_placeholder = '..';
|
|
||||||
ignored_file_types = { -- default is not to ignore
|
|
||||||
-- uncomment to ignore in lua:
|
|
||||||
lua = true
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Setup lspconfig.
|
|
||||||
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
|
|
46
.config/nvim/after/plugin/git-worktree.lua
Normal file
46
.config/nvim/after/plugin/git-worktree.lua
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
local Worktree = require("git-worktree")
|
||||||
|
local Job = require("plenary.job")
|
||||||
|
|
||||||
|
local function schedule_notify(message)
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.notify.notify(message)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
local function is_massdriver()
|
||||||
|
return not not (string.find(vim.loop.cwd(), "massdriver.git", 1, true))
|
||||||
|
end
|
||||||
|
|
||||||
|
Worktree.on_tree_change(function(op, metadata)
|
||||||
|
local compile_job = Job:new({
|
||||||
|
command = "mix",
|
||||||
|
args = { "compile" },
|
||||||
|
on_start = function()
|
||||||
|
schedule_notify("Compiling...")
|
||||||
|
end,
|
||||||
|
on_exit = function(_j, _return_val)
|
||||||
|
schedule_notify("Compiling done")
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
local deps_job = Job:new({
|
||||||
|
command = "mix",
|
||||||
|
args = { "deps.get" },
|
||||||
|
on_start = function()
|
||||||
|
schedule_notify("Fetching dependencies...")
|
||||||
|
end,
|
||||||
|
on_exit = function(_j, _return_val)
|
||||||
|
schedule_notify("Fetched dependencies")
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
if op == Worktree.Operations.Create and is_massdriver() then
|
||||||
|
deps_job:and_then(compile_job)
|
||||||
|
deps_job:sync()
|
||||||
|
compile_job:wait()
|
||||||
|
end
|
||||||
|
|
||||||
|
if op == Worktree.Operations.Switch and is_massdriver() then
|
||||||
|
compile_job:start()
|
||||||
|
end
|
||||||
|
end)
|
@@ -47,6 +47,10 @@ vnoremap('>', '>gv')
|
|||||||
nnoremap('<TAB>', ':bnext<CR>')
|
nnoremap('<TAB>', ':bnext<CR>')
|
||||||
nnoremap('<S-TAB>', ':bprevious<CR>')
|
nnoremap('<S-TAB>', ':bprevious<CR>')
|
||||||
|
|
||||||
|
-- Quickfix list
|
||||||
|
nnoremap('[q', ':cprev<CR>')
|
||||||
|
nnoremap(']q', ':cnext<CR>')
|
||||||
|
|
||||||
-- Move selected line / block of text in visual mode
|
-- Move selected line / block of text in visual mode
|
||||||
xnoremap('J', ':move \'>+1<CR>gv-gv')
|
xnoremap('J', ':move \'>+1<CR>gv-gv')
|
||||||
xnoremap('K', ':move \'<-2<CR>gv-gv')
|
xnoremap('K', ':move \'<-2<CR>gv-gv')
|
||||||
@@ -63,16 +67,23 @@ nnoremap('<leader>ta', ':TestSuite<CR>')
|
|||||||
nnoremap('<leader>tl', ':TestLast<CR>')
|
nnoremap('<leader>tl', ':TestLast<CR>')
|
||||||
nnoremap('<leader>tg', ':TestVisit<CR>')
|
nnoremap('<leader>tg', ':TestVisit<CR>')
|
||||||
|
|
||||||
|
-- Vim Projectionist
|
||||||
|
nnoremap('<leader>a', ':A<CR>')
|
||||||
|
|
||||||
-- Reload init.lua
|
-- Reload init.lua
|
||||||
nnoremap('<leader>sv', ':source $MYVIMRC<CR>')
|
nnoremap('<leader>sv', ':source $MYVIMRC<CR>')
|
||||||
|
|
||||||
vim.cmd("nnoremap <silent> <C-p> :Lspsaga diagnostic_jump_prev<CR>")
|
nnoremap('<C-p>', ':Lspsaga diagnostic_jump_prev<CR>')
|
||||||
vim.cmd("nnoremap <silent> <C-n> :Lspsaga diagnostic_jump_next<CR>")
|
nnoremap('<C-y>', ':Lspsaga diagnostic_jump_next<CR>')
|
||||||
-- -- scroll down hover doc or scroll in definition preview
|
|
||||||
vim.cmd("nnoremap <silent> <C-f> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<CR>")
|
-- Harpoon
|
||||||
-- -- scroll up hover doc
|
nnoremap("<leader>m", function() require("harpoon.mark").add_file() end)
|
||||||
vim.cmd("nnoremap <silent> <C-b> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)<CR>")
|
nnoremap("<C-e>", function() require("harpoon.ui").toggle_quick_menu() end)
|
||||||
vim.cmd('command! -nargs=0 LspVirtualTextToggle lua require("lsp/virtual_text").toggle()')
|
|
||||||
|
nnoremap("<C-h>", function() require("harpoon.ui").nav_file(1) end)
|
||||||
|
nnoremap("<C-t>", function() require("harpoon.ui").nav_file(2) end)
|
||||||
|
nnoremap("<C-n>", function() require("harpoon.ui").nav_file(3) end)
|
||||||
|
nnoremap("<C-s>", function() require("harpoon.ui").nav_file(4) end)
|
||||||
|
|
||||||
-- Yank until end of line
|
-- Yank until end of line
|
||||||
nnoremap('Y', 'yg$')
|
nnoremap('Y', 'yg$')
|
||||||
|
@@ -2,37 +2,52 @@ local Remap = require("halfdan.keymap")
|
|||||||
local nnoremap = Remap.nnoremap
|
local nnoremap = Remap.nnoremap
|
||||||
local inoremap = Remap.inoremap
|
local inoremap = Remap.inoremap
|
||||||
|
|
||||||
-- TODO figure out why this don't work
|
vim.fn.sign_define("DiagnosticSignError", {text = "", texthl = "DiagnosticSignError"})
|
||||||
vim.fn.sign_define(
|
vim.fn.sign_define("DiagnosticSignWarn", {text = "", texthl = "DiagnosticSignWarn"})
|
||||||
"LspDiagnosticsSignError",
|
vim.fn.sign_define("DiagnosticSignInfo", {text = "", texthl = "DiagnosticSignInfo"})
|
||||||
{texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError"}
|
vim.fn.sign_define("DiagnosticSignHint", {text = "", texthl = "DiagnosticSignHint"})
|
||||||
)
|
|
||||||
vim.fn.sign_define(
|
|
||||||
"LspDiagnosticsSignWarning",
|
|
||||||
{texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning"}
|
|
||||||
)
|
|
||||||
vim.fn.sign_define(
|
|
||||||
"LspDiagnosticsSignHint",
|
|
||||||
{texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint"}
|
|
||||||
)
|
|
||||||
vim.fn.sign_define(
|
|
||||||
"LspDiagnosticsSignInformation",
|
|
||||||
{texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation"}
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Set Default Prefix.
|
-- Set Default Prefix.
|
||||||
-- Note: You can set a prefix per lsp server in the lv-globals.lua file
|
-- Note: You can set a prefix per lsp server in the lv-globals.lua file
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||||
virtual_text = {
|
-- virtual_text = {
|
||||||
prefix = "",
|
-- prefix = "",
|
||||||
spacing = 1,
|
-- spacing = 1,
|
||||||
},
|
-- },
|
||||||
signs = true,
|
signs = true,
|
||||||
underline = true,
|
underline = true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
-- Setup for nvim-notify
|
||||||
|
vim.lsp.set_log_level(2)
|
||||||
|
|
||||||
|
local convert_lsp_log_level_to_neovim_log_level = function(lsp_log_level)
|
||||||
|
if lsp_log_level == 1 then
|
||||||
|
return 4
|
||||||
|
elseif lsp_log_level == 2 then
|
||||||
|
return 3
|
||||||
|
elseif lsp_log_level == 3 then
|
||||||
|
return 2
|
||||||
|
elseif lsp_log_level == 4 then
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local levels = {
|
||||||
|
"ERROR",
|
||||||
|
"WARN",
|
||||||
|
"INFO",
|
||||||
|
"DEBUG",
|
||||||
|
[0] = "TRACE",
|
||||||
|
}
|
||||||
|
vim.lsp.handlers["window/showMessage"] = function(_, result, ...)
|
||||||
|
if require("vim.lsp.log").should_log(convert_lsp_log_level_to_neovim_log_level(result.type)) then
|
||||||
|
vim.notify(result.message, levels[result.type])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- symbols for autocomplete
|
-- symbols for autocomplete
|
||||||
vim.lsp.protocol.CompletionItemKind = {
|
vim.lsp.protocol.CompletionItemKind = {
|
||||||
" (Text) ",
|
" (Text) ",
|
||||||
@@ -81,12 +96,12 @@ local function documentHighlight(client, bufnr)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- needed for the LSP to recognize elixir files (alternativly just use elixir-editors/vim-elixir)
|
-- -- needed for the LSP to recognize elixir files (alternativly just use elixir-editors/vim-elixir)
|
||||||
vim.cmd([[
|
-- vim.cmd([[
|
||||||
au BufRead,BufNewFile *.ex,*.exs set filetype=elixir
|
-- au BufRead,BufNewFile *.ex,*.exs set filetype=elixir
|
||||||
au BufRead,BufNewFile *.eex,*.leex,*.sface set filetype=eelixir
|
-- au BufRead,BufNewFile *.eex,*.leex,*.sface set filetype=eelixir
|
||||||
au BufRead,BufNewFile mix.lock set filetype=elixir
|
-- au BufRead,BufNewFile mix.lock set filetype=elixir
|
||||||
]])
|
-- ]])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -95,47 +110,65 @@ vim.api.nvim_set_keymap('n', '<leader>e', '<cmd>lua vim.diagnostic.open_float()<
|
|||||||
vim.api.nvim_set_keymap('n', '<leader>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', { noremap = true, silent = true })
|
vim.api.nvim_set_keymap('n', '<leader>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', { noremap = true, silent = true })
|
||||||
|
|
||||||
-- LSP settings
|
-- LSP settings
|
||||||
|
local lsp_status = require('lsp-status')
|
||||||
|
lsp_status.register_progress()
|
||||||
|
|
||||||
local lspconfig = require 'lspconfig'
|
local lspconfig = require 'lspconfig'
|
||||||
|
|
||||||
|
local on_attach = function(client, bufnr)
|
||||||
|
nnoremap("gd", function() vim.lsp.buf.definition() end)
|
||||||
|
nnoremap("gD", function() vim.lsp.buf.declaration() end)
|
||||||
|
nnoremap("K", function() vim.lsp.buf.hover() end)
|
||||||
|
nnoremap("gW", function() vim.lsp.buf.workspace_symbol() end)
|
||||||
|
nnoremap("<leader>vd", function() vim.diagnostic.open_float() end)
|
||||||
|
nnoremap("[d", function() vim.diagnostic.goto_next() end)
|
||||||
|
nnoremap("]d", function() vim.diagnostic.goto_prev() end)
|
||||||
|
nnoremap("<leader>ca", function() vim.lsp.buf.code_action() end)
|
||||||
|
nnoremap("gr", function() vim.lsp.buf.references() end)
|
||||||
|
nnoremap("<leader>rn", function() vim.lsp.buf.rename() end)
|
||||||
|
nnoremap("<leader>cl", function() vim.lsp.codelens.run() end)
|
||||||
|
nnoremap("<leader>ff", function() vim.lsp.buf.format{async = true} end)
|
||||||
|
inoremap("<C-h>", function() vim.lsp.buf.signature_help() end)
|
||||||
|
|
||||||
|
lsp_status.on_attach(client, bufnr)
|
||||||
|
end
|
||||||
|
|
||||||
local function config(_config)
|
local function config(_config)
|
||||||
return vim.tbl_deep_extend("force", {
|
_config = vim.tbl_deep_extend("force", {
|
||||||
capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
log_level = vim.lsp.protocol.MessageType.Log,
|
||||||
on_attach = function()
|
message_level = vim.lsp.protocol.MessageType.Log,
|
||||||
-- local opts = { noremap = true, silent = true }
|
capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||||
nnoremap("gd", function() vim.lsp.buf.definition() end)
|
on_attach = on_attach,
|
||||||
nnoremap("gD", function() vim.lsp.buf.declaration() end)
|
}, _config or {})
|
||||||
nnoremap("K", function() vim.lsp.buf.hover() end)
|
|
||||||
nnoremap("gW", function() vim.lsp.buf.workspace_symbol() end)
|
-- Set default client capabilities plus window/workDoneProgress
|
||||||
nnoremap("<leader>vd", function() vim.diagnostic.open_float() end)
|
_config.capabilities = vim.tbl_extend('keep', _config.capabilities or {}, lsp_status.capabilities)
|
||||||
nnoremap("[d", function() vim.diagnostic.goto_next() end)
|
|
||||||
nnoremap("]d", function() vim.diagnostic.goto_prev() end)
|
return _config
|
||||||
nnoremap("<leader>ca", function() vim.lsp.buf.code_action() end)
|
|
||||||
nnoremap("<leader>rr", function() vim.lsp.buf.references() end)
|
|
||||||
nnoremap("<leader>rn", function() vim.lsp.buf.rename() end)
|
|
||||||
nnoremap("<leader>cl", function() vim.lsp.codelens.run() end)
|
|
||||||
nnoremap("<leader>ff", function() vim.lsp.buf.format{async = true} end)
|
|
||||||
inoremap("<C-h>", function() vim.lsp.buf.signature_help() end)
|
|
||||||
--vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
|
||||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
|
||||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
|
||||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
|
||||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
|
||||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
|
||||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
|
||||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>so', [[<cmd>lua require('telescope.builtin').lsp_document_symbols()<CR>]], opts)
|
|
||||||
-- vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]]
|
|
||||||
end,
|
|
||||||
}, _config or {})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local elixir = require('elixir')
|
local elixir = require('elixir')
|
||||||
elixir.setup(config({
|
elixir.setup(config({
|
||||||
cmd = {"/Users/fbecker18/opt/elixir-ls/bin/language_server.sh"},
|
-- repo = "mhanberg/elixir-ls", -- defaults to elixir-lsp/elixir-ls
|
||||||
|
-- branch = "mh/all-workspace-symbols", -- defaults to nil, just checkouts out the default branch, mutually exclusive with the `tag` option
|
||||||
|
cmd = {"/usr/local/opt/elixir-ls/rel/language_server.sh"},
|
||||||
settings = elixir.settings({
|
settings = elixir.settings({
|
||||||
dialyzerEnabled = true,
|
dialyzerEnabled = true,
|
||||||
fetchDeps = false,
|
fetchDeps = false,
|
||||||
enableTestLenses = true,
|
enableTestLenses = true,
|
||||||
suggestSpecs = false,
|
suggestSpecs = false,
|
||||||
}),
|
}),
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
on_attach(client, bufnr)
|
||||||
|
|
||||||
|
local map_opts = { buffer = true, noremap = true}
|
||||||
|
|
||||||
|
-- remove the pipe operator
|
||||||
|
vim.keymap.set("n", "<leader>fp", ":ElixirFromPipe<cr>", map_opts)
|
||||||
|
-- add the pipe operator
|
||||||
|
vim.keymap.set("n", "<leader>tp", ":ElixirToPipe<cr>", map_opts)
|
||||||
|
vim.keymap.set("v", "<leader>em", ":ElixirExpandMacro<cr>", map_opts)
|
||||||
|
end
|
||||||
}))
|
}))
|
||||||
|
|
||||||
-- Enable the following language servers
|
-- Enable the following language servers
|
||||||
@@ -144,6 +177,22 @@ for _, lsp in ipairs(servers) do
|
|||||||
lspconfig[lsp].setup(config())
|
lspconfig[lsp].setup(config())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
lspconfig.sumneko_lua.setup(config({
|
||||||
|
settings = {
|
||||||
|
Lua = {
|
||||||
|
diagnostics = {
|
||||||
|
globals = { 'vim' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
|
||||||
|
-- Generic language server. Used to run credo
|
||||||
|
lspconfig.efm.setup(config({
|
||||||
|
on_attach = on_attach,
|
||||||
|
filetypes = {"elixir"}
|
||||||
|
}))
|
||||||
|
|
||||||
require('rust-tools').setup({
|
require('rust-tools').setup({
|
||||||
tools = {
|
tools = {
|
||||||
inlay_hints = {
|
inlay_hints = {
|
||||||
@@ -153,12 +202,3 @@ require('rust-tools').setup({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- vim.cmd([[
|
|
||||||
-- augroup
|
|
||||||
-- autocmd!
|
|
||||||
-- autocmd BufWritePre *.go lua vim.lsp.buf.formatting_sync(nil, 100)
|
|
||||||
-- autocmd BufWritePre *.rs lua vim.lsp.buf.formatting_sync(nil, 100)
|
|
||||||
-- autocmd BufWritePre *.ex,*.exs lua vim.lsp.buf.formatting_sync(nil, 100)
|
|
||||||
-- autocmd BufWritePre *.py lua vim.lsp.buf.formatting_sync(nil, 100)
|
|
||||||
-- augroup END
|
|
||||||
-- ]])
|
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
local saga = require 'lspsaga'
|
local saga = require 'lspsaga'
|
||||||
saga.init_lsp_saga({
|
saga.init_lsp_saga({
|
||||||
-- symbols in winbar
|
-- symbols in winbar
|
||||||
symbol_in_winbar = {
|
-- symbol_in_winbar = {
|
||||||
enable = true,
|
-- enable = true,
|
||||||
click_support = true,
|
-- click_support = true,
|
||||||
show_file = true,
|
-- show_file = true,
|
||||||
in_custom = true,
|
-- in_custom = true,
|
||||||
},
|
-- },
|
||||||
})
|
})
|
||||||
|
|
||||||
local function get_file_name(include_path)
|
local function get_file_name(include_path)
|
||||||
@@ -45,14 +45,14 @@ local function config_winbar()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local events = { 'BufEnter', 'BufWinEnter', 'CursorMoved' }
|
-- local events = { 'BufEnter', 'BufWinEnter', 'CursorMoved' }
|
||||||
|
--
|
||||||
vim.api.nvim_create_autocmd(events, {
|
-- vim.api.nvim_create_autocmd(events, {
|
||||||
pattern = '*',
|
-- pattern = '*',
|
||||||
callback = function() config_winbar() end,
|
-- callback = function() config_winbar() end,
|
||||||
})
|
-- })
|
||||||
|
--
|
||||||
vim.api.nvim_create_autocmd('User', {
|
-- vim.api.nvim_create_autocmd('User', {
|
||||||
pattern = 'LspsagaUpdateSymbol',
|
-- pattern = 'LspsagaUpdateSymbol',
|
||||||
callback = function() config_winbar() end,
|
-- callback = function() config_winbar() end,
|
||||||
})
|
-- })
|
||||||
|
@@ -1,5 +1,22 @@
|
|||||||
require("neotest").setup({
|
local nnoremap = require('halfdan.keymap').nnoremap
|
||||||
|
local neotest = require('neotest')
|
||||||
|
|
||||||
|
neotest.setup({
|
||||||
adapters = {
|
adapters = {
|
||||||
require("neotest-vim-test")({ allow_file_types = { "haskell", "elixir" } }),
|
require("neotest-elixir"),
|
||||||
|
-- require("neotest-vim-test")({ allow_file_types = { "haskell"} }),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
nnoremap("<leader>nt", function ()
|
||||||
|
neotest.run.run()
|
||||||
|
end)
|
||||||
|
|
||||||
|
nnoremap("<leader>nf", function ()
|
||||||
|
neotest.run.run(vim.fn.expand("%"))
|
||||||
|
end)
|
||||||
|
|
||||||
|
nnoremap("<leader>nd", function ()
|
||||||
|
neotest.run.run({strategy = "dap"})
|
||||||
|
end)
|
||||||
|
|
||||||
|
5
.config/nvim/after/plugin/notify.lua
Normal file
5
.config/nvim/after/plugin/notify.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
require('notify').setup({
|
||||||
|
background_colour = "#000000",
|
||||||
|
max_width = 120,
|
||||||
|
max_height = 10,
|
||||||
|
})
|
@@ -2,8 +2,8 @@ local Remap = require("halfdan.keymap")
|
|||||||
local nnoremap = Remap.nnoremap
|
local nnoremap = Remap.nnoremap
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
|
|
||||||
nnoremap("<leader>ps", function()
|
nnoremap("<leader>pg", function()
|
||||||
builtin.grep_string({ search = vim.fn.input("Grep For > ")})
|
builtin.live_grep()
|
||||||
end)
|
end)
|
||||||
nnoremap("<C-p>", function()
|
nnoremap("<C-p>", function()
|
||||||
if not pcall(builtin.git_files) then
|
if not pcall(builtin.git_files) then
|
||||||
@@ -14,22 +14,25 @@ nnoremap("<Leader>pf", function()
|
|||||||
builtin.find_files()
|
builtin.find_files()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
nnoremap("<Leader>ps", function()
|
||||||
|
builtin.lsp_workspace_symbols()
|
||||||
|
end)
|
||||||
nnoremap("<leader>pw", function()
|
nnoremap("<leader>pw", function()
|
||||||
builtin.grep_string { search = vim.fn.expand("<cword>") }
|
builtin.grep_string { search = vim.fn.expand("<cword>") }
|
||||||
end)
|
end)
|
||||||
nnoremap("<leader>pb", function()
|
nnoremap("<leader>pb", function()
|
||||||
builtin.buffers()
|
builtin.buffers()
|
||||||
end)
|
end)
|
||||||
nnoremap("<leader>vh", function()
|
nnoremap("<leader>vh", function()
|
||||||
builtin.help_tags()
|
builtin.help_tags()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Telescope
|
nnoremap("<leader>wc", function()
|
||||||
-- nnoremap('<leader>fs', ':lua require(\'telescope.builtin\').grep_string({ search = vim.fn.input("Grep For > ")})<CR>')
|
require('telescope').extensions.git_worktree.create_git_worktree()
|
||||||
-- nnoremap('<Leader>ff', ':lua require(\'telescope.builtin\').find_files()<CR>')
|
end)
|
||||||
|
nnoremap("<leader>ws", function()
|
||||||
-- nnoremap('<leader>fw', ':lua require(\'telescope.builtin\').grep_string { search = vim.fn.expand("<cword>") }<CR>')
|
require('telescope').extensions.git_worktree.git_worktrees()
|
||||||
-- nnoremap('<leader>fb', ':lua require(\'telescope.builtin\').buffers()<CR>')
|
end)
|
||||||
-- nnoremap('<leader>vh', ':lua require(\'telescope.builtin\').help_tags()<CR>')
|
nnoremap("<leader>gc", function()
|
||||||
-- nnoremap('<leader>gwl', ':lua require(\'telescope\').extensions.git_worktree.git_worktrees()<CR>')
|
builtin.git_branches()
|
||||||
-- nnoremap('<leader>gwc', ':lua require(\'telescope\').extensions.git_worktree.create_git_worktree()<CR>')
|
end)
|
||||||
|
121
.config/nvim/lua/halfdan/cmp.lua
Normal file
121
.config/nvim/lua/halfdan/cmp.lua
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
local cmp = require'cmp'
|
||||||
|
local lspkind = require('lspkind')
|
||||||
|
|
||||||
|
local source_mapping = {
|
||||||
|
buffer = "[Buffer]",
|
||||||
|
nvim_lsp = "[LSP]",
|
||||||
|
nvim_lua = "[Lua]",
|
||||||
|
cmp_tabnine = "[TN]",
|
||||||
|
path = "[Path]",
|
||||||
|
orgmode = "[Org]",
|
||||||
|
luasnip = "[Snippet]",
|
||||||
|
}
|
||||||
|
|
||||||
|
local has_words_before = function()
|
||||||
|
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||||
|
return col ~= 0 and
|
||||||
|
vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(
|
||||||
|
col, col):match("%s") == nil
|
||||||
|
end
|
||||||
|
|
||||||
|
cmp.setup({
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
require'luasnip'.lsp_expand(args.body)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
mapping = {
|
||||||
|
['<C-p>'] = cmp.mapping(cmp.mapping.select_prev_item(), { 'i', 'c' }),
|
||||||
|
['<C-n>'] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 'c' }),
|
||||||
|
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
|
['<C-Space>'] = cmp.mapping.complete(),
|
||||||
|
['<C-e>'] = cmp.mapping.close(),
|
||||||
|
['<CR>'] = cmp.mapping.confirm {
|
||||||
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
|
select = false, -- only replace if explicitly selected
|
||||||
|
},
|
||||||
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_next_item()
|
||||||
|
elseif require'luasnip'.expand_or_jumpable() then
|
||||||
|
require'luasnip'.expand_or_jump()
|
||||||
|
elseif has_words_before() then
|
||||||
|
cmp.complete()
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" }),
|
||||||
|
|
||||||
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_prev_item()
|
||||||
|
elseif require'luasnip'.jumpable(-1) then
|
||||||
|
require'luasnip'.jump(-1)
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" })
|
||||||
|
},
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'cmp_tabnine' },
|
||||||
|
{ name = 'nvim_lsp' },
|
||||||
|
{ name = 'luasnip' },
|
||||||
|
}),
|
||||||
|
formatting = {
|
||||||
|
format = function(entry, vim_item)
|
||||||
|
vim_item.kind = lspkind.presets.default[vim_item.kind]
|
||||||
|
local menu = source_mapping[entry.source.name]
|
||||||
|
if entry.source.name == 'cmp_tabnine' then
|
||||||
|
if entry.completion_item.data ~= nil and entry.completion_item.data.detail ~= nil then
|
||||||
|
menu = entry.completion_item.data.detail .. ' ' .. menu
|
||||||
|
end
|
||||||
|
vim_item.kind = '?'
|
||||||
|
end
|
||||||
|
vim_item.menu = menu
|
||||||
|
return vim_item
|
||||||
|
end
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Set configuration for specific filetype.
|
||||||
|
cmp.setup.filetype('org', {
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'orgmode' },
|
||||||
|
{ name = 'cmp_tabnine' },
|
||||||
|
}, {
|
||||||
|
{ name = 'buffer' },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
|
||||||
|
cmp.setup.cmdline('/', {
|
||||||
|
sources = {
|
||||||
|
{ name = 'buffer' }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
||||||
|
cmp.setup.cmdline(':', {
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'path' }
|
||||||
|
}, {
|
||||||
|
{ name = 'cmdline' }
|
||||||
|
}),
|
||||||
|
mappings = cmp.mapping.preset.cmdline(),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Setup tabnine
|
||||||
|
local tabnine = require('cmp_tabnine.config')
|
||||||
|
tabnine:setup({
|
||||||
|
max_lines = 1000;
|
||||||
|
max_num_results = 20;
|
||||||
|
sort = true;
|
||||||
|
run_on_every_keystroke = true;
|
||||||
|
snippet_placeholder = '..';
|
||||||
|
ignored_file_types = { -- default is not to ignore
|
||||||
|
-- uncomment to ignore in lua:
|
||||||
|
lua = true
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
@@ -2,4 +2,4 @@ vim.cmd('let g:nvcode_termcolors=256')
|
|||||||
|
|
||||||
vim.cmd('colorscheme ' .. O.colorscheme)
|
vim.cmd('colorscheme ' .. O.colorscheme)
|
||||||
|
|
||||||
vim.cmd('highlight Normal guibg=NONE ctermbg=NONE')
|
-- vim.cmd('highlight Normal guibg=NONE ctermbg=NONE')
|
||||||
|
@@ -2,7 +2,7 @@ local dap = require('dap')
|
|||||||
|
|
||||||
dap.adapters.mix_task = {
|
dap.adapters.mix_task = {
|
||||||
type = 'executable',
|
type = 'executable',
|
||||||
command = '/home/halfdan/opt/elixir-ls/bin/debugger.sh', -- debugger.bat for windows
|
command = '/usr/local/opt/elixir-ls/rel/debugger.sh', -- debugger.bat for windows
|
||||||
args = {}
|
args = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,18 +1,21 @@
|
|||||||
require("halfdan.settings")
|
|
||||||
require("halfdan.packer")
|
require("halfdan.packer")
|
||||||
|
|
||||||
|
require("halfdan.settings")
|
||||||
|
|
||||||
|
require("impatient")
|
||||||
|
|
||||||
require("halfdan.neogit")
|
require("halfdan.neogit")
|
||||||
|
require("halfdan.neorg")
|
||||||
|
|
||||||
require('halfdan.globals')
|
require('halfdan.globals')
|
||||||
require('halfdan.keymap')
|
require('halfdan.keymap')
|
||||||
|
require('halfdan.cmp')
|
||||||
|
require('halfdan.luasnip')
|
||||||
require('halfdan.colorscheme')
|
require('halfdan.colorscheme')
|
||||||
require('halfdan.treesitter')
|
require('halfdan.treesitter')
|
||||||
require('halfdan.telescope')
|
require('halfdan.telescope')
|
||||||
|
|
||||||
require('halfdan.lualine')
|
require('halfdan.lualine')
|
||||||
|
|
||||||
require('halfdan.themes.nord')
|
|
||||||
|
|
||||||
require('halfdan.autocmds')
|
require('halfdan.autocmds')
|
||||||
|
|
||||||
require('halfdan.debugger')
|
require('halfdan.debugger')
|
||||||
|
@@ -1,27 +1,39 @@
|
|||||||
require'lualine'.setup {
|
require 'lualine'.setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = 'auto',
|
theme = 'gruvbox-baby',
|
||||||
--component_separators = {'', ''},
|
--component_separators = {'', ''},
|
||||||
--section_separators = {'', ''},
|
--section_separators = {'', ''},
|
||||||
disabled_filetypes = {}
|
disabled_filetypes = {}
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = { 'mode' },
|
||||||
lualine_b = {'branch'},
|
lualine_b = { 'branch', 'diff', 'diagnostics' },
|
||||||
lualine_c = { 'filename', 'data', "require'lsp-status'.status()" },
|
lualine_c = { 'filename' },
|
||||||
lualine_x = {'filetype'},
|
lualine_x = { "require'lsp-status'.status()", 'filetype' },
|
||||||
lualine_y = {'progress'},
|
lualine_y = { 'progress' },
|
||||||
lualine_z = {'location'}
|
lualine_z = { 'location' }
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_c = {'filename'},
|
lualine_c = { 'filename' },
|
||||||
lualine_x = {'location'},
|
lualine_x = { 'location' },
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {}
|
lualine_z = {}
|
||||||
},
|
},
|
||||||
tabline = {},
|
tabline = {},
|
||||||
extensions = {}
|
extensions = {},
|
||||||
|
winbar = {
|
||||||
|
lualine_a = {
|
||||||
|
},
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_c = { 'filename' },
|
||||||
|
lualine_x = {},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = {}
|
||||||
|
},
|
||||||
|
inactive_winbar = {
|
||||||
|
lualine_c = { 'filename' },
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
7
.config/nvim/lua/halfdan/luasnip.lua
Normal file
7
.config/nvim/lua/halfdan/luasnip.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
local luasnip = require('luasnip')
|
||||||
|
luasnip.config.set_config {
|
||||||
|
history = true,
|
||||||
|
updateevents = "TextChanged,TextChangedI"
|
||||||
|
}
|
||||||
|
|
||||||
|
require("luasnip/loaders/from_vscode").lazy_load()
|
@@ -1,7 +1,11 @@
|
|||||||
local neogit = require('neogit')
|
local neogit = require('neogit')
|
||||||
local nnoremap = require('halfdan.keymap').nnoremap
|
local nnoremap = require('halfdan.keymap').nnoremap
|
||||||
|
|
||||||
neogit.setup {}
|
neogit.setup {
|
||||||
|
integrations = {
|
||||||
|
diffview = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nnoremap("<leader>gs", function()
|
nnoremap("<leader>gs", function()
|
||||||
neogit.open({ })
|
neogit.open({ })
|
||||||
|
37
.config/nvim/lua/halfdan/neorg.lua
Normal file
37
.config/nvim/lua/halfdan/neorg.lua
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
local neorg = require("neorg")
|
||||||
|
|
||||||
|
neorg.setup({
|
||||||
|
load = {
|
||||||
|
["core.defaults"] = {},
|
||||||
|
["core.norg.dirman"] = {
|
||||||
|
config = {
|
||||||
|
workspaces = {
|
||||||
|
work = "~/org/work",
|
||||||
|
home = "~/org/home",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
["core.gtd.base"] = {
|
||||||
|
config = {
|
||||||
|
workspace = "work",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["core.norg.completion"] = {
|
||||||
|
config = {
|
||||||
|
engine = "nvim-cmp",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["core.norg.concealer"] = {},
|
||||||
|
["core.norg.journal"] = {
|
||||||
|
config = {
|
||||||
|
strategy = "flat",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["core.integrations.telescope"] = {},
|
||||||
|
["core.norg.esupports.metagen"] = {
|
||||||
|
config = {
|
||||||
|
type = "auto",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
@@ -35,7 +35,9 @@ return require("packer").startup({
|
|||||||
-- Packer can manage itself as an optional plugin
|
-- Packer can manage itself as an optional plugin
|
||||||
use "wbthomason/packer.nvim"
|
use "wbthomason/packer.nvim"
|
||||||
|
|
||||||
use {'TimUntersberger/neogit' }
|
use 'lewis6991/impatient.nvim'
|
||||||
|
|
||||||
|
use {'TimUntersberger/neogit', requires = {'sindrets/diffview.nvim' } }
|
||||||
use {'airblade/vim-gitgutter'}
|
use {'airblade/vim-gitgutter'}
|
||||||
-- use {'andymass/vim-matchup'}
|
-- use {'andymass/vim-matchup'}
|
||||||
|
|
||||||
@@ -47,14 +49,30 @@ return require("packer").startup({
|
|||||||
-- Goodies
|
-- Goodies
|
||||||
use {'tpope/vim-fugitive'}
|
use {'tpope/vim-fugitive'}
|
||||||
use {'tpope/vim-surround'} -- ✅
|
use {'tpope/vim-surround'} -- ✅
|
||||||
use {'tpope/vim-dispatch'}
|
use {'tpope/vim-dispatch'}
|
||||||
|
|
||||||
|
-- Treesitter
|
||||||
|
use {
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
run = ':TSUpdate',
|
||||||
|
}
|
||||||
|
use { 'nvim-treesitter/playground', after = 'nvim-treesitter' }
|
||||||
|
use { 'nvim-treesitter/nvim-treesitter-textobjects', after = 'nvim-treesitter' }
|
||||||
|
|
||||||
-- Testing
|
-- Testing
|
||||||
use {'vim-test/vim-test'}
|
use {'vim-test/vim-test'}
|
||||||
|
use {
|
||||||
|
"nvim-neotest/neotest",
|
||||||
|
requires = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"antoinemadec/FixCursorHold.nvim",
|
||||||
|
|
||||||
|
"jfpedroza/neotest-elixir"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
use {"nvim-neotest/neotest-vim-test" }
|
||||||
|
|
||||||
-- Treesitter
|
|
||||||
use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}
|
|
||||||
use {"nvim-treesitter/nvim-treesitter-textobjects"}
|
|
||||||
|
|
||||||
use {'preservim/tagbar'}
|
use {'preservim/tagbar'}
|
||||||
vim.g.tagbar_ctags_bin = '/usr/local/bin/ctags'
|
vim.g.tagbar_ctags_bin = '/usr/local/bin/ctags'
|
||||||
@@ -65,6 +83,11 @@ return require("packer").startup({
|
|||||||
requires = {'kyazdani42/nvim-web-devicons'}
|
requires = {'kyazdani42/nvim-web-devicons'}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use {'rcarriga/nvim-notify'}
|
||||||
|
|
||||||
|
use { "nvim-neorg/neorg" }
|
||||||
|
use {'nvim-neorg/neorg-telescope'}
|
||||||
|
use{ "mickael-menu/zk-nvim" }
|
||||||
|
|
||||||
use {'justinmk/vim-sneak'}
|
use {'justinmk/vim-sneak'}
|
||||||
|
|
||||||
@@ -77,22 +100,29 @@ return require("packer").startup({
|
|||||||
'williamboman/nvim-lsp-installer',
|
'williamboman/nvim-lsp-installer',
|
||||||
}
|
}
|
||||||
|
|
||||||
use {'hrsh7th/cmp-nvim-lsp'}
|
use {'L3MON4D3/LuaSnip'}
|
||||||
use {'hrsh7th/cmp-buffer'}
|
use {"rafamadriz/friendly-snippets", after="LuaSnip"}
|
||||||
use {'hrsh7th/cmp-path'}
|
|
||||||
use {'hrsh7th/cmp-cmdline'}
|
use {
|
||||||
use {'hrsh7th/nvim-cmp'}
|
'hrsh7th/nvim-cmp',
|
||||||
use {'tzachar/cmp-tabnine', run = './install.sh'}
|
requires = {
|
||||||
use {'onsails/lspkind-nvim'} -- Display symbol with cmp suggestions
|
{ 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
|
||||||
use {'L3MON4D3/LuaSnip'}
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
use {'saadparwaiz1/cmp_luasnip'}
|
'onsails/lspkind.nvim',
|
||||||
|
{ 'hrsh7th/cmp-path', after = 'nvim-cmp' },
|
||||||
|
{ 'hrsh7th/cmp-nvim-lua', after = 'nvim-cmp' },
|
||||||
|
{ 'saadparwaiz1/cmp_luasnip', after = 'nvim-cmp' },
|
||||||
|
{ 'hrsh7th/cmp-cmdline', after = 'nvim-cmp', event = 'CmdlineEnter' },
|
||||||
|
{'tzachar/cmp-tabnine', run = './install.sh', after = 'nvim-cmp' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
use {'glepnir/lspsaga.nvim'}
|
use {'glepnir/lspsaga.nvim'}
|
||||||
|
|
||||||
-- Used to display LSP status in Lualine
|
-- Used to display LSP status in Lualine
|
||||||
use {'nvim-lua/lsp-status.nvim'}
|
use {'nvim-lua/lsp-status.nvim'}
|
||||||
|
|
||||||
--use {'simrat39/symbols-outline.nvim'}
|
use {'simrat39/symbols-outline.nvim'}
|
||||||
use {
|
use {
|
||||||
'numToStr/Comment.nvim',
|
'numToStr/Comment.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
@@ -103,10 +133,9 @@ return require("packer").startup({
|
|||||||
use {'nvim-lua/popup.nvim'}
|
use {'nvim-lua/popup.nvim'}
|
||||||
use {'nvim-lua/plenary.nvim'}
|
use {'nvim-lua/plenary.nvim'}
|
||||||
use {'nvim-telescope/telescope.nvim'}
|
use {'nvim-telescope/telescope.nvim'}
|
||||||
use {'nvim-telescope/telescope-project.nvim'}
|
|
||||||
use {'nvim-telescope/telescope-fzy-native.nvim'}
|
|
||||||
|
|
||||||
use {'theprimeagen/git-worktree.nvim'}
|
use {'theprimeagen/git-worktree.nvim'}
|
||||||
|
use {'theprimeagen/harpoon'}
|
||||||
|
|
||||||
-- Debugging
|
-- Debugging
|
||||||
use("mfussenegger/nvim-dap")
|
use("mfussenegger/nvim-dap")
|
||||||
@@ -117,14 +146,17 @@ return require("packer").startup({
|
|||||||
use {'rust-lang/rust.vim'}
|
use {'rust-lang/rust.vim'}
|
||||||
use {'simrat39/rust-tools.nvim'}
|
use {'simrat39/rust-tools.nvim'}
|
||||||
use({ "mhanberg/elixir.nvim", requires = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim" }})
|
use({ "mhanberg/elixir.nvim", requires = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim" }})
|
||||||
|
use {'tpope/vim-projectionist'}
|
||||||
-- use {'JuliaEditorSupport/julia-vim', opt=true}
|
-- use {'JuliaEditorSupport/julia-vim', opt=true}
|
||||||
-- vim.g.latex_to_unicode_auto = 1
|
-- vim.g.latex_to_unicode_auto = 1
|
||||||
|
|
||||||
-- themes & colorschemes
|
-- themes & colorschemes
|
||||||
use {'arcticicestudio/nord-vim'}
|
|
||||||
use {'joshdick/onedark.vim'}
|
|
||||||
use {'gruvbox-community/gruvbox'}
|
use {'gruvbox-community/gruvbox'}
|
||||||
use {'luisiacc/gruvbox-baby'}
|
use {'luisiacc/gruvbox-baby'}
|
||||||
|
use {
|
||||||
|
'https://gitlab.com/__tpb/monokai-pro.nvim',
|
||||||
|
as = 'monokai-pro.nvim'
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
config = {
|
config = {
|
||||||
display = {
|
display = {
|
||||||
|
@@ -1,26 +1,26 @@
|
|||||||
vim.cmd('set iskeyword+=-') -- treat dash separated words as a word text object"
|
vim.notify = require("notify")
|
||||||
vim.cmd('set shortmess+=c') -- Don't pass messages to |ins-completion-menu|.
|
|
||||||
vim.cmd('set inccommand=split') -- Make substitution work in realtime
|
vim.opt.iskeyword:append("-") -- treat dash separated words as a word text object"
|
||||||
|
vim.opt.shortmess:append("c") -- Don't pass messages to |ins-completion-menu|.
|
||||||
|
vim.opt.inccommand = "split" -- Make substitution work in realtime
|
||||||
vim.o.hidden = true -- Required to keep multiple buffers open multiple buffers
|
vim.o.hidden = true -- Required to keep multiple buffers open multiple buffers
|
||||||
vim.o.title = true
|
vim.o.title = true
|
||||||
TERMINAL = vim.fn.expand('$TERMINAL')
|
|
||||||
vim.cmd('let &titleold="'..TERMINAL..'"')
|
|
||||||
vim.o.titlestring="%<%F%=%l/%L - nvim"
|
vim.o.titlestring="%<%F%=%l/%L - nvim"
|
||||||
vim.wo.wrap = false -- Display long lines as just one line
|
vim.wo.wrap = false -- Display long lines as just one line
|
||||||
vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys
|
-- vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys
|
||||||
vim.cmd('syntax on') -- syntax highlighting
|
-- vim.cmd('syntax on') -- syntax highlighting
|
||||||
vim.o.pumheight = 10 -- Makes popup menu smaller
|
vim.o.pumheight = 10 -- Makes popup menu smaller
|
||||||
vim.o.fileencoding = "utf-8" -- The encoding written to file
|
vim.o.fileencoding = "utf-8" -- The encoding written to file
|
||||||
vim.o.cmdheight = 1 -- More space for displaying messages
|
vim.o.cmdheight = 1 -- More space for displaying messages
|
||||||
vim.cmd('set colorcolumn=99999') -- fix indentline for now
|
|
||||||
vim.o.mouse = "a" -- Enable your mouse
|
vim.o.mouse = "a" -- Enable your mouse
|
||||||
vim.o.splitbelow = true -- Horizontal splits will automatically be below
|
vim.o.splitbelow = true -- Horizontal splits will automatically be below
|
||||||
vim.o.termguicolors = true -- set term gui colors most terminals support this
|
vim.o.termguicolors = true -- set term gui colors most terminals support this
|
||||||
vim.o.splitright = true -- Vertical splits will automatically be to the right
|
vim.o.splitright = true -- Vertical splits will automatically be to the right
|
||||||
vim.o.conceallevel = 0 -- So that I can see `` in markdown files
|
vim.opt.conceallevel = 2
|
||||||
vim.cmd('set ts=2') -- Insert 4 spaces for a tab
|
vim.opt.concealcursor = 'nc'
|
||||||
vim.cmd('set sw=2') -- Change the number of space characters inserted for indentation
|
vim.o.tabstop = 2 -- Insert 4 spaces for a tab
|
||||||
vim.cmd('set expandtab') -- Converts tabs to spaces
|
vim.o.shiftwidth = 2 -- Change the number of space characters inserted for indentation
|
||||||
|
vim.o.expandtab = true -- Converts tabs to spaces
|
||||||
vim.bo.smartindent = false -- Makes indenting smart
|
vim.bo.smartindent = false -- Makes indenting smart
|
||||||
vim.wo.number = true -- set numbered lines
|
vim.wo.number = true -- set numbered lines
|
||||||
vim.wo.relativenumber = true -- set relative number
|
vim.wo.relativenumber = true -- set relative number
|
||||||
@@ -34,8 +34,7 @@ vim.o.updatetime = 300 -- Faster completion
|
|||||||
vim.o.timeoutlen = 500 -- By default timeoutlen is 1000 ms
|
vim.o.timeoutlen = 500 -- By default timeoutlen is 1000 ms
|
||||||
vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
|
vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
|
||||||
vim.o.laststatus = 3 -- Set global status bar
|
vim.o.laststatus = 3 -- Set global status bar
|
||||||
vim.opt.winbar = "%=%m %f" -- Show winbar with modified flag and filename right adjusted
|
vim.b.did_ftplugin = 1
|
||||||
|
|
||||||
-- Enable telescope theme
|
-- Enable telescope theme
|
||||||
vim.g.gruvbox_baby_telescope_theme = 1
|
vim.g.gruvbox_baby_telescope_theme = 1
|
||||||
vim.g.gruvbox_baby_background_color = "dark"
|
vim.g.gruvbox_baby_background_color = "dark"
|
||||||
|
@@ -1,72 +1,82 @@
|
|||||||
local actions = require('telescope.actions')
|
local actions = require('telescope.actions')
|
||||||
|
|
||||||
|
require("telescope").load_extension("git_worktree")
|
||||||
|
|
||||||
-- Global remapping
|
-- Global remapping
|
||||||
------------------------------
|
|
||||||
-- '--color=never',
|
|
||||||
require('telescope').setup {
|
require('telescope').setup {
|
||||||
defaults = {
|
defaults = {
|
||||||
find_command = {'rg', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case'},
|
find_command = { 'rg', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case' },
|
||||||
prompt_position = "bottom",
|
file_ignore_patterns = { "_build", "node_modules", "deps" },
|
||||||
--prompt_prefix = " ",
|
prompt_prefix = " ",
|
||||||
prompt_prefix = " ",
|
selection_caret = " ",
|
||||||
selection_caret = " ",
|
entry_prefix = " ",
|
||||||
entry_prefix = " ",
|
initial_mode = "insert",
|
||||||
initial_mode = "insert",
|
selection_strategy = "reset",
|
||||||
selection_strategy = "reset",
|
sorting_strategy = "descending",
|
||||||
sorting_strategy = "descending",
|
layout_strategy = "horizontal",
|
||||||
layout_strategy = "horizontal",
|
layout_defaults = { horizontal = { mirror = false }, vertical = { mirror = false } },
|
||||||
layout_defaults = {horizontal = {mirror = false}, vertical = {mirror = false}},
|
layout_config = { prompt_position = "bottom" },
|
||||||
file_sorter = require'telescope.sorters'.get_fuzzy_file,
|
file_sorter = require 'telescope.sorters'.get_fuzzy_file,
|
||||||
file_ignore_patterns = {"_build", "node_modules", "deps" },
|
generic_sorter = require 'telescope.sorters'.get_generic_fuzzy_sorter,
|
||||||
generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter,
|
shorten_path = true,
|
||||||
shorten_path = true,
|
winblend = 0,
|
||||||
winblend = 0,
|
width = 0.75,
|
||||||
width = 0.75,
|
preview_cutoff = 120,
|
||||||
preview_cutoff = 120,
|
results_height = 1,
|
||||||
results_height = 1,
|
results_width = 0.8,
|
||||||
results_width = 0.8,
|
border = {},
|
||||||
border = {},
|
borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰' },
|
||||||
borderchars = {'─', '│', '─', '│', '╭', '╮', '╯', '╰'},
|
color_devicons = true,
|
||||||
color_devicons = true,
|
use_less = true,
|
||||||
use_less = true,
|
set_env = { ['COLORTERM'] = 'truecolor' }, -- default = nil,
|
||||||
set_env = {['COLORTERM'] = 'truecolor'}, -- default = nil,
|
file_previewer = require 'telescope.previewers'.vim_buffer_cat.new,
|
||||||
file_previewer = require'telescope.previewers'.vim_buffer_cat.new,
|
grep_previewer = require 'telescope.previewers'.vim_buffer_vimgrep.new,
|
||||||
grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new,
|
qflist_previewer = require 'telescope.previewers'.vim_buffer_qflist.new,
|
||||||
qflist_previewer = require'telescope.previewers'.vim_buffer_qflist.new,
|
-- Developer configurations: Not meant for general override
|
||||||
layout_strategy = "horizontal",
|
buffer_previewer_maker = require 'telescope.previewers'.buffer_previewer_maker,
|
||||||
-- Developer configurations: Not meant for general override
|
mappings = {
|
||||||
buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker,
|
i = {
|
||||||
mappings = {
|
["<C-j>"] = actions.move_selection_next,
|
||||||
i = {
|
["<C-k>"] = actions.move_selection_previous,
|
||||||
["<C-j>"] = actions.move_selection_next,
|
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
|
||||||
["<C-k>"] = actions.move_selection_previous,
|
-- To disable a keymap, put [map] = false
|
||||||
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
|
-- So, to not map "<C-n>", just put
|
||||||
-- To disable a keymap, put [map] = false
|
-- ["<c-x>"] = false,
|
||||||
-- So, to not map "<C-n>", just put
|
|
||||||
-- ["<c-x>"] = false,
|
|
||||||
|
|
||||||
|
|
||||||
-- Otherwise, just set the mapping to the function that you want it to be.
|
-- Otherwise, just set the mapping to the function that you want it to be.
|
||||||
-- ["<C-i>"] = actions.select_horizontal,
|
-- ["<C-i>"] = actions.select_horizontal,
|
||||||
|
|
||||||
-- Add up multiple actions
|
-- Add up multiple actions
|
||||||
["<CR>"] = actions.select_default + actions.center
|
["<CR>"] = actions.select_default + actions.center
|
||||||
|
|
||||||
-- You can perform as many actions in a row as you like
|
-- You can perform as many actions in a row as you like
|
||||||
-- ["<CR>"] = actions.select_default + actions.center + my_cool_custom_action,
|
-- ["<CR>"] = actions.select_default + actions.center + my_cool_custom_action,
|
||||||
},
|
},
|
||||||
n = {
|
n = {
|
||||||
["<C-j>"] = actions.move_selection_next,
|
["<C-j>"] = actions.move_selection_next,
|
||||||
["<C-k>"] = actions.move_selection_previous,
|
["<C-k>"] = actions.move_selection_previous,
|
||||||
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
|
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
|
||||||
["<esc>"] = actions.close,
|
["<esc>"] = actions.close,
|
||||||
-- ["<C-i>"] = my_cool_custom_action,
|
-- ["<C-i>"] = my_cool_custom_action,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
extensions = {
|
|
||||||
fzy_native = {
|
|
||||||
override_generic_sorter = false,
|
|
||||||
override_file_sorter = true,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
pickers = {
|
||||||
|
buffers = {
|
||||||
|
mappings = {
|
||||||
|
n = {
|
||||||
|
['d'] = actions.delete_buffer
|
||||||
|
}, -- n
|
||||||
|
i = {
|
||||||
|
['<c-d>'] = actions.delete_buffer
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
extensions = {
|
||||||
|
fzy_native = {
|
||||||
|
override_generic_sorter = false,
|
||||||
|
override_file_sorter = true,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
vim.g.nord_cursor_line_number_background = 1
|
|
||||||
vim.g.nord_bold = 1
|
|
||||||
vim.g.nord_italic = 1
|
|
||||||
vim.g.nord_italic_comments = 1
|
|
@@ -1,11 +1,11 @@
|
|||||||
require('nvim-treesitter.configs').setup({
|
require('nvim-treesitter.configs').setup({
|
||||||
ensure_installed = { "python", "go", "elixir", "rust", "gomod", "json", "lua", "ruby", "yaml" },
|
ensure_installed = { "python", "go", "elixir", "rust", "gomod", "json", "lua", "ruby", "yaml", "norg", "query" },
|
||||||
ignore_install = { "haskell" },
|
ignore_install = { "haskell" },
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true
|
enable = true,
|
||||||
},
|
},
|
||||||
indent = {
|
indent = {
|
||||||
enable = true
|
enable = true,
|
||||||
},
|
},
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
@@ -9,23 +9,26 @@ vim.api.nvim_command('packadd packer.nvim')
|
|||||||
|
|
||||||
local no_errors, error_msg = pcall(function()
|
local no_errors, error_msg = pcall(function()
|
||||||
|
|
||||||
local time
|
_G._packer = _G._packer or {}
|
||||||
local profile_info
|
_G._packer.inside_compile = true
|
||||||
local should_profile = false
|
|
||||||
if should_profile then
|
local time
|
||||||
local hrtime = vim.loop.hrtime
|
local profile_info
|
||||||
profile_info = {}
|
local should_profile = false
|
||||||
time = function(chunk, start)
|
if should_profile then
|
||||||
if start then
|
local hrtime = vim.loop.hrtime
|
||||||
profile_info[chunk] = hrtime()
|
profile_info = {}
|
||||||
else
|
time = function(chunk, start)
|
||||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
if start then
|
||||||
end
|
profile_info[chunk] = hrtime()
|
||||||
|
else
|
||||||
|
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||||
end
|
end
|
||||||
else
|
|
||||||
time = function(chunk, start) end
|
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
time = function(chunk, start) end
|
||||||
|
end
|
||||||
|
|
||||||
local function save_profiles(threshold)
|
local function save_profiles(threshold)
|
||||||
local sorted_times = {}
|
local sorted_times = {}
|
||||||
for chunk_name, time_taken in pairs(profile_info) do
|
for chunk_name, time_taken in pairs(profile_info) do
|
||||||
@@ -38,14 +41,16 @@ local function save_profiles(threshold)
|
|||||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if threshold then
|
||||||
|
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
|
||||||
|
end
|
||||||
|
|
||||||
_G._packer = _G._packer or {}
|
|
||||||
_G._packer.profile_output = results
|
_G._packer.profile_output = results
|
||||||
end
|
end
|
||||||
|
|
||||||
time([[Luarocks path setup]], true)
|
time([[Luarocks path setup]], true)
|
||||||
local package_path_str = "/Users/halfdan/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/halfdan/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/halfdan/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/halfdan/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
local package_path_str = "/Users/matthiasnienaber/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/matthiasnienaber/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/matthiasnienaber/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/matthiasnienaber/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||||
local install_cpath_pattern = "/Users/halfdan/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
local install_cpath_pattern = "/Users/matthiasnienaber/.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
|
if not string.find(package.path, package_path_str, 1, true) then
|
||||||
package.path = package.path .. ';' .. package_path_str
|
package.path = package.path .. ';' .. package_path_str
|
||||||
end
|
end
|
||||||
@@ -69,249 +74,380 @@ end
|
|||||||
time([[try_loadstring definition]], false)
|
time([[try_loadstring definition]], false)
|
||||||
time([[Defining packer_plugins]], true)
|
time([[Defining packer_plugins]], true)
|
||||||
_G.packer_plugins = {
|
_G.packer_plugins = {
|
||||||
["JuliaFormatter.vim"] = {
|
["Comment.nvim"] = {
|
||||||
|
config = { "\27LJ\2\n5\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\fComment\frequire\0" },
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/JuliaFormatter.vim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/Comment.nvim",
|
||||||
url = "https://github.com/kdheepak/JuliaFormatter.vim"
|
url = "https://github.com/numToStr/Comment.nvim"
|
||||||
|
},
|
||||||
|
["FixCursorHold.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/FixCursorHold.nvim",
|
||||||
|
url = "https://github.com/antoinemadec/FixCursorHold.nvim"
|
||||||
},
|
},
|
||||||
LuaSnip = {
|
LuaSnip = {
|
||||||
loaded = true,
|
after = { "friendly-snippets", "nvim-cmp" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
config = { "\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20halfdan.luasnip\frequire\0" },
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = true,
|
||||||
|
only_cond = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/LuaSnip",
|
||||||
url = "https://github.com/L3MON4D3/LuaSnip"
|
url = "https://github.com/L3MON4D3/LuaSnip"
|
||||||
},
|
},
|
||||||
["cmp-buffer"] = {
|
["cmp-buffer"] = {
|
||||||
loaded = true,
|
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-buffer/after/plugin/cmp_buffer.lua" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
load_after = {
|
||||||
|
["nvim-cmp"] = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-buffer",
|
||||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
url = "https://github.com/hrsh7th/cmp-buffer"
|
||||||
},
|
},
|
||||||
["cmp-cmdline"] = {
|
["cmp-cmdline"] = {
|
||||||
loaded = true,
|
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-cmdline/after/plugin/cmp_cmdline.lua" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
load_after = {
|
||||||
|
["nvim-cmp"] = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
only_cond = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-cmdline",
|
||||||
url = "https://github.com/hrsh7th/cmp-cmdline"
|
url = "https://github.com/hrsh7th/cmp-cmdline"
|
||||||
},
|
},
|
||||||
["cmp-nvim-lsp"] = {
|
["cmp-nvim-lsp"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
||||||
},
|
},
|
||||||
|
["cmp-nvim-lua"] = {
|
||||||
|
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua" },
|
||||||
|
load_after = {
|
||||||
|
["nvim-cmp"] = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua",
|
||||||
|
url = "https://github.com/hrsh7th/cmp-nvim-lua"
|
||||||
|
},
|
||||||
["cmp-path"] = {
|
["cmp-path"] = {
|
||||||
loaded = true,
|
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-path/after/plugin/cmp_path.lua" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-path",
|
load_after = {
|
||||||
|
["nvim-cmp"] = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-path",
|
||||||
url = "https://github.com/hrsh7th/cmp-path"
|
url = "https://github.com/hrsh7th/cmp-path"
|
||||||
},
|
},
|
||||||
["cmp-tabnine"] = {
|
["cmp-tabnine"] = {
|
||||||
loaded = true,
|
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-tabnine/after/plugin/cmp-tabnine.lua" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-tabnine",
|
load_after = {
|
||||||
|
["nvim-cmp"] = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-tabnine",
|
||||||
url = "https://github.com/tzachar/cmp-tabnine"
|
url = "https://github.com/tzachar/cmp-tabnine"
|
||||||
},
|
},
|
||||||
cmp_luasnip = {
|
cmp_luasnip = {
|
||||||
loaded = true,
|
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
|
load_after = {
|
||||||
|
["nvim-cmp"] = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp_luasnip",
|
||||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
||||||
},
|
},
|
||||||
["darcula-solid.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/darcula-solid.nvim",
|
|
||||||
url = "https://github.com/briones-gabriel/darcula-solid.nvim"
|
|
||||||
},
|
|
||||||
dracula = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/dracula",
|
|
||||||
url = "https://github.com/dracula/vim"
|
|
||||||
},
|
|
||||||
["editorconfig-vim"] = {
|
["editorconfig-vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/editorconfig-vim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/editorconfig-vim",
|
||||||
url = "https://github.com/editorconfig/editorconfig-vim"
|
url = "https://github.com/editorconfig/editorconfig-vim"
|
||||||
},
|
},
|
||||||
everforest = {
|
["elixir.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/everforest",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/elixir.nvim",
|
||||||
url = "https://github.com/sainnhe/everforest"
|
url = "https://github.com/mhanberg/elixir.nvim"
|
||||||
|
},
|
||||||
|
["friendly-snippets"] = {
|
||||||
|
load_after = {
|
||||||
|
LuaSnip = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/friendly-snippets",
|
||||||
|
url = "https://github.com/rafamadriz/friendly-snippets"
|
||||||
},
|
},
|
||||||
["git-worktree.nvim"] = {
|
["git-worktree.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/git-worktree.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/git-worktree.nvim",
|
||||||
url = "https://github.com/theprimeagen/git-worktree.nvim"
|
url = "https://github.com/theprimeagen/git-worktree.nvim"
|
||||||
},
|
},
|
||||||
["jsonc.vim"] = {
|
gruvbox = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/jsonc.vim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/gruvbox",
|
||||||
url = "https://github.com/neoclide/jsonc.vim"
|
url = "https://github.com/gruvbox-community/gruvbox"
|
||||||
},
|
},
|
||||||
["julia-vim"] = {
|
["gruvbox-baby"] = {
|
||||||
loaded = false,
|
loaded = true,
|
||||||
needs_bufread = true,
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/gruvbox-baby",
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/opt/julia-vim",
|
url = "https://github.com/luisiacc/gruvbox-baby"
|
||||||
url = "https://github.com/JuliaEditorSupport/julia-vim"
|
},
|
||||||
|
["impatient.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/impatient.nvim",
|
||||||
|
url = "https://github.com/lewis6991/impatient.nvim"
|
||||||
},
|
},
|
||||||
["lsp-status.nvim"] = {
|
["lsp-status.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/lsp-status.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lsp-status.nvim",
|
||||||
url = "https://github.com/nvim-lua/lsp-status.nvim"
|
url = "https://github.com/nvim-lua/lsp-status.nvim"
|
||||||
},
|
},
|
||||||
["lspkind-nvim"] = {
|
["lspkind.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/lspkind-nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
|
||||||
url = "https://github.com/onsails/lspkind-nvim"
|
url = "https://github.com/onsails/lspkind.nvim"
|
||||||
},
|
},
|
||||||
["lspsaga.nvim"] = {
|
["lspsaga.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
|
||||||
url = "https://github.com/tami5/lspsaga.nvim"
|
url = "https://github.com/glepnir/lspsaga.nvim"
|
||||||
},
|
},
|
||||||
["lualine.nvim"] = {
|
["lualine.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||||
},
|
},
|
||||||
["lush.nvim"] = {
|
neogit = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/lush.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neogit",
|
||||||
url = "https://github.com/rktjmp/lush.nvim"
|
url = "https://github.com/TimUntersberger/neogit"
|
||||||
},
|
},
|
||||||
moonlight = {
|
neorg = {
|
||||||
loaded = true,
|
after = { "neorg-telescope" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/moonlight",
|
config = { "\27LJ\2\n-\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\18halfdan.neorg\frequire\0" },
|
||||||
url = "https://github.com/shaunsingh/moonlight.nvim"
|
load_after = {},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = true,
|
||||||
|
only_cond = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/neorg",
|
||||||
|
url = "https://github.com/nvim-neorg/neorg"
|
||||||
},
|
},
|
||||||
nerdcommenter = {
|
["neorg-telescope"] = {
|
||||||
|
load_after = {
|
||||||
|
neorg = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/neorg-telescope",
|
||||||
|
url = "https://github.com/nvim-neorg/neorg-telescope"
|
||||||
|
},
|
||||||
|
neotest = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nerdcommenter",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neotest",
|
||||||
url = "https://github.com/preservim/nerdcommenter"
|
url = "https://github.com/nvim-neotest/neotest"
|
||||||
|
},
|
||||||
|
["neotest-elixir"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neotest-elixir",
|
||||||
|
url = "https://github.com/jfpedroza/neotest-elixir"
|
||||||
|
},
|
||||||
|
["neotest-vim-test"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neotest-vim-test",
|
||||||
|
url = "https://github.com/nvim-neotest/neotest-vim-test"
|
||||||
},
|
},
|
||||||
["nord-vim"] = {
|
["nord-vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nord-vim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nord-vim",
|
||||||
url = "https://github.com/arcticicestudio/nord-vim"
|
url = "https://github.com/arcticicestudio/nord-vim"
|
||||||
},
|
},
|
||||||
["nvim-cmp"] = {
|
["nvim-cmp"] = {
|
||||||
loaded = true,
|
after = { "cmp-buffer", "cmp-nvim-lua", "cmp-tabnine", "cmp-path", "cmp_luasnip", "cmp-cmdline" },
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
config = { "\27LJ\2\n+\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\16halfdan.cmp\frequire\0" },
|
||||||
|
load_after = {
|
||||||
|
LuaSnip = true
|
||||||
|
},
|
||||||
|
loaded = false,
|
||||||
|
needs_bufread = false,
|
||||||
|
only_cond = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/nvim-cmp",
|
||||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||||
},
|
},
|
||||||
["nvim-dap"] = {
|
["nvim-dap"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-dap",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-dap",
|
||||||
url = "https://github.com/mfussenegger/nvim-dap"
|
url = "https://github.com/mfussenegger/nvim-dap"
|
||||||
},
|
},
|
||||||
["nvim-dap-ui"] = {
|
["nvim-dap-ui"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-dap-ui",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-dap-ui",
|
||||||
url = "https://github.com/rcarriga/nvim-dap-ui"
|
url = "https://github.com/rcarriga/nvim-dap-ui"
|
||||||
},
|
},
|
||||||
|
["nvim-dap-virtual-text"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-dap-virtual-text",
|
||||||
|
url = "https://github.com/theHamsta/nvim-dap-virtual-text"
|
||||||
|
},
|
||||||
["nvim-lsp-installer"] = {
|
["nvim-lsp-installer"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer",
|
||||||
url = "https://github.com/williamboman/nvim-lsp-installer"
|
url = "https://github.com/williamboman/nvim-lsp-installer"
|
||||||
},
|
},
|
||||||
["nvim-lspconfig"] = {
|
["nvim-lspconfig"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||||
url = "https://github.com/neovim/nvim-lspconfig"
|
url = "https://github.com/neovim/nvim-lspconfig"
|
||||||
},
|
},
|
||||||
|
["nvim-notify"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-notify",
|
||||||
|
url = "https://github.com/rcarriga/nvim-notify"
|
||||||
|
},
|
||||||
["nvim-treesitter"] = {
|
["nvim-treesitter"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||||
},
|
},
|
||||||
|
["nvim-treesitter-textobjects"] = {
|
||||||
|
load_after = {},
|
||||||
|
loaded = true,
|
||||||
|
needs_bufread = false,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textobjects",
|
||||||
|
url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
|
||||||
|
},
|
||||||
["nvim-web-devicons"] = {
|
["nvim-web-devicons"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||||
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
||||||
},
|
},
|
||||||
["onedark.vim"] = {
|
["onedark.vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/onedark.vim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/onedark.vim",
|
||||||
url = "https://github.com/joshdick/onedark.vim"
|
url = "https://github.com/joshdick/onedark.vim"
|
||||||
},
|
},
|
||||||
["packer.nvim"] = {
|
["packer.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||||
url = "https://github.com/wbthomason/packer.nvim"
|
url = "https://github.com/wbthomason/packer.nvim"
|
||||||
},
|
},
|
||||||
|
playground = {
|
||||||
|
load_after = {},
|
||||||
|
loaded = true,
|
||||||
|
needs_bufread = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/playground",
|
||||||
|
url = "https://github.com/nvim-treesitter/playground"
|
||||||
|
},
|
||||||
["plenary.nvim"] = {
|
["plenary.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||||
},
|
},
|
||||||
["popup.nvim"] = {
|
["popup.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/popup.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/popup.nvim",
|
||||||
url = "https://github.com/nvim-lua/popup.nvim"
|
url = "https://github.com/nvim-lua/popup.nvim"
|
||||||
},
|
},
|
||||||
["rust-tools.nvim"] = {
|
["rust-tools.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/rust-tools.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/rust-tools.nvim",
|
||||||
url = "https://github.com/simrat39/rust-tools.nvim"
|
url = "https://github.com/simrat39/rust-tools.nvim"
|
||||||
},
|
},
|
||||||
["rust.vim"] = {
|
["rust.vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/rust.vim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/rust.vim",
|
||||||
url = "https://github.com/rust-lang/rust.vim"
|
url = "https://github.com/rust-lang/rust.vim"
|
||||||
},
|
},
|
||||||
["symbols-outline.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim",
|
|
||||||
url = "https://github.com/marcuscaisey/symbols-outline.nvim"
|
|
||||||
},
|
|
||||||
tagbar = {
|
tagbar = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/tagbar",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/tagbar",
|
||||||
url = "https://github.com/preservim/tagbar"
|
url = "https://github.com/preservim/tagbar"
|
||||||
},
|
},
|
||||||
["telescope-fzy-native.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim",
|
|
||||||
url = "https://github.com/nvim-telescope/telescope-fzy-native.nvim"
|
|
||||||
},
|
|
||||||
["telescope-project.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/telescope-project.nvim",
|
|
||||||
url = "https://github.com/nvim-telescope/telescope-project.nvim"
|
|
||||||
},
|
|
||||||
["telescope.nvim"] = {
|
["telescope.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||||
},
|
},
|
||||||
|
["vim-dispatch"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-dispatch",
|
||||||
|
url = "https://github.com/tpope/vim-dispatch"
|
||||||
|
},
|
||||||
["vim-easy-align"] = {
|
["vim-easy-align"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/vim-easy-align",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-easy-align",
|
||||||
url = "https://github.com/junegunn/vim-easy-align"
|
url = "https://github.com/junegunn/vim-easy-align"
|
||||||
},
|
},
|
||||||
["vim-fugitive"] = {
|
["vim-fugitive"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
||||||
url = "https://github.com/tpope/vim-fugitive"
|
url = "https://github.com/tpope/vim-fugitive"
|
||||||
},
|
},
|
||||||
["vim-gitgutter"] = {
|
["vim-gitgutter"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
|
||||||
url = "https://github.com/airblade/vim-gitgutter"
|
url = "https://github.com/airblade/vim-gitgutter"
|
||||||
},
|
},
|
||||||
["vim-highlightedyank"] = {
|
["vim-highlightedyank"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/vim-highlightedyank",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-highlightedyank",
|
||||||
url = "https://github.com/machakann/vim-highlightedyank"
|
url = "https://github.com/machakann/vim-highlightedyank"
|
||||||
},
|
},
|
||||||
|
["vim-projectionist"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-projectionist",
|
||||||
|
url = "https://github.com/tpope/vim-projectionist"
|
||||||
|
},
|
||||||
["vim-sneak"] = {
|
["vim-sneak"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/vim-sneak",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-sneak",
|
||||||
url = "https://github.com/justinmk/vim-sneak"
|
url = "https://github.com/justinmk/vim-sneak"
|
||||||
},
|
},
|
||||||
["vim-surround"] = {
|
["vim-surround"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/vim-surround",
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-surround",
|
||||||
url = "https://github.com/tpope/vim-surround"
|
url = "https://github.com/tpope/vim-surround"
|
||||||
|
},
|
||||||
|
["vim-test"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-test",
|
||||||
|
url = "https://github.com/vim-test/vim-test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], false)
|
||||||
|
-- Config for: Comment.nvim
|
||||||
|
time([[Config for Comment.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n5\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\fComment\frequire\0", "config", "Comment.nvim")
|
||||||
|
time([[Config for Comment.nvim]], false)
|
||||||
|
-- Load plugins in order defined by `after`
|
||||||
|
time([[Sequenced loading]], true)
|
||||||
|
vim.cmd [[ packadd nvim-treesitter ]]
|
||||||
|
vim.cmd [[ packadd nvim-treesitter-textobjects ]]
|
||||||
|
vim.cmd [[ packadd playground ]]
|
||||||
|
time([[Sequenced loading]], false)
|
||||||
|
vim.cmd [[augroup packer_load_aucmds]]
|
||||||
|
vim.cmd [[au!]]
|
||||||
|
-- Event lazy-loads
|
||||||
|
time([[Defining lazy-load event autocommands]], true)
|
||||||
|
vim.cmd [[au CmdlineEnter * ++once lua require("packer.load")({'cmp-cmdline'}, { event = "CmdlineEnter *" }, _G.packer_plugins)]]
|
||||||
|
vim.cmd [[au BufEnter * ++once lua require("packer.load")({'neorg'}, { event = "BufEnter *" }, _G.packer_plugins)]]
|
||||||
|
vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'LuaSnip', 'nvim-cmp'}, { event = "InsertEnter *" }, _G.packer_plugins)]]
|
||||||
|
time([[Defining lazy-load event autocommands]], false)
|
||||||
|
vim.cmd("augroup END")
|
||||||
|
|
||||||
|
_G._packer.inside_compile = false
|
||||||
|
if _G._packer.needs_bufread == true then
|
||||||
|
vim.cmd("doautocmd BufRead")
|
||||||
|
end
|
||||||
|
_G._packer.needs_bufread = false
|
||||||
|
|
||||||
if should_profile then save_profiles() end
|
if should_profile then save_profiles() end
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if not no_errors then
|
if not no_errors then
|
||||||
|
error_msg = error_msg:gsub('"', '\\"')
|
||||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||||
end
|
end
|
||||||
|
@@ -5,6 +5,8 @@
|
|||||||
# Plugin manager for tmux
|
# Plugin manager for tmux
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
|
||||||
|
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins/'
|
||||||
|
|
||||||
# Simple tmux options for anyone
|
# Simple tmux options for anyone
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
|
||||||
@@ -71,6 +73,7 @@ set -g default-terminal "screen-256color"
|
|||||||
|
|
||||||
# Terminal type configuration
|
# Terminal type configuration
|
||||||
set -ga terminal-overrides ",screen-256color:RGB"
|
set -ga terminal-overrides ",screen-256color:RGB"
|
||||||
|
set -ag terminal-overrides ",alacritty:RGB"
|
||||||
|
|
||||||
# Start window numbering at specific num
|
# Start window numbering at specific num
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
@@ -78,6 +81,9 @@ set -g base-index 1
|
|||||||
# Renumber windows on window close
|
# Renumber windows on window close
|
||||||
set -g renumber-windows on
|
set -g renumber-windows on
|
||||||
|
|
||||||
|
# Set vi mode
|
||||||
|
setw -g mode-keys vi
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
# KEY BINDING
|
# KEY BINDING
|
||||||
#######################################################
|
#######################################################
|
||||||
@@ -101,6 +107,11 @@ bind-key C-a send-prefix
|
|||||||
|
|
||||||
bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
|
bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
|
||||||
|
|
||||||
|
bind -T copy-mode-vi v send -X begin-selection
|
||||||
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||||
|
bind P paste-buffer
|
||||||
|
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# END OF GENERAL CONFIGURATIONS
|
# END OF GENERAL CONFIGURATIONS
|
||||||
######################################################################
|
######################################################################
|
||||||
|
19
.config/wezterm/wezterm.lua
Normal file
19
.config/wezterm/wezterm.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
local wezterm = require"wezterm"
|
||||||
|
|
||||||
|
return {
|
||||||
|
-- Font settings
|
||||||
|
font = wezterm.font_with_fallback {
|
||||||
|
'FiraCode Nerd Font Mono',
|
||||||
|
'Jetbrains Mono'
|
||||||
|
},
|
||||||
|
font_size = 18,
|
||||||
|
|
||||||
|
color_scheme = "Gruvbox Dark",
|
||||||
|
-- Tab bar
|
||||||
|
show_tab_index_in_tab_bar = false,
|
||||||
|
hide_tab_bar_if_only_one_tab = true,
|
||||||
|
-- Window look
|
||||||
|
window_decorations = "RESIZE",
|
||||||
|
-- Wayland
|
||||||
|
enable_wayland = true,
|
||||||
|
}
|
Reference in New Issue
Block a user