Compare commits

..

2 Commits

5 changed files with 11 additions and 48 deletions

View File

@@ -19,7 +19,6 @@ assign [class="app-ws12"] $ws12
assign [class="vesktop"] $ws9 assign [class="vesktop"] $ws9
# autostart applications on a specific workspace # autostart applications on a specific workspace
exec --no-startup-id i3-msg 'workspace $ws3; exec thunderbird'
exec --no-startup-id i3-msg 'workspace $ws2; exec firefox --new-window' exec --no-startup-id i3-msg 'workspace $ws2; exec firefox --new-window'
exec --no-startup-id i3-msg 'workspace $ws1; exec kitty --single-instance' exec --no-startup-id i3-msg 'workspace $ws1; exec kitty --single-instance'

View File

@@ -13,12 +13,7 @@ git:
pagers: pagers:
- colorArg: always - colorArg: always
pager: diff-so-fancy pager: diff-so-fancy
useConfig: false
overrideGpg: true overrideGpg: true
update: update:
method: never method: never
customCommands:
- key: 'P'
command: "git push {{.SelectedRemote.Name}} {{.SelectedLocalCommit.Sha}}:{{.SelectedLocalBranch.Name}}"
context: "commits"
loadingText: "Pushing commit..."
description: "Push a specific commit (and any preceding)"

View File

