style(nvim): run stylua
This commit is contained in:
parent
bc4e9b7952
commit
903a36451d
|
@ -7,9 +7,24 @@ neogit.setup {
|
||||||
disable_commit_confirmation = true,
|
disable_commit_confirmation = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
local nmap = require('opdavies.keymap').nmap
|
local nmap = require("opdavies.keymap").nmap
|
||||||
|
|
||||||
nmap { "<leader>gc", function() neogit.open { "commit" } end }
|
nmap {
|
||||||
nmap { "<leader>gl", function() neogit.open { "log" } end }
|
"<leader>gc",
|
||||||
nmap { "<leader>gp", function() neogit.open { "push" } end }
|
function()
|
||||||
|
neogit.open { "commit" }
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
nmap {
|
||||||
|
"<leader>gl",
|
||||||
|
function()
|
||||||
|
neogit.open { "log" }
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
nmap {
|
||||||
|
"<leader>gp",
|
||||||
|
function()
|
||||||
|
neogit.open { "push" }
|
||||||
|
end,
|
||||||
|
}
|
||||||
nmap { "<leader>gs", neogit.open }
|
nmap { "<leader>gs", neogit.open }
|
||||||
|
|
|
@ -3,9 +3,9 @@ if not has_lir then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local actions = require'lir.actions'
|
local actions = require "lir.actions"
|
||||||
local clipboard_actions = require'lir.clipboard.actions'
|
local clipboard_actions = require "lir.clipboard.actions"
|
||||||
local mark_actions = require 'lir.mark.actions'
|
local mark_actions = require "lir.mark.actions"
|
||||||
|
|
||||||
lir.setup {
|
lir.setup {
|
||||||
hide_cursor = true,
|
hide_cursor = true,
|
||||||
|
@ -13,37 +13,37 @@ lir.setup {
|
||||||
-- devicons_enable = true,
|
-- devicons_enable = true,
|
||||||
|
|
||||||
mappings = {
|
mappings = {
|
||||||
['l'] = actions.edit,
|
["l"] = actions.edit,
|
||||||
['<C-s>'] = actions.split,
|
["<C-s>"] = actions.split,
|
||||||
['<C-v>'] = actions.vsplit,
|
["<C-v>"] = actions.vsplit,
|
||||||
['<C-t>'] = actions.tabedit,
|
["<C-t>"] = actions.tabedit,
|
||||||
|
|
||||||
['h'] = actions.up,
|
["h"] = actions.up,
|
||||||
['q'] = actions.quit,
|
["q"] = actions.quit,
|
||||||
|
|
||||||
['K'] = actions.mkdir,
|
["K"] = actions.mkdir,
|
||||||
['N'] = actions.newfile,
|
["N"] = actions.newfile,
|
||||||
['R'] = actions.rename,
|
["R"] = actions.rename,
|
||||||
['@'] = actions.cd,
|
["@"] = actions.cd,
|
||||||
['Y'] = actions.yank_path,
|
["Y"] = actions.yank_path,
|
||||||
['.'] = actions.toggle_show_hidden,
|
["."] = actions.toggle_show_hidden,
|
||||||
['D'] = actions.delete,
|
["D"] = actions.delete,
|
||||||
|
|
||||||
['J'] = function()
|
["J"] = function()
|
||||||
mark_actions.toggle_mark()
|
mark_actions.toggle_mark()
|
||||||
vim.cmd('normal! j')
|
vim.cmd "normal! j"
|
||||||
end,
|
end,
|
||||||
|
|
||||||
['C'] = clipboard_actions.copy,
|
["C"] = clipboard_actions.copy,
|
||||||
['X'] = clipboard_actions.cut,
|
["X"] = clipboard_actions.cut,
|
||||||
['P'] = clipboard_actions.paste,
|
["P"] = clipboard_actions.paste,
|
||||||
},
|
},
|
||||||
|
|
||||||
float = {
|
float = {
|
||||||
winblend = 0,
|
winblend = 0,
|
||||||
curdir_window = {
|
curdir_window = {
|
||||||
enable = false,
|
enable = false,
|
||||||
highlight_dirname = false
|
highlight_dirname = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -58,7 +58,6 @@ lir.setup {
|
||||||
)
|
)
|
||||||
|
|
||||||
-- echo cwd
|
-- echo cwd
|
||||||
vim.api.nvim_echo({ { vim.fn.expand("%:p"), "Normal" } }, false, {})
|
vim.api.nvim_echo({ { vim.fn.expand "%:p", "Normal" } }, false, {})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ local nvim_status = require "lsp-status"
|
||||||
local imap = require("opdavies.keymap").imap
|
local imap = require("opdavies.keymap").imap
|
||||||
local nmap = require("opdavies.keymap").nmap
|
local nmap = require("opdavies.keymap").nmap
|
||||||
|
|
||||||
local telescope_mapper = require("opdavies.telescope.mappings")
|
local telescope_mapper = require "opdavies.telescope.mappings"
|
||||||
|
|
||||||
local buf_nnoremap = function(opts)
|
local buf_nnoremap = function(opts)
|
||||||
opts.buffer = 0
|
opts.buffer = 0
|
||||||
|
|
|
@ -19,5 +19,5 @@ null_ls.setup {
|
||||||
diagnostics.phpstan,
|
diagnostics.phpstan,
|
||||||
|
|
||||||
completion.spell,
|
completion.spell,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ local function set_vim_o()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.opt.clipboard:append "unnamedplus"
|
vim.opt.clipboard:append "unnamedplus"
|
||||||
vim.opt.completeopt = {"menu", "menuone", "noselect"}
|
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
||||||
end
|
end
|
||||||
|
|
||||||
M.setup = function()
|
M.setup = function()
|
||||||
|
|
|
@ -51,7 +51,7 @@ end
|
||||||
|
|
||||||
function M.live_grep()
|
function M.live_grep()
|
||||||
require("telescope.builtin").live_grep {
|
require("telescope.builtin").live_grep {
|
||||||
sorting_strategy = "ascending"
|
sorting_strategy = "ascending",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue