Setting up a lot of changes

This commit is contained in:
Fabian Becker 2022-09-20 14:01:09 +02:00
parent 183d7b6a57
commit 04eac8f2b6
19 changed files with 475 additions and 265 deletions

View File

@ -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

View File

@ -8,26 +8,21 @@ local source_mapping = {
nvim_lua = "[Lua]", nvim_lua = "[Lua]",
cmp_tabnine = "[TN]", cmp_tabnine = "[TN]",
path = "[Path]", 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({ 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 = { snippet = {
expand = function(args) expand = function(args)
require'luasnip'.lsp_expand(args.body) luasnip.lsp_expand(args.body)
end, end,
}, },
mapping = { mapping = {
@ -41,10 +36,32 @@ cmp.setup({
behavior = cmp.ConfirmBehavior.Replace, behavior = cmp.ConfirmBehavior.Replace,
select = false, -- only replace if explicitly selected select = false, -- only replace if explicitly selected
}, },
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
elseif has_words_before() then
cmp.complete()
else
fallback()
end
end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
end, { "i", "s" })
}, },
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'cmp_tabnine' }, { name = 'cmp_tabnine' },
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'luasnip' },
}), }),
formatting = { formatting = {
format = function(entry, vim_item) format = function(entry, vim_item)
@ -62,6 +79,16 @@ cmp.setup({
} }
}) })
-- 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). -- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline('/', { cmp.setup.cmdline('/', {
sources = { sources = {
@ -93,6 +120,3 @@ tabnine:setup({
}; };
}) })
-- Setup lspconfig.
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)

View File

@ -0,0 +1,25 @@
local Worktree = require("git-worktree")
local Job = require("plenary.job")
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({
"mix", "compile"
})
if op == Worktree.Operations.Create and is_massdriver() then
local deps_job = Job:new({
"mix", "deps.get"
})
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)

View File

@ -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')

View File

