mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
nh: nix-helper
This commit is contained in:
parent
d12c5d5e4e
commit
8a266783a2
9 changed files with 52 additions and 3 deletions
3
home/dot_config/lazygit/config.yml
Normal file
3
home/dot_config/lazygit/config.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
git:
|
||||
pagers:
|
||||
- pager: delta --dark --paging=never
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
git:
|
||||
paging:
|
||||
pager: delta --dark --paging=never
|
||||
8
home/dot_config/nvim/ftplugin/json.lua
Normal file
8
home/dot_config/nvim/ftplugin/json.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
vim.keymap.set("n", "<leader>mp", '<cmd>!jq<CR>', {
|
||||
desc = "Pretiffy json",
|
||||
buffer = true
|
||||
})
|
||||
vim.keymap.set("i", "<C-m>p", '<cmd>%!jq<CR>', {
|
||||
desc = "Pretiffy json",
|
||||
buffer = true
|
||||
})
|
||||
8
home/dot_config/nvim/ftplugin/jsonc.lua
Normal file
8
home/dot_config/nvim/ftplugin/jsonc.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
vim.keymap.set("n", "<leader>mp", '<cmd>!jq<CR>', {
|
||||
desc = "Pretiffy json",
|
||||
buffer = true
|
||||
})
|
||||
vim.keymap.set("i", "<C-m>p", '<cmd>%!jq<CR>', {
|
||||
desc = "Pretiffy json",
|
||||
buffer = true
|
||||
})
|
||||
3
home/dot_config/nvim/ftplugin/lua.lua
Normal file
3
home/dot_config/nvim/ftplugin/lua.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
vim.bo.shiftwidth = 2
|
||||
vim.bo.softtabstop = 2
|
||||
vim.bo.expandtab = true
|
||||
3
home/dot_config/nvim/ftplugin/markdown.lua
Normal file
3
home/dot_config/nvim/ftplugin/markdown.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
vim.bo.shiftwidth = 2
|
||||
vim.bo.softtabstop = 2
|
||||
vim.bo.expandtab = true
|
||||
16
home/dot_config/nvim/ftplugin/sh.lua
Normal file
16
home/dot_config/nvim/ftplugin/sh.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
vim.keymap.set("n", "<leader>mx", '<cmd>!chmod +x "%"<CR>', {
|
||||
desc = "Mark the file as executable",
|
||||
buffer = true
|
||||
})
|
||||
vim.keymap.set("i", "<C-m>x", '<cmd>!chmod +x "%"<CR>', {
|
||||
desc = "Mark the file as executable",
|
||||
buffer = true
|
||||
})
|
||||
vim.keymap.set("n", "<leader>mX", '<cmd>!chmod u+x "%"<CR>', {
|
||||
desc = "Mark the file as executable (current user only)",
|
||||
buffer = true
|
||||
})
|
||||
vim.keymap.set("i", "<C-m>X", '<cmd>!chmod u+x "%"<CR>', {
|
||||
desc = "Mark the file as executable (current user only)",
|
||||
buffer = true
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue