Skip to content

Commit a33fa17

Browse files
author
Charles Chiu
committed
style: fix stylua style
1 parent ed02591 commit a33fa17

File tree

11 files changed

+23
-39
lines changed

11 files changed

+23
-39
lines changed

lua/core/options.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ local function load_options()
5252
list = true,
5353
listchars = "tab:»·,nbsp:+,trail:·,extends:→,precedes:←",
5454
magic = true,
55-
-- mouse = "nv",
55+
mouse = "nv",
5656
mousescroll = "ver:3,hor:6",
5757
number = true,
5858
previewheight = 12,

lua/modules/completion/autopairs.lua

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ local cmp_autopairs = require("nvim-autopairs.completion.cmp")
55
local cmp = require("cmp")
66
local handlers = require("nvim-autopairs.completion.handlers")
77
cmp.event:on(
8-
"confirm_done",
9-
cmp_autopairs.on_confirm_done({
10-
filetypes = {
11-
-- "*" is an alias to all filetypes
12-
["*"] = {
13-
["("] = {
14-
kind = {
15-
cmp.lsp.CompletionItemKind.Function,
16-
cmp.lsp.CompletionItemKind.Method,
17-
},
18-
handler = handlers["*"],
19-
},
20-
},
21-
-- Disable for tex
22-
tex = false,
23-
},
24-
})
8+
"confirm_done",
9+
cmp_autopairs.on_confirm_done({
10+
filetypes = {
11+
-- "*" is an alias to all filetypes
12+
["*"] = {
13+
["("] = {
14+
kind = {
15+
cmp.lsp.CompletionItemKind.Function,
16+
cmp.lsp.CompletionItemKind.Method,
17+
},
18+
handler = handlers["*"],
19+
},
20+
},
21+
-- Disable for tex
22+
tex = false,
23+
},
24+
})
2525
)

lua/modules/editor/illuminate.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ require("illuminate").configure({
3131
-- vim.api.nvim_command([[ hi def link LspReferenceText CursorLine ]])
3232
-- vim.api.nvim_command([[ hi def link LspReferenceWrite CursorLine ]])
3333
-- vim.api.nvim_command([[ hi def link LspReferenceRead CursorLine ]])
34-

lua/modules/editor/matchup.lua

Lines changed: 0 additions & 5 deletions
This file was deleted.

lua/modules/editor/plugins.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,8 @@ editor["abecodes/tabout.nvim"] = {
136136
}
137137
editor["andymass/vim-matchup"] = {
138138
opt = true,
139-
after = "nvim-treesitter",
140139
cmd = { "MatchupWhereAmI" },
141-
config = function()
142-
require("modules.editor.matchup")
143-
end,
140+
after = "nvim-treesitter",
144141
}
145142
editor["romainl/vim-cool"] = {
146143
opt = true,

lua/modules/editor/treesitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ require("nvim-treesitter.configs").setup({
9494
-- Set to false if you have an `updatetime` of ~100.
9595
clear_on_cursor_move = true,
9696
},
97-
highlight_current_scope = { enable = true },
97+
highlight_current_scope = { enable = false },
9898
smart_rename = {
9999
enable = true,
100100
keymaps = {

lua/modules/editor/ts-autotag.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ require("nvim-ts-autotag").setup({
88
"vue",
99
},
1010
})
11-

lua/modules/tools/osc52.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ require("osc52").setup({
55
})
66

77
--- nvim-osc52 keymap
8-
local keymap = vim.keymap.set
98
-- In normal mode, <leader>c is an operator that will copy the given text to the clipboard.
109
vim.keymap.set("n", "<leader>c", require("osc52").copy_operator, { expr = true })
1110
-- In normal mode, <leader>cc will copy the current line.

lua/modules/tools/which-key.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ require("which-key").setup({
2525
winblend = 0,
2626
},
2727
})
28-

lua/modules/ui/fidget.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ require("fidget").setup({
2929
end,
3030
-- function to format each task line
3131
task = function(task_name, message, percentage)
32-
return string.format(
33-
"%s%s [%s]",
34-
message,
35-
percentage and string.format(" (%s%%)", percentage) or "",
36-
task_name
37-
)
32+
return string.format("%s%s [%s]", message, percentage and string.format(" (%s%%)", percentage) or "", task_name)
3833
end,
3934
},
4035
-- sources = { -- Sources to configure

0 commit comments

Comments
 (0)