@ -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(1 )
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,12 +110,12 @@ 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 function config(_config)
return vim.tbl_deep_extend("force", { local on_attach = function(client, bufnr)
capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()),
on_attach = function()
-- local opts = { noremap = true, silent = true }
nnoremap("gd", function() vim.lsp.buf.definition() end) nnoremap("gd", function() vim.lsp.buf.definition() end)
nnoremap("gD", function() vim.lsp.buf.declaration() end) nnoremap("gD", function() vim.lsp.buf.declaration() end)
nnoremap("K", function() vim.lsp.buf.hover() end) nnoremap("K", function() vim.lsp.buf.hover() end)
@ -109,33 +124,50 @@ local function config(_config)
nnoremap("[d", function() vim.diagnostic.goto_next() end) nnoremap("[d", function() vim.diagnostic.goto_next() end)
nnoremap("]d", function() vim.diagnostic.goto_prev() end) nnoremap("]d", function() vim.diagnostic.goto_prev() end)
nnoremap("<leader>ca", function() vim.lsp.buf.code_action() end) nnoremap("<leader>ca", function() vim.lsp.buf.code_action() end)
nnoremap("<leader>rr", function() vim.lsp.buf.references() end) nnoremap("gr", function() vim.lsp.buf.references() end)
nnoremap("<leader>rn", function() vim.lsp.buf.rename() end) nnoremap("<leader>rn", function() vim.lsp.buf.rename() end)
nnoremap("<leader>cl", function() vim.lsp.codelens.run() end) nnoremap("<leader>cl", function() vim.lsp.codelens.run() end)
nnoremap("<leader>ff", function() vim.lsp.buf.format{async = true} end) nnoremap("<leader>ff", function() vim.lsp.buf.format{async = true} end)
inoremap("<C-h>", function() vim.lsp.buf.signature_help() 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) lsp_status.on_attach(client, bufnr)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts) end
-- 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) local function config(_config)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts) _config = vim.tbl_deep_extend("force", {
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts) log_level = vim.lsp.protocol.MessageType.Log,
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>so', [[<cmd>lua require('telescope.builtin').lsp_document_symbols()<CR>]], opts) message_level = vim.lsp.protocol.MessageType.Log,
-- vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]] capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()),
end, on_attach = on_attach,
}, _config or {}) }, _config or {})
-- Set default client capabilities plus window/workDoneProgress
_config.capabilities = vim.tbl_extend('keep', _config.capabilities or {}, lsp_status.capabilities)
return _config
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
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 +176,16 @@ 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' }
}
}
}
}))
require('rust-tools').setup({ require('rust-tools').setup({
tools = { tools = {
inlay_hints = { inlay_hints = {

View File

@ -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)

View 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()

View File

@ -1,5 +1,6 @@
require("neotest").setup({ require("neotest").setup({
adapters = { adapters = {
require("neotest-vim-test")({ allow_file_types = { "haskell", "elixir" } }), require("neotest-vim-test")({ allow_file_types = { "haskell"} }),
require("neotest-elixir")
}, },
}) })

View File

@ -0,0 +1,3 @@
require('notify').setup({
background_colour = "#000000",
})

View File

@ -0,0 +1,23 @@
local orgmode = require('orgmode')
orgmode.setup_ts_grammar()
orgmode.setup({
org_agenda_files = { '~/org/*' },
org_default_notes_file = '~/org/inbox.org',
org_todo_keywords = {'TODO(t)', 'WAITING(w)', '|', 'DONE(d)', 'CANCELLED(c)'},
org_capture_templates = {
t = {
description = 'Todo',
template = '* TODO %?\n %u',
target = '~/org/inbox.org'
},
j = {
description = 'Journal',
template = '\n*** %<%Y-%m-%d> %<%A>\n**** %U\n\n%?',
target = '~/org/journal.org'
},
},
})

View File

@ -2,7 +2,7 @@ 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.grep_string({ search = vim.fn.input("Grep For > ")})
end) end)
nnoremap("<C-p>", function() nnoremap("<C-p>", function()
@ -14,6 +14,9 @@ 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)
@ -23,13 +26,10 @@ end)
nnoremap("<leader>vh", function() nnoremap("<leader>vh", function()
builtin.help_tags() builtin.help_tags()
end) end)
nnoremap("<leader>gw", function()
require('telescope').extensions.git_worktree.git_worktrees()
end)
nnoremap("<leader>gc", function()
builtin.git_branches()
end)
-- Telescope
-- nnoremap('<leader>fs', ':lua require(\'telescope.builtin\').grep_string({ search = vim.fn.input("Grep For > ")})<CR>')
-- nnoremap('<Leader>ff', ':lua require(\'telescope.builtin\').find_files()<CR>')
-- nnoremap('<leader>fw', ':lua require(\'telescope.builtin\').grep_string { search = vim.fn.expand("<cword>") }<CR>')
-- nnoremap('<leader>fb', ':lua require(\'telescope.builtin\').buffers()<CR>')
-- nnoremap('<leader>vh', ':lua require(\'telescope.builtin\').help_tags()<CR>')
-- nnoremap('<leader>gwl', ':lua require(\'telescope\').extensions.git_worktree.git_worktrees()<CR>')
-- nnoremap('<leader>gwc', ':lua require(\'telescope\').extensions.git_worktree.create_git_worktree()<CR>')

View File

@ -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')

View File

@ -1,7 +1,7 @@
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 = {}
@ -9,8 +9,8 @@ require'lualine'.setup {
sections = { sections = {
lualine_a = {'mode'}, lualine_a = {'mode'},
lualine_b = {'branch'}, lualine_b = {'branch'},
lualine_c = { 'filename', 'data', "require'lsp-status'.status()" }, lualine_c = { 'filename', 'diff' },
lualine_x = {'filetype'}, lualine_x = {"require'lsp-status'.status()", 'filetype'},
lualine_y = {'progress'}, lualine_y = {'progress'},
lualine_z = {'location'} lualine_z = {'location'}
}, },
@ -23,5 +23,14 @@ require'lualine'.setup {
lualine_z = {} lualine_z = {}
}, },
tabline = {}, tabline = {},
extensions = {} extensions = {},
winbar = {
lualine_a = {
},
lualine_b = {},
lualine_c = {'filename' },
lualine_x = {},
lualine_y = {},
lualine_z = {}
}
} }

View File

@ -51,6 +51,17 @@ return require("packer").startup({
-- 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 -- Treesitter
use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"} use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}
@ -65,6 +76,9 @@ return require("packer").startup({
requires = {'kyazdani42/nvim-web-devicons'} requires = {'kyazdani42/nvim-web-devicons'}
} }
use {'rcarriga/nvim-notify'}
use {'nvim-orgmode/orgmode'}
use {'justinmk/vim-sneak'} use {'justinmk/vim-sneak'}
@ -84,7 +98,10 @@ return require("packer").startup({
use {'hrsh7th/nvim-cmp'} use {'hrsh7th/nvim-cmp'}
use {'tzachar/cmp-tabnine', run = './install.sh'} use {'tzachar/cmp-tabnine', run = './install.sh'}
use {'onsails/lspkind-nvim'} -- Display symbol with cmp suggestions use {'onsails/lspkind-nvim'} -- Display symbol with cmp suggestions
use {'L3MON4D3/LuaSnip'} use {
'L3MON4D3/LuaSnip',
requires = {"rafamadriz/friendly-snippets"},
}
use {'saadparwaiz1/cmp_luasnip'} use {'saadparwaiz1/cmp_luasnip'}
use {'glepnir/lspsaga.nvim'} use {'glepnir/lspsaga.nvim'}

View File

@ -1,3 +1,5 @@
vim.notify = require("notify")
vim.cmd('set iskeyword+=-') -- treat dash separated words as a word text object" vim.cmd('set iskeyword+=-') -- treat dash separated words as a word text object"
vim.cmd('set shortmess+=c') -- Don't pass messages to |ins-completion-menu|. vim.cmd('set shortmess+=c') -- Don't pass messages to |ins-completion-menu|.
vim.cmd('set inccommand=split') -- Make substitution work in realtime vim.cmd('set inccommand=split') -- Make substitution work in realtime
@ -17,7 +19,8 @@ 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.opt.concealcursor = 'nc'
vim.cmd('set ts=2') -- Insert 4 spaces for a tab vim.cmd('set ts=2') -- Insert 4 spaces for a tab
vim.cmd('set sw=2') -- Change the number of space characters inserted for indentation vim.cmd('set sw=2') -- Change the number of space characters inserted for indentation
vim.cmd('set expandtab') -- Converts tabs to spaces vim.cmd('set expandtab') -- Converts tabs to spaces
@ -34,10 +37,10 @@ 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
-- 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"
vim.g.colorscheme = "gruvbox-baby" -- Set colorscheme
vim.g.mapleader = ' ' vim.g.mapleader = ' '

View File

@ -1,10 +1,12 @@
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'},
file_ignore_patterns = {"_build", "node_modules", "deps" },
prompt_position = "bottom", prompt_position = "bottom",
--prompt_prefix = " ", --prompt_prefix = " ",
prompt_prefix = "", prompt_prefix = "",
@ -16,7 +18,6 @@ require('telescope').setup {
layout_strategy = "horizontal", layout_strategy = "horizontal",
layout_defaults = {horizontal = {mirror = false}, vertical = {mirror = false}}, layout_defaults = {horizontal = {mirror = false}, vertical = {mirror = false}},
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,
@ -32,7 +33,6 @@ require('telescope').setup {
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,
layout_strategy = "horizontal",
-- Developer configurations: Not meant for general override -- Developer configurations: Not meant for general override
buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker, buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker,
mappings = { mappings = {
@ -44,7 +44,6 @@ require('telescope').setup {
-- So, to not map "<C-n>", just put -- So, to not map "<C-n>", just put
-- ["<c-x>"] = false, -- ["<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,

View File

@ -1,11 +1,13 @@
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", "org" },
ignore_install = { "haskell" }, ignore_install = { "haskell" },
highlight = { highlight = {
enable = true enable = true,
additional_vim_regex_highlighting = {'org'},
}, },
indent = { indent = {
enable = true enable = true,
disable = { 'org' },
}, },
incremental_selection = { incremental_selection = {
enable = true, enable = true,

View File

@ -9,10 +9,13 @@ 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 profile_info
local should_profile = false
if should_profile then
local hrtime = vim.loop.hrtime local hrtime = vim.loop.hrtime
profile_info = {} profile_info = {}
time = function(chunk, start) time = function(chunk, start)
@ -22,9 +25,9 @@ local no_errors, error_msg = pcall(function()
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
end end
end end
else else
time = function(chunk, start) end time = function(chunk, start) end
end end
local function save_profiles(threshold) local function save_profiles(threshold)
local sorted_times = {} local sorted_times = {}
@ -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,286 @@ 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, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/LuaSnip", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip" url = "https://github.com/L3MON4D3/LuaSnip"
}, },
["cmp-buffer"] = { ["cmp-buffer"] = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-buffer", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-buffer",
url = "https://github.com/hrsh7th/cmp-buffer" url = "https://github.com/hrsh7th/cmp-buffer"
}, },
["cmp-cmdline"] = { ["cmp-cmdline"] = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-cmdline", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/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-path"] = { ["cmp-path"] = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-path", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-path",
url = "https://github.com/hrsh7th/cmp-path" url = "https://github.com/hrsh7th/cmp-path"
}, },
["cmp-tabnine"] = { ["cmp-tabnine"] = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp-tabnine", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-tabnine",
url = "https://github.com/tzachar/cmp-tabnine" url = "https://github.com/tzachar/cmp-tabnine"
}, },
cmp_luasnip = { cmp_luasnip = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/cmp_luasnip", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/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"
}, },
["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"
}, },
["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 = { neotest = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/moonlight", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neotest",
url = "https://github.com/shaunsingh/moonlight.nvim" url = "https://github.com/nvim-neotest/neotest"
}, },
nerdcommenter = { ["neotest-elixir"] = {
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-elixir",
url = "https://github.com/preservim/nerdcommenter" 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, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/nvim-cmp", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/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"] = {
loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/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"
}, },
orgmode = {
loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/orgmode",
url = "https://github.com/nvim-orgmode/orgmode"
},
["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"
}, },
["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"] = { ["telescope-fzy-native.nvim"] = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim",
url = "https://github.com/nvim-telescope/telescope-fzy-native.nvim" url = "https://github.com/nvim-telescope/telescope-fzy-native.nvim"
}, },
["telescope-project.nvim"] = { ["telescope-project.nvim"] = {
loaded = true, loaded = true,
path = "/Users/halfdan/.local/share/nvim/site/pack/packer/start/telescope-project.nvim", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/telescope-project.nvim",
url = "https://github.com/nvim-telescope/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-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)
_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

View File

@ -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'