1
0

Added additional mappings

This commit is contained in:
Nigel Barink 2024-03-24 17:17:11 +01:00
parent 1f08b9e9c4
commit 0bb6067bb9
Signed by: Nigel
GPG Key ID: 6893A31C2D84A9D2
2 changed files with 14 additions and 0 deletions

View File

@ -1 +1,3 @@
require("barink")
vim.g.netrw_browse_split = 0
vim.g.netrw_winsize = 25

View File

@ -102,3 +102,15 @@ vim.keymap.set('n', '<leader>fs', builtin.git_files, {})
vim.keymap.set('n', '<leader><F8>', vim.cmd.UndotreeToggle)
vim.keymap.set('n', '<leader>p', [["_dP]])
vim.keymap.set('n', '<leader>f', vim.lsp.buf.format)
osname = vim.loop.os_uname().sysname
if osname == "Windows_NT" then
print("Windows Detected!!")
vim.keymap.set('n', '<leader>x', function() print("sorry this is windows!")end)
elseif osname == "Linux" then
-- Linux only!!
vim.keymap.set('n', '<leader>x', "<cmd>!chmod +x %<CR>", { silent =true })
end