1
0

FIX: Restructured nvim plugins. moved the configuration for each plugin through Lazy in seperate files.

This commit is contained in:
2024-03-26 12:51:53 +01:00
parent a1ef89b3c9
commit b844031323
13 changed files with 185 additions and 189 deletions

15
lua/barink/keys.lua Normal file
View File

@@ -0,0 +1,15 @@
-- Keymaps
vim.g.mapleader = " "
vim.keymap.set('n', '<leader><F8>', vim.cmd.UndotreeToggle)
vim.keymap.set('n', '<leader>p', [["_dP]])
vim.keymap.set('n', '<leader>fa', vim.lsp.buf.format)
vim.keymap.set('n', '<leader>m', ":Mason<CR>")
local 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