mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 03:36:23 +00:00
Compare commits
10 Commits
3d575cd47a
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
c30a121b99 | ||
|
bbece9eade | ||
|
e735b5a167 | ||
|
784a956cf8 | ||
|
d36811ef6f | ||
|
6c380f3a94 | ||
|
49caa17eef | ||
|
5782602a20 | ||
|
814000d6e8 | ||
|
43c2d9f3cd |
@@ -1 +0,0 @@
|
||||
source ~/.asdf/asdf.fish
|
@@ -1,5 +1,6 @@
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
# Commands to run in interactive sessions can go here
|
||||
# atuin init fish | source
|
||||
end
|
||||
function multicd
|
||||
echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../)
|
||||
@@ -8,4 +9,27 @@ abbr --add dotdot --regex '^\.\.+$' --function multicd
|
||||
abbr -a -- gst 'git status'
|
||||
abbr -a -- gca 'git commit --amend'
|
||||
abbr -a -- gpf 'git push -f'
|
||||
abbr -a -- gp 'git pull'
|
||||
abbr -a -- gp 'git push'
|
||||
abbr -a -- gl 'git pull'
|
||||
abbr -a -- gl 'git rebase develop'
|
||||
abbr -a -- gcd 'git checkout develop'
|
||||
abbr -a -- gc- 'git checkout -'
|
||||
abbr -a -- gc 'git checkout'
|
||||
|
||||
abbr -a -- api 'kubectl get pods -n backend | fzf | awk \'{print $1}\' | xargs -o -I {} kubectl exec -i -t -n backend {} --container api -- /opt/app/api/bin/api remote'
|
||||
|
||||
|
||||
function preview_shell
|
||||
set PR $(gh pr status --json number | jq '.currentBranch.number')
|
||||
|
||||
kubectl get pods -n backend | awk '{print $1}' | grep "$PR-api" | head -1 | xargs -o -I {} kubectl exec -i -t -n backend {} --container api -- /opt/app/api/bin/api remote
|
||||
end
|
||||
|
||||
|
||||
function preview_db
|
||||
gh pr status --json number | jq '.currentBranch.number' | xargs -o -I {} devops db connect frameio-pr-{}-cluster
|
||||
end
|
||||
|
||||
function mix_test_changed
|
||||
git status -s | awk '{print $2}' | grep '_test.exs' | xargs mix test
|
||||
end
|
||||
|
@@ -1,14 +1,14 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR fish_color_autosuggestion:4c566a
|
||||
SETUVAR fish_color_autosuggestion:969896
|
||||
SETUVAR fish_color_cancel:\x2d\x2dreverse
|
||||
SETUVAR fish_color_command:81a1c1
|
||||
SETUVAR fish_color_comment:434c5e
|
||||
SETUVAR fish_color_command:b294bb
|
||||
SETUVAR fish_color_comment:f0c674
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:88c0d0
|
||||
SETUVAR fish_color_error:ebcb8b
|
||||
SETUVAR fish_color_end:b294bb
|
||||
SETUVAR fish_color_error:cc6666
|
||||
SETUVAR fish_color_escape:00a6b2
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
@@ -18,9 +18,9 @@ SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:00a6b2
|
||||
SETUVAR fish_color_option:\x1d
|
||||
SETUVAR fish_color_param:eceff4
|
||||
SETUVAR fish_color_quote:a3be8c
|
||||
SETUVAR fish_color_redirection:b48ead
|
||||
SETUVAR fish_color_param:81a2be
|
||||
SETUVAR fish_color_quote:b5bd68
|
||||
SETUVAR fish_color_redirection:8abeb7
|
||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_status:red
|
||||
|
9
.config/k9s/aliases.yaml
Normal file
9
.config/k9s/aliases.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
aliases:
|
||||
dp: deployments
|
||||
sec: v1/secrets
|
||||
jo: jobs
|
||||
cr: clusterroles
|
||||
crb: clusterrolebindings
|
||||
ro: roles
|
||||
rb: rolebindings
|
||||
np: networkpolicies
|
@@ -0,0 +1,4 @@
|
||||
benchmarks:
|
||||
defaults:
|
||||
concurrency: 2
|
||||
requests: 200
|
@@ -0,0 +1,13 @@
|
||||
k9s:
|
||||
cluster: teleport.sharedservices.frame.io
|
||||
namespace:
|
||||
active: backend
|
||||
lockFavorites: false
|
||||
favorites:
|
||||
- backend
|
||||
- default
|
||||
view:
|
||||
active: po
|
||||
featureGates:
|
||||
nodeShell: false
|
||||
portForwardAddress: localhost
|
8
.config/k9s/config.yaml
Normal file
8
.config/k9s/config.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
k9s:
|
||||
liveViewAutoRefresh: false
|
||||
|
||||
ui:
|
||||
headless: false
|
||||
logoless: true
|
||||
crumbsless: true
|
||||
|
49
.config/kitty/keymap.conf
Normal file
49
.config/kitty/keymap.conf
Normal file
@@ -0,0 +1,49 @@
|
||||
# Window
|
||||
map ctrl+\ new_window_with_cwd
|
||||
|
||||
# Tab
|
||||
map ctrl+1 goto_tab 1
|
||||
map ctrl+2 goto_tab 2
|
||||
map ctrl+3 goto_tab 3
|
||||
map ctrl+4 goto_tab 4
|
||||
map ctrl+t new_tab
|
||||
map ctrl+w close_tab
|
||||
|
||||
# Supper power keys
|
||||
map ctrl+; kitten toggle_term.py
|
||||
|
||||
# kitty-scrollback.nvim Kitten alias
|
||||
# action_alias kitty_scrollback_nvim kitten /home/tieu/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
|
||||
|
||||
# Browse scrollback buffer in nvim
|
||||
map kitty_mod+h kitty_scrollback_nvim
|
||||
# Browse output of the last shell command in nvim
|
||||
map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
||||
# Show clicked command output in nvim
|
||||
# mouse_map ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
|
||||
|
||||
# ----------
|
||||
# smart-split
|
||||
map ctrl+j neighboring_window down
|
||||
map ctrl+k neighboring_window up
|
||||
map ctrl+h neighboring_window left
|
||||
map ctrl+l neighboring_window right
|
||||
|
||||
# Unset the mapping to pass the keys to neovim
|
||||
map --when-focus-on var:IS_NVIM ctrl+j
|
||||
map --when-focus-on var:IS_NVIM ctrl+k
|
||||
map --when-focus-on var:IS_NVIM ctrl+h
|
||||
map --when-focus-on var:IS_NVIM ctrl+l
|
||||
|
||||
# the 3 here is the resize amount, adjust as needed
|
||||
map alt+j kitten relative_resize.py down 3
|
||||
map alt+k kitten relative_resize.py up 3
|
||||
map alt+h kitten relative_resize.py left 3
|
||||
map alt+l kitten relative_resize.py right 3
|
||||
|
||||
map --when-focus-on var:IS_NVIM alt+j
|
||||
map --when-focus-on var:IS_NVIM alt+k
|
||||
map --when-focus-on var:IS_NVIM alt+h
|
||||
map --when-focus-on var:IS_NVIM alt+l
|
||||
|
||||
map f1 launch_tab nvim
|
21
.config/kitty/kitty.conf
Normal file
21
.config/kitty/kitty.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
font_size 15
|
||||
window_padding_width 1
|
||||
background_opacity 1
|
||||
|
||||
font_family JetBrainsMono Nerd Font Mono
|
||||
|
||||
tab_bar_edge top
|
||||
tab_bar_style separator
|
||||
tab_separator " "
|
||||
tab_title_template " {index} {title[-20:]} {bell_symbol}"
|
||||
|
||||
remember_window_size yes
|
||||
|
||||
allow_remote_control yes
|
||||
listen_on unix:@mykitty
|
||||
|
||||
#include theme.conf
|
||||
include rose_pine.conf
|
||||
include keymap.conf
|
||||
|
||||
shell_integration enabled
|
53
.config/kitty/rose_pine.conf
Normal file
53
.config/kitty/rose_pine.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
## name: Rosé Pine
|
||||
## author: mvllow
|
||||
## license: MIT
|
||||
## upstream: https://github.com/rose-pine/kitty/blob/main/dist/rose-pine.conf
|
||||
## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist
|
||||
|
||||
foreground #e0def4
|
||||
background #191724
|
||||
selection_foreground #e0def4
|
||||
selection_background #403d52
|
||||
|
||||
cursor #524f67
|
||||
cursor_text_color #e0def4
|
||||
|
||||
url_color #c4a7e7
|
||||
|
||||
active_tab_foreground #e0def4
|
||||
active_tab_background #26233a
|
||||
inactive_tab_foreground #6e6a86
|
||||
inactive_tab_background #191724
|
||||
|
||||
# black
|
||||
color0 #26233a
|
||||
color8 #6e6a86
|
||||
|
||||
# red
|
||||
color1 #eb6f92
|
||||
color9 #eb6f92
|
||||
|
||||
# green
|
||||
color2 #31748f
|
||||
color10 #31748f
|
||||
|
||||
# yellow
|
||||
color3 #f6c177
|
||||
color11 #f6c177
|
||||
|
||||
# blue
|
||||
color4 #9ccfd8
|
||||
color12 #9ccfd8
|
||||
|
||||
# magenta
|
||||
color5 #c4a7e7
|
||||
color13 #c4a7e7
|
||||
|
||||
# cyan
|
||||
color6 #ebbcba
|
||||
color14 #ebbcba
|
||||
|
||||
# white
|
||||
color7 #e0def4
|
||||
color15 #e0def4
|
||||
|
49
.config/kitty/theme.conf
Normal file
49
.config/kitty/theme.conf
Normal file
@@ -0,0 +1,49 @@
|
||||
# gruvbox dark by morhetz, https://github.com/morhetz/gruvbox
|
||||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see https://opensource.org/licenses/MIT.
|
||||
|
||||
background #282828
|
||||
foreground #ebdbb2
|
||||
|
||||
cursor #928374
|
||||
|
||||
selection_foreground #928374
|
||||
selection_background #3c3836
|
||||
|
||||
color0 #282828
|
||||
color8 #928374
|
||||
|
||||
# red
|
||||
color1 #cc241d
|
||||
# light red
|
||||
color9 #fb4934
|
||||
|
||||
# green
|
||||
color2 #98971a
|
||||
# light green
|
||||
color10 #b8bb26
|
||||
|
||||
# yellow
|
||||
color3 #d79921
|
||||
# light yellow
|
||||
color11 #fabd2d
|
||||
|
||||
# blue
|
||||
color4 #458588
|
||||
# light blue
|
||||
color12 #83a598
|
||||
|
||||
# magenta
|
||||
color5 #b16286
|
||||
# light magenta
|
||||
color13 #d3869b
|
||||
|
||||
# cyan
|
||||
color6 #689d6a
|
||||
# lighy cyan
|
||||
color14 #8ec07c
|
||||
|
||||
# light gray
|
||||
color7 #a89984
|
||||
# dark gray
|
||||
color15 #928374
|
33
.config/kitty/toggle_term.py
Normal file
33
.config/kitty/toggle_term.py
Normal file
@@ -0,0 +1,33 @@
|
||||
from kittens.tui.handler import result_handler
|
||||
|
||||
|
||||
def main(args):
|
||||
pass
|
||||
|
||||
|
||||
def toggle_term(boss):
|
||||
tab = boss.active_tab
|
||||
|
||||
all_another_wins = tab.all_window_ids_except_active_window
|
||||
have_only_one = len(all_another_wins) == 0
|
||||
|
||||
if have_only_one:
|
||||
boss.launch('--cwd=current', '--location=hsplit')
|
||||
tab.neighboring_window("bottom")
|
||||
else:
|
||||
if tab.current_layout.name == 'stack':
|
||||
tab.last_used_layout()
|
||||
tab.neighboring_window("bottom")
|
||||
else:
|
||||
tab.neighboring_window("top")
|
||||
tab.goto_layout('stack')
|
||||
|
||||
|
||||
@result_handler(no_ui=True)
|
||||
def handle_result(args, result, target_window_id, boss):
|
||||
window = boss.window_id_map.get(target_window_id)
|
||||
|
||||
if window is None:
|
||||
return
|
||||
|
||||
toggle_term(boss)
|
@@ -1,13 +0,0 @@
|
||||
local elixir = require("elixir")
|
||||
|
||||
elixir.setup {
|
||||
nextls = {
|
||||
enable = true, -- defaults to false
|
||||
},
|
||||
credo = {
|
||||
enable = false, -- defaults to true
|
||||
},
|
||||
elixirls = {
|
||||
enable = false,
|
||||
}
|
||||
}
|
@@ -1,120 +0,0 @@
|
||||
if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
local Worktree = require("git-worktree")
|
||||
local Job = require("plenary.job")
|
||||
local FTerm = require("FTerm")
|
||||
|
||||
local function file_exists(name)
|
||||
local f=io.open(name,"r")
|
||||
if f~=nil then io.close(f) return true else return false end
|
||||
end
|
||||
|
||||
local function schedule_notify(message, level)
|
||||
vim.schedule(function()
|
||||
vim.notify.notify(message, level or "info")
|
||||
end)
|
||||
end
|
||||
|
||||
local function is_elixir_project()
|
||||
return file_exists(vim.loop.cwd() .. "/" .. "mix.exs")
|
||||
end
|
||||
|
||||
-- Run mix compile
|
||||
local compile_job = Job:new({
|
||||
command = "mix",
|
||||
args = { "compile" },
|
||||
on_start = function()
|
||||
schedule_notify("Compiling...", "debug")
|
||||
end,
|
||||
on_exit = function(_j, _return_val)
|
||||
schedule_notify("Compiling done")
|
||||
end
|
||||
})
|
||||
|
||||
-- Run mix deps.get
|
||||
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
|
||||
})
|
||||
|
||||
local function create_docker_up_job(path)
|
||||
return Job:new({
|
||||
command = "docker-compose",
|
||||
args = { "up" },
|
||||
cwd = path,
|
||||
detached = true,
|
||||
on_start = function ()
|
||||
schedule_notify("Running docker in " .. path, "debug")
|
||||
end,
|
||||
on_exit = function (_j, return_val)
|
||||
if return_val ~= 0 then
|
||||
schedule_notify("Error running docker for " .. path, "error")
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
local function create_docker_down_job(path)
|
||||
return Job:new({
|
||||
command = "docker-compose",
|
||||
args = { "down" },
|
||||
cwd = path,
|
||||
on_start = function ()
|
||||
schedule_notify("Shutting down containers at " .. path, "debug")
|
||||
end,
|
||||
on_exit = function ()
|
||||
schedule_notify("Shut down containers at " .. path, "debug")
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
local iex = FTerm:new({
|
||||
cmd = { "iex", "-S", "mix" },
|
||||
dimensions = {
|
||||
height = 0.9,
|
||||
width = 0.9
|
||||
}
|
||||
})
|
||||
|
||||
vim.keymap.set('t', '<A-t>', function ()
|
||||
iex:toggle()
|
||||
end)
|
||||
vim.keymap.set('n', '<A-t>', function ()
|
||||
iex:toggle()
|
||||
end)
|
||||
|
||||
Worktree.on_tree_change(function(op, metadata)
|
||||
if op == Worktree.Operations.Create and is_elixir_project() then
|
||||
deps_job:and_then(compile_job)
|
||||
deps_job:start()
|
||||
end
|
||||
|
||||
if op == Worktree.Operations.Switch and is_elixir_project() then
|
||||
local docker_down = create_docker_down_job(metadata.prev_path)
|
||||
local docker_up = create_docker_up_job(metadata.path)
|
||||
|
||||
docker_down:and_then(docker_up)
|
||||
compile_job:start()
|
||||
docker_down:start()
|
||||
|
||||
iex:close(true)
|
||||
end
|
||||
end)
|
||||
|
||||
local group = vim.api.nvim_create_augroup('MyCustomNeogitEvents', { clear = true })
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'NeogitPullComplete',
|
||||
group = group,
|
||||
callback = function ()
|
||||
deps_job:and_then(compile_job)
|
||||
deps_job:start()
|
||||
end,
|
||||
})
|
@@ -1,39 +0,0 @@
|
||||
if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
local nnoremap = require('halfdan.keymap').nnoremap
|
||||
local actions = require("telescope.actions")
|
||||
local action_state = require "telescope.actions.state"
|
||||
local worktree = require("git-worktree")
|
||||
|
||||
local function create_workspace_for_issue()
|
||||
require'telescope'.extensions.jira.live_search({
|
||||
attach_mappings =function ()
|
||||
actions.select_default:replace(
|
||||
function ()
|
||||
local selection = action_state.get_selected_entry()
|
||||
local branch_name = "fb/" .. selection.key:lower()
|
||||
vim.schedule(function ()
|
||||
-- Create worktree
|
||||
worktree.create_worktree(branch_name, branch_name, "origin")
|
||||
|
||||
end)
|
||||
end
|
||||
)
|
||||
return true
|
||||
end,
|
||||
assignee = "fbecker@adobe.com",
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
nnoremap("<leader>jw", function ()
|
||||
create_workspace_for_issue()
|
||||
end)
|
||||
|
||||
nnoremap("<leader>js", function ()
|
||||
require'telescope'.extensions.jira.live_search({
|
||||
project="BES"
|
||||
})
|
||||
end)
|
@@ -3,6 +3,7 @@ local Remap = require("halfdan.keymap")
|
||||
local nnoremap = Remap.nnoremap
|
||||
local vnoremap = Remap.vnoremap
|
||||
local inoremap = Remap.inoremap
|
||||
local tnoremap = Remap.tnoremap
|
||||
local xnoremap = Remap.xnoremap
|
||||
local nmap = Remap.nmap
|
||||
|
||||
@@ -38,11 +39,23 @@ nnoremap('<A-l>', '<C-w>l')
|
||||
nnoremap('<leader>th', '<C-w>t<C-w>H')
|
||||
nnoremap('<leader>tk', '<C-w>t<C-w>K')
|
||||
|
||||
nnoremap("<leader>\\", ":vsplit<CR>")
|
||||
nnoremap("<leader>/", ":split<CR>")
|
||||
|
||||
-- Keybindings below this are neovim cli only
|
||||
if vim.g.vscode then
|
||||
-- Toggle Comment
|
||||
vim.keymap.set('x', 'gc', '<Plug>VSCodeCommentary', {})
|
||||
vim.keymap.set('n', 'gc', '<Plug>VSCodeCommentary', {})
|
||||
vim.keymap.set('o', 'gc', '<Plug>VSCodeCommentary', {})
|
||||
vim.keymap.set('n', 'gcc', '<Plug>VSCodeCommentaryLine', {})
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
tnoremap('<ESC>', '<C-\\><C-n>')
|
||||
|
||||
nnoremap('<C-B>', ':Neotree right toggle<CR>')
|
||||
-- resize with arrows
|
||||
nnoremap('<C-Up>', ':resize -2<CR>')
|
||||
nnoremap('<C-Down>', ':resize +2<CR>')
|
||||
@@ -65,6 +78,16 @@ nnoremap('<S-TAB>', ':bprevious<CR>')
|
||||
nnoremap('[q', ':cprev<CR>')
|
||||
nnoremap(']q', ':cnext<CR>')
|
||||
|
||||
-- no arrow keys
|
||||
nnoremap("<up>", "<nop>")
|
||||
nnoremap("<down>", "<nop>")
|
||||
nnoremap("<left>", "<nop>")
|
||||
nnoremap("<right>", "<nop>")
|
||||
|
||||
inoremap("<up>", "<nop>")
|
||||
inoremap("<down>", "<nop>")
|
||||
inoremap("<left>", "<nop>")
|
||||
inoremap("<right>", "<nop>")
|
||||
|
||||
-- Tagbar
|
||||
nnoremap('<Leader>hl', ':nohl<CR>')
|
||||
|
@@ -83,11 +83,43 @@ vim.lsp.protocol.CompletionItemKind = {
|
||||
vim.api.nvim_set_keymap('n', '<leader>e', '<cmd>Lspsaga show_line_diagnostics<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
|
||||
local lsp_status = require('lsp-status')
|
||||
lsp_status.register_progress()
|
||||
-- Global mappings.
|
||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
|
||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
|
||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
|
||||
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist)
|
||||
|
||||
local lspconfig = require 'lspconfig'
|
||||
-- Use LspAttach autocommand to only map the following keys
|
||||
-- after the language server attaches to the current buffer
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||
callback = function(ev)
|
||||
-- Enable completion triggered by <c-x><c-o>
|
||||
vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc'
|
||||
|
||||
-- Buffer local mappings.
|
||||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||
local opts = { buffer = ev.buf }
|
||||
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts)
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
||||
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, opts)
|
||||
vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, opts)
|
||||
vim.keymap.set('n', '<space>wa', vim.lsp.buf.add_workspace_folder, opts)
|
||||
vim.keymap.set('n', '<space>wr', vim.lsp.buf.remove_workspace_folder, opts)
|
||||
vim.keymap.set('n', '<space>wl', function()
|
||||
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
||||
end, opts)
|
||||
vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, opts)
|
||||
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, opts)
|
||||
vim.keymap.set({ 'n', 'v' }, '<space>ca', vim.lsp.buf.code_action, opts)
|
||||
vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts)
|
||||
vim.keymap.set('n', '<space>f', function()
|
||||
vim.lsp.buf.format { async = true }
|
||||
end, opts)
|
||||
end,
|
||||
})
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
nnoremap("gd", "<cmd>Lspsaga peek_definition<CR>")
|
||||
@@ -110,111 +142,54 @@ local on_attach = function(client, bufnr)
|
||||
lsp_status.on_attach(client, bufnr)
|
||||
end
|
||||
|
||||
local function config(_config)
|
||||
_config = vim.tbl_deep_extend("force", {
|
||||
log_level = vim.lsp.protocol.MessageType.Log,
|
||||
message_level = vim.lsp.protocol.MessageType.Log,
|
||||
capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||
on_attach = on_attach,
|
||||
}, _config or {})
|
||||
|
||||
-- Set default client capabilities plus window/workDoneProgress
|
||||
_config.capabilities = vim.tbl_extend('keep', _config.capabilities or {}, lsp_status.capabilities)
|
||||
|
||||
return _config
|
||||
end
|
||||
|
||||
local elixir = require("elixir")
|
||||
local elixirls = require("elixir.elixirls")
|
||||
|
||||
elixir.setup {
|
||||
credo = {},
|
||||
elixirls = {
|
||||
enabled = true,
|
||||
settings = elixirls.settings {
|
||||
dialyzerEnabled = false,
|
||||
enableTestLenses = false,
|
||||
},
|
||||
on_attach = function(client, bufnr)
|
||||
vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("n", "<space>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("v", "<space>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
|
||||
end,
|
||||
}
|
||||
}
|
||||
-- local elixir = require('elixir')
|
||||
-- elixir.setup(config({
|
||||
-- -- 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 = {"/opt/elixir-ls/rel/language_server.sh"},
|
||||
-- settings = elixir.settings({
|
||||
-- dialyzerEnabled = true,
|
||||
-- fetchDeps = false,
|
||||
-- enableTestLenses = true,
|
||||
-- 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
|
||||
local servers = { 'gopls', 'julials', 'rust_analyzer', 'pyright' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup(config())
|
||||
end
|
||||
|
||||
require'lspconfig'.lua_ls.setup {
|
||||
vim.lsp.config("lua_ls", {
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT',
|
||||
-- Tell the language server which version of Lua you're using
|
||||
version = "LuaJIT",
|
||||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
globals = {'vim'},
|
||||
globals = { "vim" },
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
},
|
||||
-- Do not send telemetry data containing a randomized but unique identifier
|
||||
telemetry = {
|
||||
-- Do not send telemetry data containing a randomized but unique identifier
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
require('rust-tools').setup({
|
||||
tools = {
|
||||
runnables = {
|
||||
use_telescope = true,
|
||||
},
|
||||
inlay_hints = {
|
||||
auto = true,
|
||||
parameter_hints_prefix = "",
|
||||
other_hints_prefix = "",
|
||||
}
|
||||
},
|
||||
server = {
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
checkOnSave = {
|
||||
command = "clippy",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- Enable it
|
||||
vim.lsp.enable("lua_ls")
|
||||
|
||||
vim.lsp.config('gopls', {
|
||||
cmd = { "gopls" },
|
||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
||||
root_markers = { "go.work", "go.mod", ".git" },
|
||||
settings = {
|
||||
gopls = {
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
shadow = true,
|
||||
},
|
||||
staticcheck = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
vim.lsp.enable 'gopls'
|
||||
|
||||
vim.lsp.config('expert', {
|
||||
cmd = { 'expert' },
|
||||
root_markers = { 'mix.exs', '.git' },
|
||||
filetypes = { 'elixir', 'eelixir', 'heex' },
|
||||
})
|
||||
|
||||
vim.lsp.enable 'expert'
|
||||
vim.lsp.enable 'gleam'
|
||||
|
@@ -1,62 +0,0 @@
|
||||
if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
local saga = require 'lspsaga'
|
||||
saga.setup({
|
||||
-- symbols in winbar
|
||||
-- symbol_in_winbar = {
|
||||
-- enable = true,
|
||||
-- click_support = true,
|
||||
-- show_file = true,
|
||||
-- in_custom = true,
|
||||
-- },
|
||||
})
|
||||
|
||||
local function get_file_name(include_path)
|
||||
local file_name = require('lspsaga.symbolwinbar').get_file_name()
|
||||
if vim.fn.bufname '%' == '' then return '' end
|
||||
if include_path == false then return file_name end
|
||||
-- Else if include path: ./lsp/saga.lua -> lsp > saga.lua
|
||||
local sep = vim.loop.os_uname().sysname == 'Windows' and '\\' or '/'
|
||||
local path_list = vim.split(string.gsub(vim.fn.expand '%:~:.:h', '%%', ''), sep)
|
||||
local file_path = ''
|
||||
for _, cur in ipairs(path_list) do
|
||||
file_path = (cur == '.' or cur == '~') and '' or
|
||||
file_path .. cur .. ' ' .. '%#LspSagaWinbarSep#>%*' .. ' %*'
|
||||
end
|
||||
return file_path .. file_name
|
||||
end
|
||||
|
||||
local function config_winbar()
|
||||
local exclude = {
|
||||
['teminal'] = true,
|
||||
['toggleterm'] = true,
|
||||
['prompt'] = true,
|
||||
['NvimTree'] = true,
|
||||
['help'] = true,
|
||||
} -- Ignore float windows and exclude filetype
|
||||
if vim.api.nvim_win_get_config(0).zindex or exclude[vim.bo.filetype] then
|
||||
vim.wo.winbar = ''
|
||||
else
|
||||
local ok, lspsaga = pcall(require, 'lspsaga.symbolwinbar')
|
||||
local sym
|
||||
if ok then sym = lspsaga.get_symbol_node() end
|
||||
local win_val = ''
|
||||
win_val = get_file_name(true) -- set to true to include path
|
||||
if sym ~= nil then win_val = win_val .. sym end
|
||||
vim.wo.winbar = win_val
|
||||
end
|
||||
end
|
||||
|
||||
-- local events = { 'BufEnter', 'BufWinEnter', 'CursorMoved' }
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd(events, {
|
||||
-- pattern = '*',
|
||||
-- callback = function() config_winbar() end,
|
||||
-- })
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd('User', {
|
||||
-- pattern = 'LspsagaUpdateSymbol',
|
||||
-- callback = function() config_winbar() end,
|
||||
-- })
|
@@ -1,7 +0,0 @@
|
||||
if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
require("luasnip/loaders/from_vscode").lazy_load()
|
||||
-- Load ows snippets
|
||||
require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./snippets" } })
|
@@ -1,16 +0,0 @@
|
||||
if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
local ok, nls = pcall(require, 'null-ls')
|
||||
|
||||
if not ok then
|
||||
return
|
||||
end
|
||||
|
||||
nls.setup({
|
||||
sources = {
|
||||
nls.builtins.formatting.stylua,
|
||||
nls.builtins.diagnostics.credo,
|
||||
},
|
||||
})
|
@@ -7,7 +7,8 @@ local nnoremap = Remap.nnoremap
|
||||
local builtin = require("telescope.builtin")
|
||||
|
||||
nnoremap("<leader>gg", function()
|
||||
builtin.live_grep()
|
||||
-- builtin.live_grep()
|
||||
require "telescope".extensions.egrepify.egrepify { sorting_strategy = 'ascending' }
|
||||
end)
|
||||
nnoremap("<C-p>", function()
|
||||
builtin.commands()
|
||||
@@ -36,12 +37,6 @@ nnoremap("<leader>vh", function()
|
||||
builtin.help_tags()
|
||||
end)
|
||||
|
||||
nnoremap("<leader>wc", function()
|
||||
require('telescope').extensions.git_worktree.create_git_worktree()
|
||||
end)
|
||||
nnoremap("<leader>ws", function()
|
||||
require('telescope').extensions.git_worktree.git_worktrees()
|
||||
end)
|
||||
nnoremap("<leader>gc", function()
|
||||
builtin.git_branches()
|
||||
end)
|
||||
|
68
.config/nvim/lazy-lock.json
Normal file
68
.config/nvim/lazy-lock.json
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||
"FTerm.nvim": { "branch": "master", "commit": "d1320892cc2ebab472935242d9d992a2c9570180" },
|
||||
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
|
||||
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d126061b624e0af6c3a556428712dd4d4194ec6d" },
|
||||
"cmp-git": { "branch": "main", "commit": "b24309c386c9666c549a1abaedd4956541676d06" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" },
|
||||
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
|
||||
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||
"editorconfig-vim": { "branch": "master", "commit": "6a58b7c11f79c0e1d0f20533b3f42f2a11490cf8" },
|
||||
"fzf-lua": { "branch": "main", "commit": "f6a570cc42596efb73359fc453061e24abb71d9f" },
|
||||
"git-blame.nvim": { "branch": "master", "commit": "8503b199edf9a666fe7b1a989cf14e3c26b2eb03" },
|
||||
"gruvbox-baby": { "branch": "main", "commit": "bd52e62d8134647090108189e69c8b3cd18bdbbf" },
|
||||
"harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||
"lsp-status.nvim": { "branch": "master", "commit": "54f48eb5017632d81d0fd40112065f1d062d0629" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" },
|
||||
"lspsaga.nvim": { "branch": "main", "commit": "8efe00d6aed9db6449969f889170f1a7e43101a1" },
|
||||
"lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "f1deac7ecec88c28a250d890ba7bb35843e69cbd" },
|
||||
"neogit": { "branch": "master", "commit": "4046f747739cf7e7b9aada447f3edc59c947b111" },
|
||||
"neorg": { "branch": "main", "commit": "e206c9642f4a115cd836e76c98ef785623d335bc" },
|
||||
"neorg-telescope": { "branch": "main", "commit": "7fb6ca6a632c3c095601d379a664c0c1f802dc6c" },
|
||||
"neotest": { "branch": "master", "commit": "35a59c1f59dbb954d92b74ab64a966a668cea495" },
|
||||
"neotest-elixir": { "branch": "master", "commit": "a242aebeaa6997c1c149138ff77f6cacbe33b6fc" },
|
||||
"neotest-go": { "branch": "main", "commit": "92950ad7be2ca02a41abca5c6600ff6ffaf5b5d6" },
|
||||
"neotest-rust": { "branch": "main", "commit": "2c9941d4a358839918fac21d20fc8fef0e1ad05f" },
|
||||
"neotest-vim-test": { "branch": "master", "commit": "75c4228882ae4883b11bfce9b8383e637eb44192" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||
"nvim-dap": { "branch": "master", "commit": "7891b01beedc37cef4eaf2e92563bd0a5b6e9c58" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
||||
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-notify": { "branch": "master", "commit": "397c7c1184745fca649e5104de659e6392ef5a4d" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "6e51ca170563330e063720449c21f43e27ca0bc1" },
|
||||
"outline.nvim": { "branch": "main", "commit": "0eb9289ab39c91caf8b3ed0e3a17764809d69558" },
|
||||
"pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" },
|
||||
"playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
|
||||
"rose-pine": { "branch": "main", "commit": "72a04c4065345b51b56aed4859ea1d884f734097" },
|
||||
"rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" },
|
||||
"rustaceanvim": { "branch": "master", "commit": "12504405821c05874d2d1f6b5ec919f9808e2c99" },
|
||||
"smart-open.nvim": { "branch": "0.2.x", "commit": "560d8f16e17977c8303db6f9660db58a4415ca41" },
|
||||
"sqlite.lua": { "branch": "master", "commit": "50092d60feb242602d7578398c6eb53b4a8ffe7b" },
|
||||
"tagbar": { "branch": "master", "commit": "2ef4ecba94440fcf8a8c692a0f2b36b332f1f0f2" },
|
||||
"telescope-dap.nvim": { "branch": "master", "commit": "783366bd6c1e7fa0a5c59c07db37f49c805a28df" },
|
||||
"telescope-egrepify.nvim": { "branch": "master", "commit": "8da5e3ba5faf3bdd6bbfaccb3eb3b8e7ebf9b131" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
||||
"vim-dispatch": { "branch": "master", "commit": "a2ff28abdb2d89725192db5b8562977d392a4d3f" },
|
||||
"vim-easy-align": { "branch": "master", "commit": "9815a55dbcd817784458df7a18acacc6f82b1241" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
|
||||
"vim-gitgutter": { "branch": "main", "commit": "488c0555e47e2aabe273c635f7dd233e985311a6" },
|
||||
"vim-highlightedyank": { "branch": "master", "commit": "285a61425e79742997bbde76a91be6189bc988fb" },
|
||||
"vim-projectionist": { "branch": "master", "commit": "5ff7bf79a6ef741036d2038a226bcb5f8b1cd296" },
|
||||
"vim-sneak": { "branch": "master", "commit": "18b1faf020e6a66c1ce09b3ff5e6b6feb182973b" },
|
||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||
"vim-test": { "branch": "master", "commit": "8c76f6c0953edaa13a37c29ac9c6a7bb56ddce89" }
|
||||
}
|
@@ -1 +1,10 @@
|
||||
local vim = vim
|
||||
local api = vim.api
|
||||
|
||||
vim.cmd([[autocmd TermOpen * setlocal nonumber norelativenumber]])
|
||||
|
||||
local format_group = api.nvim_create_augroup("FormatGroup", { clear = true })
|
||||
api.nvim_create_autocmd(
|
||||
{ "BufWinEnter", "BufReadPost" },
|
||||
{ pattern = "*", command = "normal zR", group = format_group }
|
||||
)
|
||||
|
@@ -6,8 +6,6 @@ local source_mapping = {
|
||||
nvim_lsp = "[LSP]",
|
||||
nvim_lua = "[Lua]",
|
||||
path = "[Path]",
|
||||
luasnip = "[Snippet]",
|
||||
jira = "[Jira]",
|
||||
}
|
||||
|
||||
local has_words_before = function()
|
||||
@@ -21,25 +19,26 @@ cmp.setup({
|
||||
preselect = cmp.PreselectMode.None,
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require'luasnip'.lsp_expand(args.body)
|
||||
vim.snippet.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 {
|
||||
["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
|
||||
["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
|
||||
["<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
|
||||
select = false, -- only confirm 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 vim.snippet.active({ direction = 1 }) then
|
||||
vim.snippet.jump(1)
|
||||
elseif has_words_before() then
|
||||
cmp.complete()
|
||||
else
|
||||
@@ -50,33 +49,34 @@ cmp.setup({
|
||||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
elseif require'luasnip'.jumpable(-1) then
|
||||
require'luasnip'.jump(-1)
|
||||
elseif vim.snippet.active({ direction = -1 }) then
|
||||
vim.snippet.jump(-1)
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { "i", "s" })
|
||||
end, { "i", "s" }),
|
||||
},
|
||||
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = "nvim_lsp" },
|
||||
}, {
|
||||
{ name = 'buffer'}
|
||||
{ name = "buffer" },
|
||||
}),
|
||||
|
||||
formatting = {
|
||||
format = function(entry, vim_item)
|
||||
vim_item.kind = lspkind.presets.default[vim_item.kind]
|
||||
local menu = source_mapping[entry.source.name]
|
||||
vim_item.menu = menu
|
||||
return vim_item
|
||||
end
|
||||
end,
|
||||
},
|
||||
|
||||
experimental = {
|
||||
ghost_text = false,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline({ '/', '?' }, {
|
||||
sources = {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
vim.cmd('let g:nvcode_termcolors=256')
|
||||
|
||||
vim.cmd('colorscheme ' .. O.colorscheme)
|
||||
vim.cmd('colorscheme rose-pine')
|
||||
|
||||
-- vim.cmd('highlight Normal guibg=NONE ctermbg=NONE')
|
||||
|
@@ -6,7 +6,7 @@ O = {
|
||||
clipboard = 'unnamedplus',
|
||||
incsearch = true,
|
||||
termguicolors = true,
|
||||
colorscheme = 'monokaipro',
|
||||
colorscheme = 'monokai-pro',
|
||||
hidden_files = true,
|
||||
wrap_lines = false,
|
||||
number = true,
|
||||
|
125
.config/nvim/lua/halfdan/icons.lua
Normal file
125
.config/nvim/lua/halfdan/icons.lua
Normal file
@@ -0,0 +1,125 @@
|
||||
return {
|
||||
diagnostics = {
|
||||
error = "",
|
||||
warn = "",
|
||||
hint = "",
|
||||
info = "",
|
||||
},
|
||||
git = {
|
||||
added = "",
|
||||
modified = "",
|
||||
removed = "",
|
||||
renamed = "➜",
|
||||
untracked = "",
|
||||
ignored = "",
|
||||
unstaged = "U",
|
||||
staged = "",
|
||||
conflict = "",
|
||||
deleted = "",
|
||||
},
|
||||
gitsigns = {
|
||||
add = "┃",
|
||||
change = "┋",
|
||||
delete = "",
|
||||
topdelhfe = "",
|
||||
changedelete = "┃",
|
||||
untracked = "┃",
|
||||
},
|
||||
kinds = {
|
||||
Array = "",
|
||||
Boolean = "",
|
||||
Class = "",
|
||||
Color = "",
|
||||
Constant = "",
|
||||
Constructor = "",
|
||||
Copilot = "",
|
||||
Enum = "",
|
||||
EnumMember = "",
|
||||
Event = "",
|
||||
Field = "",
|
||||
File = "",
|
||||
Folder = "",
|
||||
Function = "",
|
||||
Interface = "",
|
||||
Key = "",
|
||||
Keyword = "",
|
||||
Method = "",
|
||||
Module = "",
|
||||
Namespace = "",
|
||||
Null = "",
|
||||
Number = "",
|
||||
Object = "",
|
||||
Operator = "",
|
||||
Package = "",
|
||||
Property = "",
|
||||
Reference = "",
|
||||
Snippet = "",
|
||||
String = "",
|
||||
Struct = "",
|
||||
Text = "",
|
||||
TypeParameter = "",
|
||||
Unit = "",
|
||||
Value = "",
|
||||
Variable = "",
|
||||
Macro = "", -- Macro
|
||||
},
|
||||
borders = {
|
||||
--- @class BorderIcons
|
||||
single = {
|
||||
top = "─",
|
||||
right = "│",
|
||||
bottom = "─",
|
||||
left = "│",
|
||||
top_left = "╭",
|
||||
top_right = "╮",
|
||||
bottom_right = "╯",
|
||||
bottom_left = "╰",
|
||||
},
|
||||
double = {
|
||||
top = '═',
|
||||
right = "║",
|
||||
bottom = '═',
|
||||
left = "║",
|
||||
top_left = "╔",
|
||||
top_right = "╗",
|
||||
bottom_right = "╝",
|
||||
bottom_left = "╚",
|
||||
},
|
||||
--- @class BorderIcons
|
||||
thin = {
|
||||
top = "▔",
|
||||
right = "▕",
|
||||
bottom = "▁",
|
||||
left = "▏",
|
||||
top_left = "🭽",
|
||||
top_right = "🭾",
|
||||
bottom_right = "🭿",
|
||||
bottom_left = "🭼",
|
||||
},
|
||||
---@type BorderIcons
|
||||
empty = {
|
||||
top = " ",
|
||||
right = " ",
|
||||
bottom = " ",
|
||||
left = " ",
|
||||
top_left = " ",
|
||||
top_right = " ",
|
||||
bottom_right = " ",
|
||||
bottom_left = " ",
|
||||
},
|
||||
---@type BorderIcons
|
||||
thick = {
|
||||
top = "▄",
|
||||
right = "█",
|
||||
bottom = "▀",
|
||||
left = "█",
|
||||
top_left = "▄",
|
||||
top_right = "▄",
|
||||
bottom_right = "▀",
|
||||
bottom_left = "▀",
|
||||
},
|
||||
},
|
||||
misc = {
|
||||
codeium = " ",
|
||||
},
|
||||
}
|
@@ -1,21 +1,16 @@
|
||||
require("halfdan.packer")
|
||||
|
||||
require("halfdan.settings")
|
||||
|
||||
if vim.g.vscode then
|
||||
-- VSCode extension
|
||||
else
|
||||
-- ordinary Neovim
|
||||
require("halfdan.lazy")
|
||||
vim.notify = require("notify")
|
||||
|
||||
require("impatient")
|
||||
|
||||
require("halfdan.neogit")
|
||||
require("halfdan.neorg")
|
||||
require('halfdan.globals')
|
||||
-- require('halfdan.globals')
|
||||
require('halfdan.keymap')
|
||||
require('halfdan.cmp')
|
||||
require('halfdan.luasnip')
|
||||
require('halfdan.colorscheme')
|
||||
require('halfdan.treesitter')
|
||||
require('halfdan.telescope')
|
||||
|
@@ -16,5 +16,6 @@ M.nnoremap = bind("n")
|
||||
M.vnoremap = bind("v")
|
||||
M.xnoremap = bind("x")
|
||||
M.inoremap = bind("i")
|
||||
M.tnoremap = bind("t")
|
||||
|
||||
return M
|
||||
|
312
.config/nvim/lua/halfdan/lazy.lua
Normal file
312
.config/nvim/lua/halfdan/lazy.lua
Normal file
@@ -0,0 +1,312 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
if vim.g.vscode then
|
||||
return
|
||||
end
|
||||
|
||||
require("lazy").setup({
|
||||
{
|
||||
"NeogitOrg/neogit",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim", -- required
|
||||
"nvim-telescope/telescope.nvim", -- optional
|
||||
"sindrets/diffview.nvim", -- optional
|
||||
"ibhagwan/fzf-lua", -- optional
|
||||
},
|
||||
config = true
|
||||
},
|
||||
{'airblade/vim-gitgutter'},
|
||||
|
||||
-- Load .editorconfig files
|
||||
{'editorconfig/editorconfig-vim'},
|
||||
|
||||
{'junegunn/vim-easy-align'},
|
||||
|
||||
-- Goodies
|
||||
{'tpope/vim-fugitive'},
|
||||
{'tpope/vim-surround'}, -- ✅
|
||||
{'tpope/vim-dispatch'},
|
||||
|
||||
-- Treesitter
|
||||
{
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
},
|
||||
{ 'nvim-treesitter/playground', after = 'nvim-treesitter' },
|
||||
{ 'nvim-treesitter/nvim-treesitter-textobjects', after = 'nvim-treesitter' },
|
||||
|
||||
-- Testing
|
||||
{'vim-test/vim-test'},
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"nvim-neotest/nvim-nio",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"antoinemadec/FixCursorHold.nvim",
|
||||
-- plugins
|
||||
"nvim-neotest/neotest-go",
|
||||
"jfpedroza/neotest-elixir",
|
||||
"rouge8/neotest-rust",
|
||||
}
|
||||
},
|
||||
{"nvim-neotest/neotest-vim-test" },
|
||||
{'akinsho/toggleterm.nvim', version = "*", config = function()
|
||||
require('toggleterm').setup({
|
||||
open_mapping = [[<C-\>]],
|
||||
start_in_insert = true,
|
||||
direction = "horizontal",
|
||||
autochdir = false,
|
||||
size = 20,
|
||||
highlights = {
|
||||
FloatBorder = { link = "ToggleTermBorder" },
|
||||
Normal = { link = "ToggleTerm" },
|
||||
NormalFloat = { link = "ToggleTerm" },
|
||||
},
|
||||
winbar = {
|
||||
enabled = true,
|
||||
name_formatter = function(term)
|
||||
return term.name
|
||||
end,
|
||||
},
|
||||
})
|
||||
end},
|
||||
|
||||
{'preservim/tagbar'},
|
||||
|
||||
{'f-person/git-blame.nvim'},
|
||||
-- Status Line and Bufferline
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = {'kyazdani42/nvim-web-devicons'},
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
opts = function()
|
||||
local monokai_opts = require("halfdan.util").opts("monokai-pro.nvim")
|
||||
return {
|
||||
float = vim.tbl_contains(monokai_opts.background_clear or {}, "neo-tree"),
|
||||
separator = "bubble", -- bubble | triangle
|
||||
---@type any
|
||||
colorful = true,
|
||||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
local lualine_config = require("halfdan.lualine")
|
||||
lualine_config.setup(opts)
|
||||
lualine_config.load()
|
||||
end,
|
||||
},
|
||||
|
||||
{'rcarriga/nvim-notify'},
|
||||
|
||||
{
|
||||
"nvim-neorg/neorg",
|
||||
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
|
||||
version = "*", -- Pin Neorg to the latest stable release
|
||||
config = function()
|
||||
require('neorg').setup({
|
||||
load = {
|
||||
["core.defaults"] = {},
|
||||
["core.dirman"] = {
|
||||
config = {
|
||||
workspaces = {
|
||||
work = "~/org/work",
|
||||
home = "~/org/home",
|
||||
},
|
||||
index = "index.norg",
|
||||
}
|
||||
},
|
||||
["core.completion"] = {
|
||||
config = {
|
||||
engine = "nvim-cmp",
|
||||
},
|
||||
},
|
||||
["core.concealer"] = {},
|
||||
["core.journal"] = {
|
||||
config = {
|
||||
strategy = "flat",
|
||||
},
|
||||
},
|
||||
["core.integrations.telescope"] = {},
|
||||
}
|
||||
})
|
||||
end,
|
||||
},
|
||||
{'nvim-neorg/neorg-telescope'},
|
||||
|
||||
{'justinmk/vim-sneak'},
|
||||
|
||||
{'machakann/vim-highlightedyank'},
|
||||
|
||||
{
|
||||
'nvimdev/lspsaga.nvim',
|
||||
config = function()
|
||||
require('lspsaga').setup({
|
||||
symbol_in_winbar = {
|
||||
enable = false,
|
||||
},
|
||||
code_action = {
|
||||
lightbulb = { enable = false }
|
||||
}
|
||||
})
|
||||
end,
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter', -- optional
|
||||
'nvim-tree/nvim-web-devicons' -- optional
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
'hrsh7th/nvim-cmp',
|
||||
dependencies = {
|
||||
{ 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
'onsails/lspkind.nvim',
|
||||
{ 'hrsh7th/cmp-path', after = 'nvim-cmp' },
|
||||
{ 'hrsh7th/cmp-nvim-lua', after = 'nvim-cmp' },
|
||||
{ 'hrsh7th/cmp-cmdline', after = 'nvim-cmp', event = 'CmdlineEnter' },
|
||||
{'petertriho/cmp-git', after = 'nvim-cmp'},
|
||||
}
|
||||
},
|
||||
|
||||
-- Used to display LSP status in Lualine
|
||||
{'nvim-lua/lsp-status.nvim'},
|
||||
|
||||
{
|
||||
"hedyhli/outline.nvim",
|
||||
lazy = true,
|
||||
cmd = { "Outline", "OutlineOpen" },
|
||||
keys = { -- Example mapping to toggle outline
|
||||
{ "<leader>o", "<cmd>Outline<CR>", desc = "Toggle outline" },
|
||||
},
|
||||
opts = {
|
||||
-- Your setup opts here
|
||||
},
|
||||
},
|
||||
{
|
||||
'numToStr/Comment.nvim',
|
||||
config = function()
|
||||
require('Comment').setup()
|
||||
end
|
||||
},
|
||||
|
||||
-- Telescope fuzzy find files/grep
|
||||
{'nvim-lua/popup.nvim'},
|
||||
{'nvim-lua/plenary.nvim'},
|
||||
{
|
||||
"fdschmidt93/telescope-egrepify.nvim",
|
||||
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }
|
||||
},
|
||||
{'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
||||
{'nvim-telescope/telescope.nvim'},
|
||||
{'nvim-telescope/telescope-dap.nvim'},
|
||||
{
|
||||
"danielfalk/smart-open.nvim",
|
||||
branch = "0.2.x",
|
||||
dependencies = {"kkharji/sqlite.lua"}
|
||||
},
|
||||
|
||||
{'numToStr/FTerm.nvim'},
|
||||
{'theprimeagen/harpoon'},
|
||||
|
||||
-- Debugging
|
||||
"mfussenegger/nvim-dap",
|
||||
"rcarriga/nvim-dap-ui",
|
||||
"nvim-neotest/nvim-nio",
|
||||
"theHamsta/nvim-dap-virtual-text",
|
||||
|
||||
-- => Language Support
|
||||
{'rust-lang/rust.vim'},
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^6', -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
},
|
||||
{'tpope/vim-projectionist'},
|
||||
|
||||
-- themes & colorschemes
|
||||
{ "rose-pine/neovim", name = "rose-pine" },
|
||||
{'luisiacc/gruvbox-baby'},
|
||||
{'akinsho/bufferline.nvim', version = "*", dependencies = 'nvim-tree/nvim-web-devicons',
|
||||
keys = {
|
||||
{ "<C-1>", "<Cmd>BufferLineGoToBuffer 1<CR>", desc = "Go to buffer 1" },
|
||||
{ "<C-2>", "<Cmd>BufferLineGoToBuffer 2<CR>", desc = "Go to buffer 2" },
|
||||
{ "<C-3>", "<Cmd>BufferLineGoToBuffer 3<CR>", desc = "Go to buffer 3" },
|
||||
{ "<C-4>", "<Cmd>BufferLineGoToBuffer 4<CR>", desc = "Go to buffer 4" },
|
||||
{ "<C-5>", "<Cmd>BufferLineGoToBuffer 5<CR>", desc = "Go to buffer 5" },
|
||||
{ "<C-6>", "<Cmd>BufferLineGoToBuffer 6<CR>", desc = "Go to buffer 6" },
|
||||
{ "<C-7>", "<Cmd>BufferLineGoToBuffer 7<CR>", desc = "Go to buffer 7" },
|
||||
{ "<C-8>", "<Cmd>BufferLineGoToBuffer 8<CR>", desc = "Go to buffer 8" },
|
||||
{ "<C-9>", "<Cmd>BufferLineGoToBuffer 9<CR>", desc = "Go to buffer 9" },
|
||||
{ "<S-l>", "<Cmd>BufferLineCycleNext<CR>", desc = "Next buffer" },
|
||||
{ "<S-h>", "<Cmd>BufferLineCyclePrev<CR>", desc = "Previous buffer" },
|
||||
{ "<A-S-l>", "<Cmd>BufferLineMoveNext<CR>", desc = "Move buffer right" },
|
||||
{ "<A-S-h>", "<Cmd>BufferLineMovePrev<CR>", desc = "Move buffer left" },
|
||||
},
|
||||
opts = function()
|
||||
local monokai_opts = require("halfdan.util").opts("monokai-pro.nvim")
|
||||
return {
|
||||
options = {
|
||||
diagnostics = "nvim_lsp", -- | "nvim_lsp" | "coc",
|
||||
-- separator_style = "", -- | "thick" | "thin" | "slope" | { 'any', 'any' },
|
||||
separator_style = { "", "" }, -- | "thick" | "thin" | { 'any', 'any' },
|
||||
-- separator_style = "slant", -- | "thick" | "thin" | { 'any', 'any' },
|
||||
indicator = {
|
||||
-- icon = " ",
|
||||
-- style = 'icon',
|
||||
style = "underline",
|
||||
},
|
||||
close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
|
||||
diagnostics_indicator = function(count, _, _, _)
|
||||
if count > 9 then
|
||||
return "9+"
|
||||
end
|
||||
return tostring(count)
|
||||
end,
|
||||
numbers = function(opts)
|
||||
return string.format('%s', opts.raise(opts.ordinal))
|
||||
end,
|
||||
offsets = {
|
||||
{
|
||||
filetype = "neo-tree",
|
||||
text = "EXPLORER",
|
||||
text_align = "center",
|
||||
separator = vim.tbl_contains(monokai_opts.background_clear or {}, "neo-tree"), -- set to `true` if clear background of neo-tree
|
||||
},
|
||||
{
|
||||
filetype = "NvimTree",
|
||||
text = "EXPLORER",
|
||||
text_align = "center",
|
||||
separator = vim.tbl_contains(monokai_opts.background_clear or {}, "nvim-tree"), -- set to `true` if clear background of neo-tree
|
||||
},
|
||||
},
|
||||
hover = {
|
||||
enabled = true,
|
||||
delay = 0,
|
||||
reveal = { "close" },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
}
|
||||
}
|
||||
})
|
@@ -1,52 +0,0 @@
|
||||
|
||||
local function formatted_status()
|
||||
local status = require'lsp-status'.status()
|
||||
status = string.gsub(status, "%%", "%%%%")
|
||||
return status
|
||||
end
|
||||
|
||||
|
||||
require 'lualine'.setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'monokaipro',
|
||||
--component_separators = {'', ''},
|
||||
--section_separators = {'', ''},
|
||||
disabled_filetypes = {}
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch', 'diff', 'diagnostics' },
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = {
|
||||
{"require'lsp-status'.status()", fmt = function (str)
|
||||
return string.gsub(str, "%%", "%%%%")
|
||||
end},
|
||||
'filetype'
|
||||
},
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' }
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = { 'location' },
|
||||
lualine_y = {},
|
||||
lualine_z = {}
|
||||
},
|
||||
tabline = {},
|
||||
extensions = {},
|
||||
winbar = {
|
||||
lualine_a = {
|
||||
},
|
||||
lualine_b = {},
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = {},
|
||||
lualine_y = {},
|
||||
lualine_z = {}
|
||||
},
|
||||
inactive_winbar = {
|
||||
lualine_c = { 'filename' },
|
||||
}
|
||||
}
|
160
.config/nvim/lua/halfdan/lualine/components.lua
Normal file
160
.config/nvim/lua/halfdan/lualine/components.lua
Normal file
@@ -0,0 +1,160 @@
|
||||
local config = require("halfdan.lualine.config").options
|
||||
local icons = require("halfdan.icons")
|
||||
|
||||
local M = {}
|
||||
|
||||
local hl_str = function(str, hl_cur, hl_after)
|
||||
if hl_after == nil then
|
||||
return "%#" .. hl_cur .. "#" .. str .. "%*"
|
||||
end
|
||||
return "%#" .. hl_cur .. "#" .. str .. "%*" .. "%#" .. hl_after .. "#"
|
||||
end
|
||||
|
||||
local function hide_in_width()
|
||||
return vim.fn.winwidth(0) > 85
|
||||
end
|
||||
|
||||
local prev_branch = ""
|
||||
M.branch = {
|
||||
"branch",
|
||||
icons_enabled = false,
|
||||
icon = hl_str("", "SLGitIcon", "SLBranchName"),
|
||||
colored = false,
|
||||
fmt = function(str)
|
||||
if vim.bo.filetype == "toggleterm" then
|
||||
str = prev_branch
|
||||
elseif str == "" or str == nil then
|
||||
str = "!=vcs"
|
||||
end
|
||||
prev_branch = str
|
||||
local icon = hl_str(" ", "SLGitIcon", "SLBranchName")
|
||||
return hl_str(config.separator_icon.left, "SLSeparator")
|
||||
.. hl_str(icon, "SLGitIcon")
|
||||
.. hl_str(str, "SLBranchName")
|
||||
.. hl_str(config.separator_icon.right, "SLSeparator", "SLSeparator")
|
||||
end,
|
||||
}
|
||||
|
||||
M.position = function()
|
||||
-- print(vim.inspect(config.separator_icon))
|
||||
local current_line = vim.fn.line(".")
|
||||
local current_column = vim.fn.col(".")
|
||||
local left_sep = hl_str(config.separator_icon.left, "SLSeparator")
|
||||
local right_sep = hl_str(config.separator_icon.right, "SLSeparator", "SLSeparator")
|
||||
local str = "Ln " .. current_line .. ", Col " .. current_column
|
||||
return left_sep .. hl_str(str, "SLPosition", "SLPosition") .. right_sep
|
||||
end
|
||||
|
||||
M.spaces = function()
|
||||
local left_sep = hl_str(config.separator_icon.left, "SLSeparator")
|
||||
local right_sep = hl_str(config.separator_icon.right, "SLSeparator", "SLSeparator")
|
||||
local str = "Spaces: " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
||||
return left_sep .. hl_str(str, "SLShiftWidth", "SLShiftWidth") .. right_sep
|
||||
end
|
||||
|
||||
M.diagnostics = function()
|
||||
local function nvim_diagnostic()
|
||||
local diagnostics = vim.diagnostic.get(0)
|
||||
local count = { 0, 0, 0, 0 }
|
||||
for _, diagnostic in ipairs(diagnostics) do
|
||||
count[diagnostic.severity] = count[diagnostic.severity] + 1
|
||||
end
|
||||
return count[vim.diagnostic.severity.ERROR],
|
||||
count[vim.diagnostic.severity.WARN],
|
||||
count[vim.diagnostic.severity.INFO],
|
||||
count[vim.diagnostic.severity.HINT]
|
||||
end
|
||||
|
||||
local error_count, warn_count, info_count, hint_count = nvim_diagnostic()
|
||||
local error_hl = hl_str(icons.diagnostics.Error .. " " .. error_count, "SLError", "SLError")
|
||||
local warn_hl = hl_str(icons.diagnostics.Warn .. " " .. warn_count, "SLWarning", "SLWarning")
|
||||
local info_hl = hl_str(icons.diagnostics.Info .. " " .. info_count, "SLInfo", "SLInfo")
|
||||
local hint_hl = hl_str(icons.diagnostics.Hint .. " " .. hint_count, "SLInfo", "SLInfo")
|
||||
local left_sep = hl_str(config.thin_separator_icon.left, "SLSeparator")
|
||||
local right_sep = hl_str(config.thin_separator_icon.right, "SLSeparator", "SLSeparator")
|
||||
return left_sep .. error_hl .. " " .. warn_hl .. " " .. hint_hl .. right_sep
|
||||
end
|
||||
|
||||
M.diff = {
|
||||
"diff",
|
||||
colored = true,
|
||||
diff_color = {
|
||||
added = "SLDiffAdd",
|
||||
modified = "SLDiffChange",
|
||||
removed = "SLDiffDelete",
|
||||
},
|
||||
symbols = {
|
||||
added = icons.git.added .. " ",
|
||||
modified = icons.git.modified .. " ",
|
||||
removed = icons.git.removed .. " ",
|
||||
}, -- changes diff symbols
|
||||
fmt = function(str)
|
||||
if str == "" then
|
||||
return ""
|
||||
end
|
||||
local left_sep = hl_str(config.thin_separator_icon.left, "SLSeparator")
|
||||
local right_sep = hl_str(config.thin_separator_icon.right, "SLSeparator", "SLSeparator")
|
||||
return left_sep .. str .. right_sep
|
||||
end,
|
||||
cond = hide_in_width,
|
||||
}
|
||||
|
||||
M.mode = {
|
||||
"mode",
|
||||
fmt = function(str)
|
||||
local left_sep = hl_str(config.separator_icon.left, "SLSeparator", "SLPadding")
|
||||
local right_sep = hl_str(config.separator_icon.right, "SLSeparator", "SLPadding")
|
||||
return left_sep .. hl_str(str, "SLMode") .. right_sep
|
||||
end,
|
||||
}
|
||||
|
||||
local prev_filetype = ""
|
||||
M.filetype = {
|
||||
"filetype",
|
||||
icons_enabled = false,
|
||||
icons_only = false,
|
||||
fmt = function(str)
|
||||
local ui_filetypes = {
|
||||
"help",
|
||||
"packer",
|
||||
"neogitstatus",
|
||||
"NvimTree",
|
||||
"Trouble",
|
||||
"lir",
|
||||
"Outline",
|
||||
"spectre_panel",
|
||||
"toggleterm",
|
||||
"DressingSelect",
|
||||
"neo-tree",
|
||||
"",
|
||||
}
|
||||
local filetype_str = ""
|
||||
|
||||
if str == "toggleterm" then
|
||||
--
|
||||
filetype_str = "ToggleTerm " .. vim.api.nvim_buf_get_var(0, "toggle_number")
|
||||
elseif str == "TelescopePrompt" then
|
||||
filetype_str = ""
|
||||
elseif str == "neo-tree" or str == "neo-tree-popup" then
|
||||
if prev_filetype == "" then
|
||||
return
|
||||
end
|
||||
filetype_str = prev_filetype
|
||||
elseif str == "help" then
|
||||
filetype_str = ""
|
||||
elseif vim.tbl_contains(ui_filetypes, str) then
|
||||
return
|
||||
else
|
||||
prev_filetype = str
|
||||
filetype_str = str
|
||||
end
|
||||
local left_sep = hl_str(config.separator_icon.left, "SLSeparator")
|
||||
local right_sep = hl_str(config.separator_icon.right, "SLSeparator", "SLSeparator")
|
||||
-- Upper case first character
|
||||
filetype_str = filetype_str:gsub("%a", string.upper, 1)
|
||||
local filetype_hl = hl_str(filetype_str, "SLFiletype", "SLFiletype")
|
||||
return left_sep .. filetype_hl .. right_sep
|
||||
end,
|
||||
}
|
||||
|
||||
return M
|
40
.config/nvim/lua/halfdan/lualine/config.lua
Normal file
40
.config/nvim/lua/halfdan/lualine/config.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
local M = {}
|
||||
|
||||
---@class LualineConfig
|
||||
local default = {
|
||||
float = true,
|
||||
separator = "bubble", -- bubble | triangle
|
||||
---@type any
|
||||
colorful = true,
|
||||
separator_icon = { left = "", right = " " },
|
||||
thin_separator_icon = { left = "", right = " " },
|
||||
-- separator_icon = { left = "█", right = "█" },
|
||||
-- thin_separator_icon = { left = " ", right = " " },
|
||||
}
|
||||
|
||||
---@type LualineConfig
|
||||
M.options = {}
|
||||
|
||||
---@param type "bubble" | "triangle"
|
||||
local function make_separator(type)
|
||||
if type == "bubble" then
|
||||
M.options.separator_icon = { left = "█", right = "█" }
|
||||
M.options.thin_separator_icon = { left = " ", right = " " }
|
||||
elseif type == "triangle" then
|
||||
M.options.separator_icon = { left = "█", right = "█" }
|
||||
M.options.thin_separator_icon = { left = " ", right = " " }
|
||||
else
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
M.setup = function(opts)
|
||||
M.options = vim.tbl_deep_extend("force", {}, default, opts or {})
|
||||
if M.options.float then
|
||||
make_separator(M.options.separator)
|
||||
end
|
||||
end
|
||||
|
||||
M.setup()
|
||||
|
||||
return M
|
111
.config/nvim/lua/halfdan/lualine/highlights.lua
Normal file
111
.config/nvim/lua/halfdan/lualine/highlights.lua
Normal file
@@ -0,0 +1,111 @@
|
||||
local M = {}
|
||||
local util = require("halfdan.util")
|
||||
|
||||
local function draw(groups)
|
||||
if groups == nil then
|
||||
return
|
||||
end
|
||||
for group, value in pairs(groups) do
|
||||
vim.api.nvim_set_hl(0, group, value)
|
||||
end
|
||||
end
|
||||
|
||||
local function generate(config, palette)
|
||||
local float = config.float
|
||||
local colorful = config.colorful
|
||||
if colorful then
|
||||
palette.yellow = util.get_highlight_value("String").foreground or "#ffff00"
|
||||
palette.white = util.get_highlight_value("Normal").foreground or "#ffffff"
|
||||
palette.red = util.get_highlight_value("DiagnosticError").foreground or "#ff0000"
|
||||
palette.orange = util.get_highlight_value("DiagnosticWarn").foreground or "#ff7700"
|
||||
palette.blue = util.get_highlight_value("DiagnosticHint").foreground or "#00ffff"
|
||||
palette.magenta = util.get_highlight_value("Statement").foreground or "#ff00ff"
|
||||
palette.green = util.get_highlight_value("healthSuccess").foreground or "#00ff00"
|
||||
end
|
||||
return {
|
||||
SLGitIcon = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.white or palette.statusbar_fg,
|
||||
},
|
||||
SLBranchName = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.yellow or palette.statusbar_fg,
|
||||
},
|
||||
SLError = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = colorful and palette.red or palette.statusbar_fg,
|
||||
},
|
||||
SLWarning = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = colorful and palette.orange or palette.statusbar_fg,
|
||||
},
|
||||
SLInfo = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = colorful and palette.blue or palette.statusbar_fg,
|
||||
},
|
||||
SLDiffAdd = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = colorful and palette.green or palette.statusbar_fg,
|
||||
},
|
||||
SLDiffChange = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = colorful and palette.yellow or palette.statusbar_fg,
|
||||
},
|
||||
SLDiffDelete = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = colorful and palette.red or palette.statusbar_fg,
|
||||
},
|
||||
SLPosition = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.magenta or palette.statusbar_fg,
|
||||
},
|
||||
SLFiletype = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.blue or palette.statusbar_fg,
|
||||
},
|
||||
SLShiftWidth = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.yellow or palette.statusbar_fg,
|
||||
},
|
||||
SLEncoding = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.green or palette.statusbar_fg,
|
||||
},
|
||||
SLMode = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.green or palette.statusbar_fg,
|
||||
bold = true,
|
||||
},
|
||||
SLSeparatorUnused = {
|
||||
bg = float and palette.float_background or palette.statusbar_bg,
|
||||
fg = colorful and palette.editor_bg or palette.statusbar_fg,
|
||||
},
|
||||
SLSeparator = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = float and palette.float_background or palette.statusbar_bg,
|
||||
},
|
||||
SLPadding = {
|
||||
bg = float and palette.editor_bg or palette.statusbar_bg,
|
||||
fg = palette.editor_bg,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
---@param config LualineConfig
|
||||
M.custom = function(config)
|
||||
local statusline_hl = util.get_highlight_value("StatusLine")
|
||||
local palette = {
|
||||
float_background = util.get_highlight_value("CursorLine").background,
|
||||
editor_bg = util.get_highlight_value("Normal").background or "NONE",
|
||||
statusbar_bg = statusline_hl.background or "#000000",
|
||||
statusbar_fg = statusline_hl.foreground or "#505050",
|
||||
}
|
||||
local groups = generate(config, palette)
|
||||
|
||||
draw(groups)
|
||||
-- clear theme if float ortherwhise, make it auto
|
||||
local theme = config.float and { normal = { c = { bg = palette.editor_bg } } } or "auto"
|
||||
return theme
|
||||
end
|
||||
|
||||
return M
|
60
.config/nvim/lua/halfdan/lualine/init.lua
Normal file
60
.config/nvim/lua/halfdan/lualine/init.lua
Normal file
@@ -0,0 +1,60 @@
|
||||
local config = require("halfdan.lualine.config")
|
||||
|
||||
local git_blame = require('gitblame')
|
||||
local M = {}
|
||||
|
||||
local function setup()
|
||||
local cpn = require("halfdan.lualine.components")
|
||||
local theme = require("halfdan.lualine.highlights").custom(config.options)
|
||||
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
theme = theme,
|
||||
icons_enabled = true,
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
disabled_filetypes = {
|
||||
statusline = { "dashboard", "lazy", "alpha" },
|
||||
},
|
||||
ignore_focus = {},
|
||||
always_divide_middle = true,
|
||||
globalstatus = true,
|
||||
refresh = {
|
||||
statusline = 1000,
|
||||
tabline = 1000,
|
||||
-- winbar = 100,
|
||||
},
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { cpn.branch },
|
||||
lualine_b = { cpn.diagnostics },
|
||||
lualine_c = {},
|
||||
lualine_x = { { git_blame.get_current_blame_text, cond = git_blame.is_blame_text_available }, cpn.diff },
|
||||
lualine_y = { cpn.position, cpn.filetype },
|
||||
lualine_z = { cpn.spaces, cpn.mode },
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = { "location" },
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
tabline = {},
|
||||
extensions = {},
|
||||
})
|
||||
end
|
||||
|
||||
M.setup = config.setup
|
||||
|
||||
M.load = function()
|
||||
setup()
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
callback = function()
|
||||
setup()
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
@@ -1,6 +0,0 @@
|
||||
local luasnip = require('luasnip')
|
||||
luasnip.config.set_config {
|
||||
history = true,
|
||||
updateevents = "TextChanged,TextChangedI"
|
||||
}
|
||||
|
@@ -8,5 +8,5 @@ neogit.setup {
|
||||
}
|
||||
|
||||
nnoremap("<leader>gs", function()
|
||||
neogit.open({ })
|
||||
neogit.open({kind='split'})
|
||||
end)
|
||||
|
@@ -1,27 +0,0 @@
|
||||
local neorg = require("neorg")
|
||||
|
||||
neorg.setup({
|
||||
load = {
|
||||
["core.defaults"] = {},
|
||||
["core.dirman"] = {
|
||||
config = {
|
||||
workspaces = {
|
||||
work = "~/org/work",
|
||||
home = "~/org/home",
|
||||
}
|
||||
}
|
||||
},
|
||||
["core.completion"] = {
|
||||
config = {
|
||||
engine = "nvim-cmp",
|
||||
},
|
||||
},
|
||||
["core.concealer"] = {},
|
||||
["core.journal"] = {
|
||||
config = {
|
||||
strategy = "flat",
|
||||
},
|
||||
},
|
||||
["core.integrations.telescope"] = {},
|
||||
}
|
||||
})
|
@@ -1,193 +0,0 @@
|
||||
local execute = vim.api.nvim_command
|
||||
local fn = vim.fn
|
||||
|
||||
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
|
||||
|
||||
if fn.empty(fn.glob(install_path)) > 0 then
|
||||
execute("!git clone https://github.com/wbthomason/packer.nvim " .. install_path)
|
||||
execute "packadd packer.nvim"
|
||||
end
|
||||
|
||||
--- Check if a file or directory exists in this path
|
||||
local function require_plugin(plugin)
|
||||
local plugin_prefix = fn.stdpath("data") .. "/site/pack/packer/opt/"
|
||||
|
||||
local plugin_path = plugin_prefix .. plugin .. "/"
|
||||
-- print('test '..plugin_path)
|
||||
local ok, err, code = os.rename(plugin_path, plugin_path)
|
||||
if not ok then
|
||||
if code == 13 then
|
||||
-- Permission denied, but it exists
|
||||
return true
|
||||
end
|
||||
end
|
||||
-- print(ok, err, code)
|
||||
if ok then
|
||||
vim.cmd("packadd " .. plugin)
|
||||
end
|
||||
return ok, err, code
|
||||
end
|
||||
|
||||
vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua
|
||||
|
||||
vim.opt.runtimepath:append("~/code/jira.nvim")
|
||||
return require("packer").startup({
|
||||
function(use)
|
||||
-- Packer can manage itself as an optional plugin
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
use 'lewis6991/impatient.nvim'
|
||||
|
||||
use {'TimUntersberger/neogit', requires = {'sindrets/diffview.nvim' } }
|
||||
use {'airblade/vim-gitgutter'}
|
||||
-- use {'andymass/vim-matchup'}
|
||||
|
||||
-- Load .editorconfig files
|
||||
use {'editorconfig/editorconfig-vim'}
|
||||
|
||||
use {'junegunn/vim-easy-align'}
|
||||
|
||||
-- Goodies
|
||||
use {'tpope/vim-fugitive'}
|
||||
use {'tpope/vim-surround'} -- ✅
|
||||
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
|
||||
use {'vim-test/vim-test'}
|
||||
use {
|
||||
"nvim-neotest/neotest",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"antoinemadec/FixCursorHold.nvim",
|
||||
|
||||
"jfpedroza/neotest-elixir",
|
||||
"rouge8/neotest-rust",
|
||||
}
|
||||
}
|
||||
use {"nvim-neotest/neotest-vim-test" }
|
||||
|
||||
|
||||
use {'preservim/tagbar'}
|
||||
vim.g.tagbar_ctags_bin = '/usr/local/bin/ctags'
|
||||
|
||||
-- Status Line and Bufferline
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
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 {'machakann/vim-highlightedyank'}
|
||||
-- let g:highlightedyank_highlight_duration = 100
|
||||
|
||||
-- LSP / Language Server Protocol
|
||||
use {
|
||||
'neovim/nvim-lspconfig',
|
||||
'williamboman/nvim-lsp-installer',
|
||||
}
|
||||
|
||||
use {'L3MON4D3/LuaSnip'}
|
||||
use {"rafamadriz/friendly-snippets", after="LuaSnip"}
|
||||
|
||||
use {
|
||||
'hrsh7th/nvim-cmp',
|
||||
requires = {
|
||||
{ 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
'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' },
|
||||
{'petertriho/cmp-git', after = 'nvim-cmp'},
|
||||
}
|
||||
}
|
||||
|
||||
use {'glepnir/lspsaga.nvim'}
|
||||
|
||||
-- Used to display LSP status in Lualine
|
||||
use {'nvim-lua/lsp-status.nvim'}
|
||||
|
||||
-- null-ls for a collection of LSP-like plugins
|
||||
use({
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
config = function()
|
||||
require("null-ls").setup()
|
||||
end,
|
||||
requires = { "nvim-lua/plenary.nvim" },
|
||||
})
|
||||
|
||||
use {'simrat39/symbols-outline.nvim'}
|
||||
use {
|
||||
'numToStr/Comment.nvim',
|
||||
config = function()
|
||||
require('Comment').setup()
|
||||
end
|
||||
}
|
||||
use { 'numToStr/FTerm.nvim' }
|
||||
|
||||
-- Telescope fuzzy find files/grep
|
||||
use {'nvim-lua/popup.nvim'}
|
||||
use {'nvim-lua/plenary.nvim'}
|
||||
use {'nvim-telescope/telescope.nvim'}
|
||||
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
|
||||
use {'nvim-telescope/telescope-dap.nvim'}
|
||||
|
||||
|
||||
use {
|
||||
"danielfalk/smart-open.nvim",
|
||||
branch = "0.1.x",
|
||||
requires = {"kkharji/sqlite.lua"}
|
||||
}
|
||||
|
||||
use {'theprimeagen/git-worktree.nvim'}
|
||||
use {'theprimeagen/harpoon'}
|
||||
|
||||
-- Debugging
|
||||
use("mfussenegger/nvim-dap")
|
||||
use("rcarriga/nvim-dap-ui")
|
||||
use("theHamsta/nvim-dap-virtual-text")
|
||||
|
||||
-- => Language Support
|
||||
use {'rust-lang/rust.vim'}
|
||||
use {'simrat39/rust-tools.nvim'}
|
||||
-- use({ "mhanberg/elixir.nvim", requires = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim" }})
|
||||
use {"elixir-tools/elixir-tools.nvim", requires = { "nvim-lua/plenary.nvim" }}
|
||||
use {'tpope/vim-projectionist'}
|
||||
-- use {'JuliaEditorSupport/julia-vim', opt=true}
|
||||
-- vim.g.latex_to_unicode_auto = 1
|
||||
|
||||
-- themes & colorschemes
|
||||
use {'gruvbox-community/gruvbox'}
|
||||
use {'luisiacc/gruvbox-baby'}
|
||||
use {
|
||||
'https://gitlab.com/__tpb/monokai-pro.nvim',
|
||||
as = 'monokai-pro.nvim'
|
||||
}
|
||||
end,
|
||||
config = {
|
||||
display = {
|
||||
open_fn = function()
|
||||
return require('packer.util').float({ border = 'single' })
|
||||
end
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@@ -7,6 +7,26 @@ vim.o.titlestring="%<%F%=%l/%L - nvim"
|
||||
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('syntax on') -- syntax highlighting
|
||||
vim.o.foldmethod = "expr"
|
||||
vim.o.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
|
||||
local fcs = vim.opt.fillchars:get()
|
||||
|
||||
-- Stolen from Akinsho
|
||||
local function get_fold(lnum)
|
||||
if vim.fn.foldlevel(lnum) <= vim.fn.foldlevel(lnum - 1) then return ' ' end
|
||||
return vim.fn.foldclosed(lnum) == -1 and fcs.foldopen or fcs.foldclose
|
||||
end
|
||||
|
||||
_G.get_statuscol = function()
|
||||
return "%s%=" .. get_fold(vim.v.lnum) .. " %l "
|
||||
end
|
||||
|
||||
|
||||
vim.o.statuscolumn = "%!v:lua.get_statuscol()"
|
||||
vim.o.foldcolumn = '0'
|
||||
vim.o.foldlevelstart = 99
|
||||
vim.o.foldlevel = 99 -- Keep folds open by default
|
||||
vim.o.pumheight = 10 -- Makes popup menu smaller
|
||||
vim.o.fileencoding = "utf-8" -- The encoding written to file
|
||||
vim.o.cmdheight = 1 -- More space for displaying messages
|
||||
@@ -21,7 +41,7 @@ vim.o.shiftwidth = 2 -- Change the number of space characters inserted for inden
|
||||
vim.o.expandtab = true -- Converts tabs to spaces
|
||||
vim.bo.smartindent = false -- Makes indenting smart
|
||||
vim.wo.number = true -- set numbered lines
|
||||
vim.wo.relativenumber = true -- set relative number
|
||||
-- vim.wo.relativenumber = true -- set relative number
|
||||
vim.wo.cursorline = true -- Enable highlighting of the current line
|
||||
vim.o.showtabline = 1 -- Always show tabs
|
||||
vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore
|
||||
@@ -34,8 +54,8 @@ vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
|
||||
vim.o.laststatus = 3 -- Set global status bar
|
||||
vim.b.did_ftplugin = 1
|
||||
-- Enable telescope theme
|
||||
vim.g.gruvbox_baby_telescope_theme = 1
|
||||
vim.g.gruvbox_baby_background_color = "dark"
|
||||
-- vim.g.gruvbox_baby_telescope_theme = 1
|
||||
-- vim.g.gruvbox_baby_background_color = "dark"
|
||||
|
||||
vim.g.mapleader = ' '
|
||||
|
||||
@@ -43,3 +63,7 @@ vim.g.netrw_preview = 1 -- Split preview vertically
|
||||
vim.g.netrw_alo = 1 -- Show preview window to the right
|
||||
vim.g.netrw_winsize = 30 -- Have the preview window take up 70%
|
||||
-- vim.g.netrw_liststyle = 3 -- Use tree style
|
||||
--
|
||||
vim.g.gitblame_display_virtual_text = 0
|
||||
vim.g.gitblame_date_format = '%r'
|
||||
vim.g.gitblame_message_template = '<author> • <date>'
|
||||
|
@@ -8,6 +8,7 @@ require('telescope').setup {
|
||||
prompt_prefix = " ",
|
||||
selection_caret = " ",
|
||||
entry_prefix = " ",
|
||||
-- borderchars = { "█", " ", "▀", "█", "█", " ", " ", "▀" },
|
||||
file_sorter = require 'telescope'.extensions.fzf.get_fzf_sorter,
|
||||
-- Developer configurations: Not meant for general override
|
||||
mappings = {
|
||||
@@ -60,7 +61,7 @@ require('telescope').setup {
|
||||
},
|
||||
}
|
||||
|
||||
require("telescope").load_extension("git_worktree")
|
||||
require('telescope').load_extension("fzf")
|
||||
require('telescope').load_extension("dap")
|
||||
require('telescope').load_extension("smart_open")
|
||||
require('telescope').load_extension("egrepify")
|
||||
|
@@ -3,7 +3,7 @@ if vim.g.vscode then
|
||||
end
|
||||
|
||||
require('nvim-treesitter.configs').setup({
|
||||
ensure_installed = { "python", "go", "elixir", "rust", "gomod", "json", "lua", "ruby", "yaml", "norg", "query" },
|
||||
ensure_installed = { "python", "go", "elixir", "heex", "rust", "gomod", "json", "lua", "yaml", "norg", "query", "markdown", "markdown_inline", "gleam", "zig", "odin"},
|
||||
ignore_install = { "haskell" },
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
245
.config/nvim/lua/halfdan/util.lua
Normal file
245
.config/nvim/lua/halfdan/util.lua
Normal file
@@ -0,0 +1,245 @@
|
||||
local M = {}
|
||||
|
||||
M.root_patterns = { ".git", "lua", "package.json", "mvnw", "gradlew", "pom.xml", "build.gradle", "release", ".project" }
|
||||
|
||||
M.augroup = function(name)
|
||||
return vim.api.nvim_create_augroup("halfdan_" .. name, { clear = true })
|
||||
end
|
||||
|
||||
M.has = function(plugin)
|
||||
return require("lazy.core.config").plugins[plugin] ~= nil
|
||||
end
|
||||
|
||||
function M.get_clients(...)
|
||||
local fn = vim.lsp.get_clients or vim.lsp.get_active_clients
|
||||
return fn(...)
|
||||
end
|
||||
|
||||
--- @param on_attach fun(client, buffer)
|
||||
M.on_attach = function(on_attach)
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
callback = function(args)
|
||||
local buffer = args.buf
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
on_attach(client, buffer)
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
M.get_highlight_value = function(group)
|
||||
local found, hl = pcall(vim.api.nvim_get_hl_by_name, group, true)
|
||||
if not found then
|
||||
return {}
|
||||
end
|
||||
local hl_config = {}
|
||||
for key, value in pairs(hl) do
|
||||
_, hl_config[key] = pcall(string.format, "#%06x", value)
|
||||
end
|
||||
return hl_config
|
||||
end
|
||||
|
||||
---@param name string
|
||||
function M.opts(name)
|
||||
local plugin = require("lazy.core.config").plugins[name]
|
||||
if not plugin then
|
||||
return {}
|
||||
end
|
||||
local Plugin = require("lazy.core.plugin")
|
||||
return Plugin.values(plugin, "opts", false)
|
||||
end
|
||||
|
||||
-- returns the root directory based on:
|
||||
-- * lsp workspace folders
|
||||
-- * lsp root_dir
|
||||
-- * root pattern of filename of the current buffer
|
||||
-- * root pattern of cwd
|
||||
---@return string
|
||||
M.get_root = function()
|
||||
---@type string?
|
||||
local path = vim.api.nvim_buf_get_name(0)
|
||||
path = path ~= "" and vim.loop.fs_realpath(path) or nil
|
||||
---@type string[]
|
||||
local roots = {}
|
||||
if path then
|
||||
for _, client in pairs(vim.lsp.get_active_clients({ bufnr = 0 })) do
|
||||
local workspace = client.config.workspace_folders
|
||||
local paths = workspace
|
||||
and vim.tbl_map(function(ws)
|
||||
return vim.uri_to_fname(ws.uri)
|
||||
end, workspace)
|
||||
or client.config.root_dir and { client.config.root_dir }
|
||||
or {}
|
||||
for _, p in ipairs(paths) do
|
||||
local r = vim.loop.fs_realpath(p)
|
||||
if path:find(r, 1, true) then
|
||||
roots[#roots + 1] = r
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
table.sort(roots, function(a, b)
|
||||
return #a > #b
|
||||
end)
|
||||
---@type string?
|
||||
local root = roots[1]
|
||||
if not root then
|
||||
path = path and vim.fs.dirname(path) or vim.loop.cwd()
|
||||
---@type string?
|
||||
root = vim.fs.find(M.root_patterns, { path = path, upward = true })[1]
|
||||
root = root and vim.fs.dirname(root) or vim.loop.cwd()
|
||||
end
|
||||
---@cast root string
|
||||
return root
|
||||
end
|
||||
|
||||
M.set_root = function(dir)
|
||||
vim.api.nvim_set_current_dir(dir)
|
||||
end
|
||||
|
||||
---@param type "ivy" | "dropdown" | "cursor" | nil
|
||||
--- @param borderType "thin" | "thick" | "double" | "single" | "empty" | nil
|
||||
M.telescope_theme = function(type, borderType)
|
||||
if type == nil then
|
||||
return {
|
||||
borderchars = M.generate_borderchars(borderType),
|
||||
layout_config = {
|
||||
width = 80,
|
||||
height = 0.5,
|
||||
},
|
||||
}
|
||||
end
|
||||
return require("telescope.themes")["get_" .. type]({
|
||||
cwd = M.get_root(),
|
||||
borderchars = M.generate_borderchars(borderType, nil, { top = "█", top_left = "█", top_right = "█" }),
|
||||
})
|
||||
end
|
||||
|
||||
---@param builtin "find_files" | "live_grep" | "buffers"
|
||||
---@param type "ivy" | "dropdown" | "cursor" | nil
|
||||
M.telescope = function(builtin, type, opts)
|
||||
local params = { builtin = builtin, type = type, opts = opts }
|
||||
return function()
|
||||
builtin = params.builtin
|
||||
type = params.type
|
||||
opts = params.opts
|
||||
opts = vim.tbl_deep_extend("force", { cwd = M.get_root() }, opts or {})
|
||||
local theme
|
||||
if vim.tbl_contains({ "ivy", "dropdown", "cursor" }, type) then
|
||||
theme = M.telescope_theme(type)
|
||||
else
|
||||
theme = opts
|
||||
end
|
||||
require("telescope.builtin")[builtin](theme)
|
||||
end
|
||||
end
|
||||
|
||||
---@param name "autocmds" | "options" | "keymaps"
|
||||
M.load = function(name)
|
||||
local Util = require("lazy.core.util")
|
||||
-- always load lazyvim, then user file
|
||||
local mod = "halfdan.core." .. name
|
||||
Util.try(function()
|
||||
require(mod)
|
||||
end, {
|
||||
msg = "Failed loading " .. mod,
|
||||
on_error = function(msg)
|
||||
local modpath = require("lazy.core.cache").find(mod)
|
||||
if modpath then
|
||||
Util.error(msg)
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
M.on_very_lazy = function(fn)
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "VeryLazy",
|
||||
callback = function()
|
||||
fn()
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
M.capabilities = function(ext)
|
||||
return vim.tbl_deep_extend(
|
||||
"force",
|
||||
{},
|
||||
ext or {},
|
||||
require("cmp_nvim_lsp").default_capabilities(),
|
||||
{ textDocument = { foldingRange = { dynamicRegistration = false, lineFoldingOnly = true } } }
|
||||
)
|
||||
end
|
||||
|
||||
M.notify = function(msg, level, opts)
|
||||
opts = opts or {}
|
||||
level = vim.log.levels[level:upper()]
|
||||
if type(msg) == "table" then
|
||||
msg = table.concat(msg, "\n")
|
||||
end
|
||||
local nopts = { title = "Nvim" }
|
||||
if opts.once then
|
||||
return vim.schedule(function()
|
||||
vim.notify_once(msg, level, nopts)
|
||||
end)
|
||||
end
|
||||
vim.schedule(function()
|
||||
vim.notify(msg, level, nopts)
|
||||
end)
|
||||
end
|
||||
|
||||
--- @param type "thin" | "thick" | "double" | "single" | "empty" | nil
|
||||
--- @param order "t-r-b-l-tl-tr-br-bl" | "tl-t-tr-r-br-b-bl-l" | nil
|
||||
--- @param opts BorderIcons | nil
|
||||
M.generate_borderchars = function(type, order, opts)
|
||||
if order == nil then
|
||||
order = "t-r-b-l-tl-tr-br-bl"
|
||||
end
|
||||
local border_icons = require("halfdan.icons").borders
|
||||
--- @type BorderIcons
|
||||
local border = vim.tbl_deep_extend("force", border_icons[type or "empty"], opts or {})
|
||||
|
||||
local borderchars = {}
|
||||
|
||||
local extractDirections = (function()
|
||||
local index = 1
|
||||
return function()
|
||||
if index == nil then
|
||||
return nil
|
||||
end
|
||||
-- Find the next occurence of `char`
|
||||
local nextIndex = string.find(order, "-", index)
|
||||
-- Extract the first direction
|
||||
local direction = string.sub(order, index, nextIndex and nextIndex - 1)
|
||||
-- Update the index to nextIndex
|
||||
index = nextIndex and nextIndex + 1 or nil
|
||||
return direction
|
||||
end
|
||||
end)()
|
||||
|
||||
local mappings = {
|
||||
t = "top",
|
||||
r = "right",
|
||||
b = "bottom",
|
||||
l = "left",
|
||||
tl = "top_left",
|
||||
tr = "top_right",
|
||||
br = "bottom_right",
|
||||
bl = "bottom_left",
|
||||
}
|
||||
local direction = extractDirections()
|
||||
while direction do
|
||||
if mappings[direction] == nil then
|
||||
M.notify(string.format("Invalid direction '%s'", direction), "error")
|
||||
end
|
||||
borderchars[#borderchars + 1] = border[mappings[direction]]
|
||||
direction = extractDirections()
|
||||
end
|
||||
|
||||
if #borderchars ~= 8 then
|
||||
M.notify(string.format("Invalid order '%s'", order), "error")
|
||||
end
|
||||
|
||||
return borderchars
|
||||
end
|
||||
|
||||
return M
|
@@ -1,478 +0,0 @@
|
||||
-- Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_command('packadd packer.nvim')
|
||||
|
||||
local no_errors, error_msg = pcall(function()
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.inside_compile = true
|
||||
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
if threshold then
|
||||
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
|
||||
end
|
||||
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/Users/fbecker/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/fbecker/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/fbecker/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/fbecker/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/Users/fbecker/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], false)
|
||||
time([[try_loadstring definition]], true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
|
||||
if not success then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
||||
end)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time([[try_loadstring definition]], false)
|
||||
time([[Defining packer_plugins]], true)
|
||||
_G.packer_plugins = {
|
||||
["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,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/Comment.nvim",
|
||||
url = "https://github.com/numToStr/Comment.nvim"
|
||||
},
|
||||
["FTerm.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/FTerm.nvim",
|
||||
url = "https://github.com/numToStr/FTerm.nvim"
|
||||
},
|
||||
["FixCursorHold.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/FixCursorHold.nvim",
|
||||
url = "https://github.com/antoinemadec/FixCursorHold.nvim"
|
||||
},
|
||||
LuaSnip = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
||||
url = "https://github.com/L3MON4D3/LuaSnip"
|
||||
},
|
||||
["cmp-buffer"] = {
|
||||
after_files = { "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-buffer/after/plugin/cmp_buffer.lua" },
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-buffer",
|
||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
||||
},
|
||||
["cmp-cmdline"] = {
|
||||
after_files = { "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-cmdline/after/plugin/cmp_cmdline.lua" },
|
||||
load_after = {},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-cmdline",
|
||||
url = "https://github.com/hrsh7th/cmp-cmdline"
|
||||
},
|
||||
["cmp-git"] = {
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-git",
|
||||
url = "https://github.com/petertriho/cmp-git"
|
||||
},
|
||||
["cmp-nvim-lsp"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
||||
},
|
||||
["cmp-nvim-lua"] = {
|
||||
after_files = { "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua" },
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua",
|
||||
url = "https://github.com/hrsh7th/cmp-nvim-lua"
|
||||
},
|
||||
["cmp-path"] = {
|
||||
after_files = { "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-path/after/plugin/cmp_path.lua" },
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-path",
|
||||
url = "https://github.com/hrsh7th/cmp-path"
|
||||
},
|
||||
["cmp-tabnine"] = {
|
||||
after_files = { "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-tabnine/after/plugin/cmp-tabnine.lua" },
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp-tabnine",
|
||||
url = "https://github.com/tzachar/cmp-tabnine"
|
||||
},
|
||||
cmp_luasnip = {
|
||||
after_files = { "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" },
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/cmp_luasnip",
|
||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
||||
},
|
||||
["diffview.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/diffview.nvim",
|
||||
url = "https://github.com/sindrets/diffview.nvim"
|
||||
},
|
||||
["editorconfig-vim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/editorconfig-vim",
|
||||
url = "https://github.com/editorconfig/editorconfig-vim"
|
||||
},
|
||||
["elixir.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/elixir.nvim",
|
||||
url = "https://github.com/mhanberg/elixir.nvim"
|
||||
},
|
||||
["friendly-snippets"] = {
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/friendly-snippets",
|
||||
url = "https://github.com/rafamadriz/friendly-snippets"
|
||||
},
|
||||
["git-worktree.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/git-worktree.nvim",
|
||||
url = "https://github.com/theprimeagen/git-worktree.nvim"
|
||||
},
|
||||
gruvbox = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/gruvbox",
|
||||
url = "https://github.com/gruvbox-community/gruvbox"
|
||||
},
|
||||
["gruvbox-baby"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/gruvbox-baby",
|
||||
url = "https://github.com/luisiacc/gruvbox-baby"
|
||||
},
|
||||
harpoon = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/harpoon",
|
||||
url = "https://github.com/theprimeagen/harpoon"
|
||||
},
|
||||
["impatient.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/impatient.nvim",
|
||||
url = "https://github.com/lewis6991/impatient.nvim"
|
||||
},
|
||||
["lsp-status.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/lsp-status.nvim",
|
||||
url = "https://github.com/nvim-lua/lsp-status.nvim"
|
||||
},
|
||||
["lspkind.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
|
||||
url = "https://github.com/onsails/lspkind.nvim"
|
||||
},
|
||||
["lspsaga.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
|
||||
url = "https://github.com/glepnir/lspsaga.nvim"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||
},
|
||||
["monokai-pro.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/monokai-pro.nvim",
|
||||
url = "https://gitlab.com/__tpb/monokai-pro.nvim"
|
||||
},
|
||||
neogit = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/neogit",
|
||||
url = "https://github.com/TimUntersberger/neogit"
|
||||
},
|
||||
neorg = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/neorg",
|
||||
url = "https://github.com/nvim-neorg/neorg"
|
||||
},
|
||||
["neorg-telescope"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/neorg-telescope",
|
||||
url = "https://github.com/nvim-neorg/neorg-telescope"
|
||||
},
|
||||
neotest = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/neotest",
|
||||
url = "https://github.com/nvim-neotest/neotest"
|
||||
},
|
||||
["neotest-elixir"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/neotest-elixir",
|
||||
url = "https://github.com/jfpedroza/neotest-elixir"
|
||||
},
|
||||
["neotest-rust"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/neotest-rust",
|
||||
url = "https://github.com/rouge8/neotest-rust"
|
||||
},
|
||||
["neotest-vim-test"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/neotest-vim-test",
|
||||
url = "https://github.com/nvim-neotest/neotest-vim-test"
|
||||
},
|
||||
["null-ls.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\fnull-ls\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
|
||||
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
|
||||
},
|
||||
["nvim-cmp"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||
},
|
||||
["nvim-dap"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-dap",
|
||||
url = "https://github.com/mfussenegger/nvim-dap"
|
||||
},
|
||||
["nvim-dap-ui"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-dap-ui",
|
||||
url = "https://github.com/rcarriga/nvim-dap-ui"
|
||||
},
|
||||
["nvim-dap-virtual-text"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-dap-virtual-text",
|
||||
url = "https://github.com/theHamsta/nvim-dap-virtual-text"
|
||||
},
|
||||
["nvim-lsp-installer"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer",
|
||||
url = "https://github.com/williamboman/nvim-lsp-installer"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||
url = "https://github.com/neovim/nvim-lspconfig"
|
||||
},
|
||||
["nvim-notify"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-notify",
|
||||
url = "https://github.com/rcarriga/nvim-notify"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
["nvim-treesitter-textobjects"] = {
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textobjects",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
url = "https://github.com/wbthomason/packer.nvim"
|
||||
},
|
||||
playground = {
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/opt/playground",
|
||||
url = "https://github.com/nvim-treesitter/playground"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
["popup.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/popup.nvim",
|
||||
url = "https://github.com/nvim-lua/popup.nvim"
|
||||
},
|
||||
["rust-tools.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/rust-tools.nvim",
|
||||
url = "https://github.com/simrat39/rust-tools.nvim"
|
||||
},
|
||||
["rust.vim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/rust.vim",
|
||||
url = "https://github.com/rust-lang/rust.vim"
|
||||
},
|
||||
["symbols-outline.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim",
|
||||
url = "https://github.com/simrat39/symbols-outline.nvim"
|
||||
},
|
||||
tagbar = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/tagbar",
|
||||
url = "https://github.com/preservim/tagbar"
|
||||
},
|
||||
["telescope-dap.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/telescope-dap.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-dap.nvim"
|
||||
},
|
||||
["telescope-fzf-native.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||
},
|
||||
["vim-dispatch"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-dispatch",
|
||||
url = "https://github.com/tpope/vim-dispatch"
|
||||
},
|
||||
["vim-easy-align"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-easy-align",
|
||||
url = "https://github.com/junegunn/vim-easy-align"
|
||||
},
|
||||
["vim-fugitive"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
||||
url = "https://github.com/tpope/vim-fugitive"
|
||||
},
|
||||
["vim-gitgutter"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
|
||||
url = "https://github.com/airblade/vim-gitgutter"
|
||||
},
|
||||
["vim-highlightedyank"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-highlightedyank",
|
||||
url = "https://github.com/machakann/vim-highlightedyank"
|
||||
},
|
||||
["vim-projectionist"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-projectionist",
|
||||
url = "https://github.com/tpope/vim-projectionist"
|
||||
},
|
||||
["vim-sneak"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-sneak",
|
||||
url = "https://github.com/justinmk/vim-sneak"
|
||||
},
|
||||
["vim-surround"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-surround",
|
||||
url = "https://github.com/tpope/vim-surround"
|
||||
},
|
||||
["vim-test"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/vim-test",
|
||||
url = "https://github.com/vim-test/vim-test"
|
||||
},
|
||||
["zk-nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker/.local/share/nvim/site/pack/packer/start/zk-nvim",
|
||||
url = "https://github.com/mickael-menu/zk-nvim"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
-- Config for: null-ls.nvim
|
||||
time([[Config for null-ls.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\fnull-ls\frequire\0", "config", "null-ls.nvim")
|
||||
time([[Config for null-ls.nvim]], 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-cmp ]]
|
||||
vim.cmd [[ packadd cmp-nvim-lua ]]
|
||||
vim.cmd [[ packadd cmp-path ]]
|
||||
vim.cmd [[ packadd cmp-buffer ]]
|
||||
vim.cmd [[ packadd cmp-tabnine ]]
|
||||
vim.cmd [[ packadd cmp-git ]]
|
||||
vim.cmd [[ packadd cmp_luasnip ]]
|
||||
vim.cmd [[ packadd nvim-treesitter ]]
|
||||
vim.cmd [[ packadd nvim-treesitter-textobjects ]]
|
||||
vim.cmd [[ packadd playground ]]
|
||||
vim.cmd [[ packadd LuaSnip ]]
|
||||
vim.cmd [[ packadd friendly-snippets ]]
|
||||
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)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
|
||||
_G._packer.inside_compile = false
|
||||
if _G._packer.needs_bufread == true then
|
||||
vim.cmd("doautocmd BufRead")
|
||||
end
|
||||
_G._packer.needs_bufread = false
|
||||
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
end)
|
||||
|
||||
if not no_errors then
|
||||
error_msg = error_msg:gsub('"', '\\"')
|
||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||
end
|
@@ -1,235 +0,0 @@
|
||||
" Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if !has('nvim-0.5')
|
||||
echohl WarningMsg
|
||||
echom "Invalid Neovim version for packer.nvim!"
|
||||
echohl None
|
||||
finish
|
||||
endif
|
||||
|
||||
packadd packer.nvim
|
||||
|
||||
try
|
||||
|
||||
lua << END
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time("Luarocks path setup", true)
|
||||
local package_path_str = "/Users/fbecker18/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/fbecker18/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/fbecker18/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/fbecker18/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/Users/fbecker18/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time("Luarocks path setup", false)
|
||||
time("try_loadstring definition", true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s))
|
||||
if not success then
|
||||
print('Error running ' .. component .. ' for ' .. name)
|
||||
error(result)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time("try_loadstring definition", false)
|
||||
time("Defining packer_plugins", true)
|
||||
_G.packer_plugins = {
|
||||
["JuliaFormatter.vim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/JuliaFormatter.vim"
|
||||
},
|
||||
["darcula-solid.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/darcula-solid.nvim"
|
||||
},
|
||||
dracula = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/dracula"
|
||||
},
|
||||
["editorconfig-vim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/editorconfig-vim"
|
||||
},
|
||||
["jsonc.vim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/jsonc.vim"
|
||||
},
|
||||
["julia-vim"] = {
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/opt/julia-vim"
|
||||
},
|
||||
["lsp-status.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/lsp-status.nvim"
|
||||
},
|
||||
["lspsaga.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/lspsaga.nvim"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/lualine.nvim"
|
||||
},
|
||||
["lush.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/lush.nvim"
|
||||
},
|
||||
moonlight = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/moonlight"
|
||||
},
|
||||
nerdcommenter = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nerdcommenter"
|
||||
},
|
||||
nerdtree = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nerdtree"
|
||||
},
|
||||
["nerdtree-git-plugin"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nerdtree-git-plugin"
|
||||
},
|
||||
["nord-vim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nord-vim"
|
||||
},
|
||||
["nvim-compe"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nvim-compe"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nvim-lspconfig"
|
||||
},
|
||||
["nvim-lspinstall"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nvim-lspinstall"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nvim-treesitter"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/packer.nvim"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/plenary.nvim"
|
||||
},
|
||||
["popup.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/popup.nvim"
|
||||
},
|
||||
["symbols-outline.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim"
|
||||
},
|
||||
tagbar = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/tagbar"
|
||||
},
|
||||
["telescope-project.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/telescope-project.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/telescope.nvim"
|
||||
},
|
||||
["vim-abolish"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-abolish"
|
||||
},
|
||||
["vim-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-devicons"
|
||||
},
|
||||
["vim-easy-align"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-easy-align"
|
||||
},
|
||||
["vim-floaterm"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-floaterm"
|
||||
},
|
||||
["vim-fugitive"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-fugitive"
|
||||
},
|
||||
["vim-gitgutter"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-gitgutter"
|
||||
},
|
||||
["vim-highlightedyank"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-highlightedyank"
|
||||
},
|
||||
["vim-sneak"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-sneak"
|
||||
},
|
||||
["vim-surround"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/vim-surround"
|
||||
},
|
||||
["which-key.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/fbecker18/.local/share/nvim/site/pack/packer/start/which-key.nvim"
|
||||
}
|
||||
}
|
||||
|
||||
time("Defining packer_plugins", false)
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
END
|
||||
|
||||
catch
|
||||
echohl ErrorMsg
|
||||
echom "Error in packer_compiled: " .. v:exception
|
||||
echom "Please check your config for correctness"
|
||||
echohl None
|
||||
endtry
|
@@ -1,14 +1,8 @@
|
||||
elixir 1.13.1
|
||||
kubectl 1.18.2
|
||||
helm 2.9.1
|
||||
eksctl 0.2.1
|
||||
terraform 0.14.6
|
||||
terragrunt 0.23.31
|
||||
kustomize 3.10.0
|
||||
golang 1.17.5
|
||||
saml2aws 2.27.1
|
||||
awscli 2.1.38
|
||||
kubectx 0.9.3
|
||||
argo 2.12.10
|
||||
erlang 24.2
|
||||
python 3.8.6
|
||||
elixir 1.18.2-otp-27
|
||||
golang 1.24.0
|
||||
erlang 27.2.3
|
||||
python 3.13.2
|
||||
neovim 0.10.4
|
||||
java openjdk-19
|
||||
awscli 2.24.7
|
||||
nodejs 18.20.4
|
||||
|
Reference in New Issue
Block a user