-
Notifications
You must be signed in to change notification settings - Fork 1
Nvim pack #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Nvim pack #13
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a5ae702
feat: add new nvim package manager
marromlam 488693f
feat: some updates
marromlam 69b4fcc
fix: minimal changes into after
marromlam 21d3eed
feat: minor files added
marromlam 2ba69f3
chore: move config
marromlam 9295a26
feat: new simple config
marromlam 17d9c4c
perf: improve rendering in statuscolumn and statusline
marromlam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "is-bot": false | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | ||
|
marromlam marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | ||
|
marromlam marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)}' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.