@@ -9,7 +9,6 @@ Map('n', '<c-t>', '<cmd>enew<cr>', { desc = 'create a new buffer' })
Map('n', '<tab>', '<cmd>bnext<cr>', { desc = 'move to next buffer' }) Map('n', '<tab>', '<cmd>bnext<cr>', { desc = 'move to next buffer' })
Map('n', '<s-tab>', '<cmd>bprevious<cr>', { desc = 'move to previous buffer' }) Map('n', '<s-tab>', '<cmd>bprevious<cr>', { desc = 'move to previous buffer' })
Map('n', '<c-w>', '<cmd>bd<cr>', { desc = 'close buffer' }) Map('n', '<c-w>', '<cmd>bd<cr>', { desc = 'close buffer' })
Map('n', '<c-f4>', '<cmd>bd<cr>', { desc = 'close buffer' })
-- for help exiting certain modes -- for help exiting certain modes
Map({ 'n', 'i' }, '<esc>', '<cmd>nohlsearch<cr><esc>', { desc = 'cancel search highlighting and escape' }) Map({ 'n', 'i' }, '<esc>', '<cmd>nohlsearch<cr><esc>', { desc = 'cancel search highlighting and escape' })
@@ -32,8 +31,6 @@ Map('n', 'K', vim.lsp.buf.hover, { desc = 'symbol hover' })
Map('n', '<F2>', vim.lsp.buf.rename, { desc = 'rename symbol' }) Map('n', '<F2>', vim.lsp.buf.rename, { desc = 'rename symbol' })
Map('n', '<leader>lm', vim.diagnostic.open_float, { desc = 'view line\'s diagnostic messages' }) Map('n', '<leader>lm', vim.diagnostic.open_float, { desc = 'view line\'s diagnostic messages' })
Map('n', '<leader>q', vim.lsp.buf.code_action, { desc = 'view quickfix list' }) Map('n', '<leader>q', vim.lsp.buf.code_action, { desc = 'view quickfix list' })
Map('n', 'gd', vim.lsp.buf.definition, { desc = "Go to the definition" })
Map('n', 'gr', vim.lsp.buf.references, { desc = "Go to the reference" })
-- smart tabulation -- smart tabulation
Map('i', '<tab>', function() Map('i', '<tab>', function()

View File

@@ -69,8 +69,8 @@ require('mini.diff').setup({ -- shows git diffs in the file
style = 'sign', style = 'sign',
} }
}) })
require('mini.files').setup() -- file browser require('mini.files').setup() -- file browser
Map('n', '<leader>o', MiniFiles.open, { desc = "Open mini file browser" }) Map( 'n', '<leader>o', MiniFiles.open)
require('mini.jump').setup() -- extends f,F,t,T to work across multiple lines require('mini.jump').setup() -- extends f,F,t,T to work across multiple lines
require('mini.cursorword').setup() -- highlight words beneath the cursor require('mini.cursorword').setup() -- highlight words beneath the cursor
require('mini.icons').setup() require('mini.icons').setup()
@@ -83,45 +83,17 @@ require('mini.indentscope').setup({
MiniDeps.later(function() MiniDeps.later(function()
vim.api.nvim_set_hl(0, 'MiniIndentscopeSymbol', { link = 'Whitespace' }) vim.api.nvim_set_hl(0, 'MiniIndentscopeSymbol', { link = 'Whitespace' })
end) end)
-- TODO: show history
require('mini.notify').setup() -- has more noticeable / utilitarian / aesthetically pleasing notifications require('mini.notify').setup() -- has more noticeable / utilitarian / aesthetically pleasing notifications
-- Custom `^V` and `^S` symbols to make this file appropriate for copy-paste
-- (otherwise those symbols are not displayed).
local CTRL_S = vim.api.nvim_replace_termcodes('<C-S>', true, true, true)
local CTRL_V = vim.api.nvim_replace_termcodes('<C-V>', true, true, true)
local modes = setmetatable({
['n'] = { long = 'NORMAL', short = 'N', hl = 'MiniStatuslineModeNormal' },
['v'] = { long = 'VISUAL', short = 'V', hl = 'MiniStatuslineModeVisual' },
['V'] = { long = 'V-LINE', short = 'V-L', hl = 'MiniStatuslineModeVisual' },
[CTRL_V] = { long = 'V-BLOCK', short = 'V-B', hl = 'MiniStatuslineModeVisual' },
['s'] = { long = 'SELECT', short = 'S', hl = 'MiniStatuslineModeVisual' },
['S'] = { long = 'S-LINE', short = 'S-L', hl = 'MiniStatuslineModeVisual' },
[CTRL_S] = { long = 'S-BLOCK', short = 'S-B', hl = 'MiniStatuslineModeVisual' },
['i'] = { long = 'INSERT', short = 'I', hl = 'MiniStatuslineModeInsert' },
['R'] = { long = 'REPLACE', short = 'R', hl = 'MiniStatuslineModeReplace' },
['c'] = { long = 'COMMAND', short = 'C', hl = 'MiniStatuslineModeCommand' },
['r'] = { long = 'PROMPT', short = 'P', hl = 'MiniStatuslineModeOther' },
['!'] = { long = 'SHELL', short = 'Sh', hl = 'MiniStatuslineModeOther' },
['t'] = { long = 'TERMINAL', short = 'T', hl = 'MiniStatuslineModeOther' },
}, {
-- By default return 'Unknown' but this shouldn't be needed
__index = function()
return { long = 'Unknown', short = 'U', hl = '%#MiniStatuslineModeOther#' }
end,
})
require('mini.statusline').setup({ require('mini.statusline').setup({
content = { content = {
active = function() active = function()
local mode_info = modes[vim.fn.mode()] local mode, mode_hl = MiniStatusline.section_mode({ trunc_width = 120 })
local mode = MiniStatusline.is_truncated(120) and mode_info.short or mode_info.long local git = MiniStatusline.section_git({ trunc_width = 40 })
local mode_hl = mode_info.hl local diff = MiniStatusline.section_diff({ trunc_width = 75 })
local git = MiniStatusline.section_git({ trunc_width = 40 }) local diagnostics = MiniStatusline.section_diagnostics({ trunc_width = 75 })
local diff = MiniStatusline.section_diff({ trunc_width = 75 }) local lsp = MiniStatusline.section_lsp({ trunc_width = 75 })
local diagnostics = MiniStatusline.section_diagnostics({ trunc_width = 75 }) local filename = MiniStatusline.section_filename({ trunc_width = 140 })
local lsp = MiniStatusline.section_lsp({ trunc_width = 75 }) local fileinfo = MiniStatusline.section_fileinfo({ trunc_width = 120 })
local filename = MiniStatusline.section_filename({ trunc_width = 140 })
local fileinfo = MiniStatusline.section_fileinfo({ trunc_width = 120 })
return MiniStatusline.combine_groups({ return MiniStatusline.combine_groups({
{ hl = mode_hl, strings = { mode } }, { hl = mode_hl, strings = { mode } },
@@ -142,7 +114,7 @@ require('mini.statusline').setup({
use_icons = true, use_icons = true,
set_vim_settings = true, set_vim_settings = true,
}) })
require('mini.tabline').setup() -- shows buffers that are open require('mini.tabline').setup()
require('mini.trailspace').setup() -- trailing space indication and removal. require('mini.trailspace').setup() -- trailing space indication and removal.
---@module 'lazy' ---@module 'lazy'

Binary file not shown.