Initial commit
This commit is contained in:
1 parent
e81de8ab48
commit
29bce4a7f5
118 files changed
+7799
No files matched your search
@@ -0,0 +1,11 @@
|
||||
local status, _ = pcall(vim.cmd, "colorscheme onedark")
|
||||
if not status then
|
||||
print("Colorscheme not found!") -- print error if colorscheme not installed
|
||||
return
|
||||
end
|
||||
|
||||
require('onedark').setup {
|
||||
style = 'darker',
|
||||
transparent = true
|
||||
}
|
||||
require('onedark').load()
|
||||
@@ -0,0 +1,19 @@
|
||||
vim.g.mapleader = " "
|
||||
|
||||
local keymap = vim.keymap -- haz las cosas facil..
|
||||
|
||||
-- General Keymaps
|
||||
|
||||
-- window management
|
||||
keymap.set("n", "<leader>sv", "<C-w>v") -- split window vertically
|
||||
keymap.set("n", "<leader>sh", "<C-w>s") -- split window horizontally
|
||||
keymap.set("n", "<leader>se", "<C-w>=") -- make split windows equal width & height
|
||||
keymap.set("n", "<leader>sx", ":close<CR>") -- close current split window
|
||||
|
||||
keymap.set("n", "<leader>to", ":tabnew<CR>") -- open new tab
|
||||
keymap.set("n", "<leader>tx", ":tabclose<CR>") -- close current tab
|
||||
keymap.set("n", "<leader>tn", ":tabn<CR>") -- go to next tab
|
||||
keymap.set("n", "<leader>tp", ":tabp<CR>") -- go to previous tab
|
||||
|
||||
-- nvim-tree
|
||||
keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>") -- toggle file explorer
|
||||
@@ -0,0 +1,39 @@
|
||||
local opt = vim.opt -- for conciseness
|
||||
|
||||
-- Numeracion de las lineas
|
||||
opt.relativenumber = true
|
||||
opt.number = true
|
||||
|
||||
-- tabs & indentation
|
||||
opt.tabstop = 4
|
||||
opt.shiftwidth = 4
|
||||
opt.expandtab = true
|
||||
opt.autoindent = true
|
||||
|
||||
-- Line wrapping
|
||||
opt.wrap = false
|
||||
|
||||
-- Search setting
|
||||
opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
|
||||
-- Cursor line
|
||||
opt.cursorline = true
|
||||
|
||||
-- appearance
|
||||
opt.termguicolors = true
|
||||
opt.background = "dark"
|
||||
opt.signcolumn = "yes"
|
||||
|
||||
-- Backspace
|
||||
opt.backspace = "indent,eol,start"
|
||||
|
||||
-- Clipboard
|
||||
opt.clipboard:append("unnamedplus")
|
||||
|
||||
-- Splitt Windows
|
||||
opt.splitright = true
|
||||
opt.splitbelow = true
|
||||
|
||||
opt.iskeyword:append("-")
|
||||
|
||||
Reference in new issue
Block a user