Added additional mappings
This commit is contained in:
parent
1f08b9e9c4
commit
0bb6067bb9
2
init.lua
2
init.lua
@ -1 +1,3 @@
|
||||
require("barink")
|
||||
vim.g.netrw_browse_split = 0
|
||||
vim.g.netrw_winsize = 25
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user