Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions files/.config/flutter/tool_state
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"is-bot": false
}
Comment thread
marromlam marked this conversation as resolved.
2 changes: 1 addition & 1 deletion files/.config/gh/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
git_protocol: ssh
prompt: enabled
aliases:
co: pr checkout
co: pr checkout
version: "1"
9 changes: 8 additions & 1 deletion files/.config/nvim/after/ftplugin/markdown.lua
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
vim.opt_local.wrap = false
vim.opt_local.wrap = true
vim.opt_local.textwidth = 80
vim.opt_local.colorcolumn = '80'

-- Simulate 80-col display by resizing the current window.
-- Accounts for sign column (2) + line numbers (up to 4 digits = 4) + 1 separator = 7
local padding = vim.opt_local.number:get() and 7 or 2
vim.api.nvim_win_set_width(0, 80 + padding)
Comment thread
marromlam marked this conversation as resolved.
4 changes: 2 additions & 2 deletions files/.config/nvim/after/ftplugin/qf.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- CUSTOM QUICKFIX WINDOW

local T = require('tools')
local T = _G.T

vim.opt_local.wrap = false
vim.opt_local.number = false
Expand Down Expand Up @@ -38,7 +38,7 @@ vim.keymap.set(
'v',
'd',
qf_delete,
{ buffer = 0, desc = '[qf] delete selected quickfix entry' }
{ buffer = 0, desc = '[qf] delete selected quickfix entries' }
)
vim.keymap.set(
'n',
Expand Down
9 changes: 8 additions & 1 deletion files/.config/nvim/after/ftplugin/tex.lua
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
vim.opt_local.wrap = false
vim.opt_local.wrap = true
vim.opt_local.textwidth = 80
vim.opt_local.colorcolumn = '80'

-- Simulate 80-col display by resizing the current window.
-- Accounts for sign column (2) + line numbers (up to 4 digits = 4) + 1 separator = 7
local padding = vim.opt_local.number:get() and 7 or 2
vim.api.nvim_win_set_width(0, 80 + padding)
Comment thread
marromlam marked this conversation as resolved.
49 changes: 0 additions & 49 deletions files/.config/nvim/after/plugin/nvim-bqf.lua
Original file line number Diff line number Diff line change
@@ -1,49 +0,0 @@
--------------------------------------------------------------------------------
-- prettify QF window pannel
--------------------------------------------------------------------------------

function _G.qftf(info)
local items
local ret = {}
if info.quickfix == 1 then
items = vim.fn.getqflist({ id = info.id, items = 0 }).items
else
items = vim.fn.getloclist(info.winid, { id = info.id, items = 0 }).items
end
local limit = 31
local fname_fmt1, fname_fmt2 =
'%-' .. limit .. 's', '…%.' .. (limit - 1) .. 's'
local valid_fmt = '%s │%5d:%-3d│%s %s'
for i = info.start_idx, info.end_idx do
local e = items[i]
local fname = ''
local str
if e.valid == 1 then
if e.bufnr > 0 then
fname = vim.fn.bufname(e.bufnr)
if fname == '' then
fname = '[No Name]'
else
fname = fname:gsub('^' .. vim.env.HOME, '~')
end
-- char in fname may occur more than 1 width, ignore this issue in
-- order to keep performance
if #fname <= limit then
fname = fname_fmt1:format(fname)
else
fname = fname_fmt2:format(fname:sub(1 - limit))
end
end
local lnum = e.lnum > 99999 and -1 or e.lnum
local col = e.col > 999 and -1 or e.col
local qtype = e.type == '' and '' or ' ' .. e.type:sub(1, 1):upper()
str = valid_fmt:format(fname, lnum, col, qtype, e.text)
else
str = e.text
end
table.insert(ret, str)
end
return ret
end

vim.o.qftf = '{info -> v:lua._G.qftf(info)}'
6 changes: 6 additions & 0 deletions files/.config/nvim/after/syntax/gitcommit.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
" Runs after runtime/syntax/gitcommit.vim.
" gitcommitSummary already links the whole first line to Keyword (a distinctive
" color). We leave that intact and add the prefix (word:) linked to a bolder
" group so it stands out from the rest of the summary line.
syn match gitcommitConventionalType '^\w\+!*:' contained containedin=gitcommitSummary
hi link gitcommitConventionalType DiagnosticWarn
Loading
Loading