Skip to content

Commit 08023d9

Browse files
committed
chore: merge nvim-lua#1627
1 parent afb6a3c commit 08023d9

27 files changed

+179
-147
lines changed

.github/workflows/stylua.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout Code
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
with:
1414
ref: ${{ github.event.pull_request.head.sha }}
1515
- name: Stylua Check
16-
uses: JohnnyMorganz/stylua-action@v3
16+
uses: JohnnyMorganz/stylua-action@v4
1717
with:
1818
token: ${{ secrets.GITHUB_TOKEN }}
1919
version: latest

.stylua.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ indent_type = "Spaces"
44
indent_width = 2
55
quote_style = "AutoPreferSingle"
66
call_parentheses = "None"
7+
collapse_simple_statement = "FunctionOnly"

lua/custom/plugins/colorschemes.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---@module 'lazy'
2+
---@type LazySpec
13
return {
24
{
35
'zaldih/themery.nvim',

lua/custom/plugins/editor.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---@module 'lazy'
2+
---@type LazySpec
13
return {
24
'tpope/vim-repeat',
35
'airblade/vim-rooter',
@@ -7,9 +9,7 @@ return {
79
opts = {},
810
keys = { {
911
'<F3>',
10-
function()
11-
require('maximize').toggle()
12-
end,
12+
function() require('maximize').toggle() end,
1313
desc = 'Maximize split toggle',
1414
} },
1515
},

lua/custom/plugins/grapple.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---@module 'lazy'
2+
---@type LazySpec
13
return {
24
'cbochs/grapple.nvim',
35
dependencies = {

lua/custom/plugins/init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
-- I promise not to create any merge conflicts in this directory :)
33
--
44
-- See the kickstart.nvim README for more information
5+
---@module 'lazy'
6+
---@type LazySpec
57
return {}

lua/custom/plugins/latex.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---@module 'lazy'
2+
---@type LazySpec
13
return {
24
'lervag/vimtex',
35
lazy = false,

lua/custom/plugins/pair.lua

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
---@module 'lazy'
2+
---@type LazySpec
13
return {
24
'altermo/ultimate-autopair.nvim',
35
event = { 'InsertEnter', 'CmdlineEnter' },
46
branch = 'v0.6',
57
config = function()
68
local ua = require 'ultimate-autopair'
7-
local prev = function(o)
8-
return o.line:sub(o.col - 1, o.col - 1)
9-
end
9+
local prev = function(o) return o.line:sub(o.col - 1, o.col - 1) end
1010
ua.init {
1111
ua.extend_default {
1212
fastwarp = {
@@ -16,9 +16,7 @@ return {
1616
{
1717
"'",
1818
"'",
19-
cond = function(fn, o)
20-
return prev(o) == '' or prev(o):match '[^&<\\]'
21-
end,
19+
cond = function(fn, o) return prev(o) == '' or prev(o):match '[^&<\\]' end,
2220
suround = true,
2321
nft = { 'tex' },
2422
alpha = true,
@@ -28,9 +26,7 @@ return {
2826
{
2927
'<',
3028
'>',
31-
cond = function(fn, o)
32-
return prev(o) == '' or prev(o):match '[^%s<\\]'
33-
end,
29+
cond = function(fn, o) return prev(o) == '' or prev(o):match '[^%s<\\]' end,
3430
dosuround = true,
3531
space = true,
3632
multiline = false,

lua/custom/plugins/rust.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---@module 'lazy'
2+
---@type LazySpec
13
return {
24
{
35
'mrcjkb/rustaceanvim',
@@ -14,9 +16,7 @@ return {
1416
vim.keymap.set('n', '<localleader>lt', '<cmd>RustTest<cr>', { desc = 'Run test under cursor' })
1517

1618
local bufnr = vim.api.nvim_get_current_buf()
17-
vim.keymap.set('n', 'K', function()
18-
vim.cmd.RustLsp { 'hover', 'actions' }
19-
end, { silent = true, buffer = bufnr })
19+
vim.keymap.set('n', 'K', function() vim.cmd.RustLsp { 'hover', 'actions' } end, { silent = true, buffer = bufnr })
2020
end,
2121
})
2222
vim.g.rustaceanvim = {

lua/custom/plugins/splits.lua

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,47 @@
1+
---@module 'lazy'
2+
---@type LazySpec
13
return {
24
'mrjones2014/smart-splits.nvim',
35
opts = {},
46
keys = {
57
{
68
'<C-h>',
7-
function()
8-
require('smart-splits').move_cursor_left()
9-
end,
9+
function() require('smart-splits').move_cursor_left() end,
1010
desc = 'Move to left split',
1111
},
1212
{
1313
'<C-j>',
14-
function()
15-
require('smart-splits').move_cursor_down()
16-
end,
14+
function() require('smart-splits').move_cursor_down() end,
1715
desc = 'Move to below split',
1816
},
1917
{
2018
'<C-k>',
21-
function()
22-
require('smart-splits').move_cursor_up()
23-
end,
19+
function() require('smart-splits').move_cursor_up() end,
2420
desc = 'Move to above split',
2521
},
2622
{
2723
'<C-l>',
28-
function()
29-
require('smart-splits').move_cursor_right()
30-
end,
24+
function() require('smart-splits').move_cursor_right() end,
3125
desc = 'Move to right split',
3226
},
3327
{
3428
'<C-Left>',
35-
function()
36-
require('smart-splits').resize_left()
37-
end,
29+
function() require('smart-splits').resize_left() end,
3830
desc = 'Resize split left',
3931
},
4032
{
4133
'<C-Down>',
42-
function()
43-
require('smart-splits').resize_down()
44-
end,
34+
function() require('smart-splits').resize_down() end,
4535
desc = 'Resize split down',
4636
},
4737
{
4838
'<C-Up>',
49-
function()
50-
require('smart-splits').resize_up()
51-
end,
39+
function() require('smart-splits').resize_up() end,
5240
desc = 'Resize split up',
5341
},
5442
{
5543
'<C-Right>',
56-
function()
57-
require('smart-splits').resize_right()
58-
end,
44+
function() require('smart-splits').resize_right() end,
5945
desc = 'Resize split right',
6046
},
6147
},

0 commit comments

Comments
 (0)