-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b0d480
commit 1b015ae
Showing
8 changed files
with
82 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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,20 @@ | ||
vim.bo.commentstring = '# %s' | ||
|
||
local function add_comment_header() | ||
local line_number = vim.api.nvim_win_get_cursor(0)[1] | ||
local line = vim.api.nvim_get_current_line() | ||
local bookend = '################################################################################' | ||
|
||
vim.api.nvim_buf_set_lines(0, line_number - 1, line_number, true, { | ||
bookend, | ||
'# ' .. line, | ||
}) | ||
vim.api.nvim_buf_set_lines(0, line_number + 1, line_number + 1, true, { bookend }) | ||
|
||
if line == '' then | ||
vim.api.nvim_win_set_cursor(0, { line_number + 1, 2 }) | ||
vim.cmd 'startinsert' | ||
end | ||
end | ||
|
||
vim.keymap.set('n', 'gh', add_comment_header, { desc = 'Add Comment Header' }) |
This file contains 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 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 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,22 @@ | ||
return { | ||
{ | ||
'kdheepak/lazygit.nvim', | ||
lazy = true, | ||
cmd = { | ||
'LazyGit', | ||
'LazyGitConfig', | ||
'LazyGitCurrentFile', | ||
'LazyGitFilter', | ||
'LazyGitFilterCurrentFile', | ||
}, | ||
-- optional for floating window border decoration | ||
dependencies = { | ||
'nvim-lua/plenary.nvim', | ||
}, | ||
-- setting the keybinding for LazyGit with 'keys' is recommended in | ||
-- order to load the plugin when the command is run for the first time | ||
keys = { | ||
{ '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' }, | ||
}, | ||
}, | ||
} |
This file contains 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 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 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,13 +1,15 @@ | ||
-- https://wezfurlong.org/wezterm/config/files.html | ||
|
||
-- Pull in the wezterm API | ||
local wezterm = require 'wezterm' | ||
local wezterm = require("wezterm") | ||
|
||
-- This will hold the configuration. | ||
local config = wezterm.config_builder() | ||
|
||
config.font = wezterm.font 'SpaceMono Nerd Font' | ||
config.color_scheme = 'GitHub Dark' | ||
config.font = wezterm.font("SpaceMono Nerd Font") | ||
config.color_scheme = "GitHub Dark" | ||
|
||
config.max_fps = 120 | ||
|
||
-- and finally, return the configuration to wezterm | ||
return config |
This file contains 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