mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-11-01 13:06:03 +00:00
Compare commits
3 Commits
5af41a0d7c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f2385f7a7 | ||
|
|
4bdaa38757 | ||
|
|
14bb6cc423 |
@@ -11,10 +11,10 @@ abbr -a -- gca 'git commit --amend'
|
||||
abbr -a -- gpf 'git push -f'
|
||||
abbr -a -- gp 'git push'
|
||||
abbr -a -- gl 'git pull'
|
||||
abbr -a -- gl 'git rebase develop'
|
||||
abbr -a -- gcd 'git checkout develop'
|
||||
abbr -a -- gcm 'git checkout main'
|
||||
abbr -a -- gc- 'git checkout -'
|
||||
abbr -a -- gc 'git checkout'
|
||||
abbr -a -- gau 'git add -u'
|
||||
|
||||
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'
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@ map ctrl+4 goto_tab 4
|
||||
map ctrl+t new_tab
|
||||
map ctrl+w close_tab
|
||||
|
||||
# --- Splits ---
|
||||
map ctrl+b," launch --location=hsplit # Ctrl+b then " splits horizontally
|
||||
map ctrl+b,% launch --location=vsplit # Ctrl+b then % splits vertically
|
||||
|
||||
# Supper power keys
|
||||
map ctrl+; kitten toggle_term.py
|
||||
|
||||
|
||||
@@ -68,9 +68,9 @@ vim.cmd([[
|
||||
noremap <silent> <C-Down> :resize -3<CR>
|
||||
]])
|
||||
|
||||
-- Tab switch buffer
|
||||
nnoremap('<TAB>', ':bnext<CR>')
|
||||
nnoremap('<S-TAB>', ':bprevious<CR>')
|
||||
-- -- Tab switch buffer
|
||||
-- nnoremap('<TAB>', ':bnext<CR>')
|
||||
-- nnoremap('<S-TAB>', ':bprevious<CR>')
|
||||
|
||||
-- Quickfix list
|
||||
nnoremap('[q', ':cprev<CR>')
|
||||
|
||||
@@ -32,4 +32,8 @@ return {
|
||||
},
|
||||
-- Used to display LSP status in Lualine
|
||||
{ 'nvim-lua/lsp-status.nvim' },
|
||||
{
|
||||
'daliusd/incr.nvim',
|
||||
config = true,
|
||||
}
|
||||
}
|
||||
|
||||
10
.config/nvim/lua/halfdan/plugins/markview.lua
Normal file
10
.config/nvim/lua/halfdan/plugins/markview.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"OXY2DEV/markview.nvim",
|
||||
lazy = false,
|
||||
|
||||
-- For blink.cmp's completion
|
||||
-- source
|
||||
-- dependencies = {
|
||||
-- "saghen/blink.cmp"
|
||||
-- },
|
||||
};
|
||||
@@ -2,7 +2,7 @@ return {
|
||||
{
|
||||
"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
|
||||
version = "4da2159b3f3420d43613f43e159f4253b8544474", -- Pin Neorg to the latest stable release
|
||||
config = function()
|
||||
require('neorg').setup({
|
||||
load = {
|
||||
@@ -26,6 +26,11 @@ return {
|
||||
},
|
||||
},
|
||||
["core.integrations.telescope"] = {},
|
||||
["core.keybinds"] = {
|
||||
config = {
|
||||
default_keybinds = true,
|
||||
},
|
||||
},
|
||||
["external.interim-ls"] = {
|
||||
config = {
|
||||
-- default config shown
|
||||
|
||||
@@ -9,7 +9,10 @@ return {
|
||||
"m4xshen/hardtime.nvim",
|
||||
lazy = false,
|
||||
dependencies = { "MunifTanjim/nui.nvim" },
|
||||
opts = {},
|
||||
opts = {
|
||||
disable_mouse = false,
|
||||
max_count = 5
|
||||
},
|
||||
},
|
||||
{
|
||||
"karb94/neoscroll.nvim",
|
||||
|
||||
@@ -3,5 +3,6 @@ return {
|
||||
{ "rose-pine/neovim", name = "rose-pine" },
|
||||
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
|
||||
{ 'luisiacc/gruvbox-baby' },
|
||||
{ "rebelot/kanagawa.nvim" }
|
||||
{ "rebelot/kanagawa.nvim" },
|
||||
{ "p00f/alabaster.nvim" }
|
||||
}
|
||||
|
||||
@@ -40,69 +40,4 @@ return {
|
||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
}
|
||||
},
|
||||
{
|
||||
'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,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ vim.b.did_ftplugin = 1
|
||||
-- vim.g.gruvbox_baby_background_color = "dark"
|
||||
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ','
|
||||
|
||||
vim.g.netrw_preview = 1 -- Split preview vertically
|
||||
vim.g.netrw_alo = 1 -- Show preview window to the right
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
elixir 1.18.2-otp-27
|
||||
golang 1.24.0
|
||||
golang 1.25.0
|
||||
erlang 27.2.3
|
||||
python 3.13.2
|
||||
neovim 0.11.3
|
||||
python 3.13.7
|
||||
neovim 0.11.4
|
||||
java openjdk-19
|
||||
awscli 2.24.7
|
||||
nodejs 18.20.4
|
||||
|
||||
Reference in New Issue
Block a user