mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 09:47:57 +02:00
chore: Fix formatting
This commit is contained in:
parent
a7877944f4
commit
1287f7dabc
@ -181,7 +181,7 @@ in
|
|||||||
nnoremap <silent> <leader>b :Vista!!<CR>
|
nnoremap <silent> <leader>b :Vista!!<CR>
|
||||||
vnoremap <C-s> y:silent !notify-send -t 4000 "成果" "$(tango '<C-r>0')"<CR>:<Esc>
|
vnoremap <C-s> y:silent !notify-send -t 4000 "成果" "$(tango '<C-r>0')"<CR>:<Esc>
|
||||||
|
|
||||||
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
||||||
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
||||||
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
|
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
|
||||||
|
|
||||||
@ -198,7 +198,9 @@ in
|
|||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({"QuitPre"}, {
|
vim.api.nvim_create_autocmd({"QuitPre"}, {
|
||||||
callback = function() vim.cmd("NvimTreeClose") end
|
callback = function()
|
||||||
|
vim.cmd("NvimTreeClose")
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
local function open_nvim_tree(data)
|
local function open_nvim_tree(data)
|
||||||
@ -501,7 +503,7 @@ in
|
|||||||
startify.section.header.val = vim.fn.system("${pkgs.fish}/bin/fish -c 'cat (random choice (${pkgs.fd}/bin/fd . ${pkgs.ponysay}/share/ponysay/quotes --ignore-file ~/.config/fd/ponyignore)) | head -n 1'")
|
startify.section.header.val = vim.fn.system("${pkgs.fish}/bin/fish -c 'cat (random choice (${pkgs.fd}/bin/fd . ${pkgs.ponysay}/share/ponysay/quotes --ignore-file ~/.config/fd/ponyignore)) | head -n 1'")
|
||||||
|
|
||||||
startify.section.top_buttons.val = {
|
startify.section.top_buttons.val = {
|
||||||
startify.button("e", "新しいファイル", "<cmd>ene <CR>")
|
startify.button("e", "新しいファイル", "<cmd>ene <CR>")
|
||||||
}
|
}
|
||||||
|
|
||||||
startify.section.mru.val = { { type = "padding", val = 0 } }
|
startify.section.mru.val = { { type = "padding", val = 0 } }
|
||||||
@ -510,11 +512,11 @@ in
|
|||||||
{ type = "text", val = "歴史", opts = { hl = "SpecialComment", shrink_margin = false } },
|
{ type = "text", val = "歴史", opts = { hl = "SpecialComment", shrink_margin = false } },
|
||||||
{ type = "padding", val = 1 },
|
{ type = "padding", val = 1 },
|
||||||
{
|
{
|
||||||
type = "group",
|
type = "group",
|
||||||
val = function()
|
val = function()
|
||||||
return { startify.mru(0, vim.fn.getcwd()) }
|
return { startify.mru(0, vim.fn.getcwd()) }
|
||||||
end,
|
end,
|
||||||
opts = { shrink_margin = false },
|
opts = { shrink_margin = false },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user