home: vim: fix lua formatting
This commit is contained in:
parent
c2d231d3f1
commit
1e9f6fe957
9 changed files with 19 additions and 18 deletions
|
|
@ -28,7 +28,7 @@ cmp.setup({
|
|||
end,
|
||||
["<C-n>"] = cmp.mapping(cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }),
|
||||
["<C-p>"] = cmp.mapping(cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }),
|
||||
["<C-d>"] = cmp.mapping.scroll_docs(-5),
|
||||
["<C-d>"] = cmp.mapping.scroll_docs(-5),
|
||||
["<C-f>"] = cmp.mapping.scroll_docs(5),
|
||||
["<C-y>"] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = false }),
|
||||
["<C-e>"] = cmp.mapping.abort(),
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
-- Intercept all fold commands
|
||||
-- stylua: ignore
|
||||
vim.g.fastfold_fold_command_suffixes = {
|
||||
"x", "X", "a", "A", "o", "O", "c", "C", "r", "R", "m", "M", "i", "n", "N",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local gitsigns = require('gitsigns')
|
||||
local gitsigns = require("gitsigns")
|
||||
local wk = require("which-key")
|
||||
|
||||
gitsigns.setup({
|
||||
|
|
@ -13,13 +13,13 @@ local keys = {
|
|||
["[c"] = { "&diff ? '[c' : '<cmd>Gitsigns prev_hunk<CR>'", "Previous hunk/diff", expr = true },
|
||||
["]c"] = { "&diff ? ']c' : '<cmd>Gitsigns next_hunk<CR>'", "Next hunk/diff", expr = true },
|
||||
|
||||
|
||||
-- Commands
|
||||
["<leader>g"] = {
|
||||
name = "Git",
|
||||
-- Actions
|
||||
b = { gitsigns.toggle_current_line_blame, "Toggle blame virtual text" },
|
||||
d = { gitsigns.diffthis, "Diff buffer" },
|
||||
-- stylua: ignore
|
||||
D = { function() gitsigns.diffthis("~") end, "Diff buffer against last commit" },
|
||||
g = { "<cmd>Git<CR>", "Git status" },
|
||||
h = { gitsigns.toggle_deleted, "Show deleted hunks" },
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ null_ls.register({
|
|||
}),
|
||||
})
|
||||
|
||||
|
||||
-- Shell (non-POSIX)
|
||||
null_ls.register({
|
||||
null_ls.builtins.code_actions.shellcheck.with({
|
||||
|
|
@ -98,7 +97,7 @@ null_ls.register({
|
|||
-- Shell (POSIX)
|
||||
null_ls.register({
|
||||
null_ls.builtins.code_actions.shellcheck.with({
|
||||
-- Restrict to POSIX sh
|
||||
-- Restrict to POSIX sh
|
||||
filetypes = { "sh" },
|
||||
-- Only used if available
|
||||
condition = utils.is_executable_condition("shellcheck"),
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@ if not require("ambroisie.utils").is_ssh() then
|
|||
end
|
||||
|
||||
local function copy(lines, _)
|
||||
require('osc52').copy(table.concat(lines, '\n'))
|
||||
require("osc52").copy(table.concat(lines, "\n"))
|
||||
end
|
||||
|
||||
local function paste()
|
||||
return {vim.fn.split(vim.fn.getreg(''), '\n'), vim.fn.getregtype('')}
|
||||
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
|
||||
end
|
||||
|
||||
vim.g.clipboard = {
|
||||
name = 'osc52',
|
||||
copy = {['+'] = copy, ['*'] = copy},
|
||||
paste = {['+'] = paste, ['*'] = paste},
|
||||
name = "osc52",
|
||||
copy = { ["+"] = copy, ["*"] = copy },
|
||||
paste = { ["+"] = paste, ["*"] = paste },
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ telescope.setup({
|
|||
["<C-h>"] = "which_key",
|
||||
-- I want the normal readline mappings rather than scrolling
|
||||
["<C-u>"] = false,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
fzf = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue