Last active
September 17, 2023 20:19
-
-
Save thiago-rezende/9c09a6e51b5df84b74efceee243a94ff to your computer and use it in GitHub Desktop.
Simple NeoVim config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- ██░ ██ ▒█████ ██▀███ █ ██ ██████ | |
-- ▓██░ ██▒▒██▒ ██▒▓██ ▒ ██▒ ██ ▓██▒▒██ ▒ | |
-- ▒██▀▀██░▒██░ ██▒▓██ ░▄█ ▒▓██ ▒██░░ ▓██▄ | |
-- ░▓█ ░██ ▒██ ██░▒██▀▀█▄ ▓▓█ ░██░ ▒ ██▒ | |
-- ░▓█▒░██▓░ ████▓▒░░██▓ ▒██▒▒▒█████▓ ▒██████▒▒ | |
-- ▒ ░░▒░▒░ ▒░▒░▒░ ░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒ ▒▓▒ ▒ ░ | |
-- ▒ ░▒░ ░ ░ ▒ ▒░ ░▒ ░ ▒░░░▒░ ░ ░ ░ ░▒ ░ ░ | |
-- ░ ░░ ░░ ░ ░ ▒ ░░ ░ ░░░ ░ ░ ░ ░ ░ | |
-- ░ ░ ░ ░ ░ ░ ░ ░ | |
-- | |
-- Filename: init.lua | |
-- GitHub: https://github.com/thiago-rezende/dotfiles | |
-- Maintainer: Thiago Rezende <thiago.manoel.rezende@gmail.com> | |
-- Colors {{{ | |
vim.cmd([[ | |
colorscheme slate | |
]]) | |
-- }}} | |
-- Tabs And Spaces {{{ | |
vim.cmd([[ | |
set smarttab | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=0 | |
]]) | |
-- }}} | |
-- Line Numbers {{{ | |
vim.cmd([[ | |
set nu! | |
]]) | |
-- }}} | |
-- Folding {{{ | |
vim.cmd([[ | |
set foldmethod=syntax | |
set foldlevel=0 | |
]]) | |
-- }}} | |
-- Line Moving {{{ | |
vim.cmd([[ | |
nnoremap <A-j> :m .+1<CR>== | |
nnoremap <A-k> :m .-2<CR>== | |
inoremap <A-j> <Esc>:m .+1<CR>==gi | |
inoremap <A-k> <Esc>:m .-2<CR>==gi | |
vnoremap <A-j> :m '>+1<CR>gv=gv | |
vnoremap <A-k> :m '<-2<CR>gv=gv | |
]]) | |
-- }}} | |
-- Plugins {{{ | |
-- require('plugins') | |
-- }}} | |
-- vim:foldmethod=marker:foldlevel=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- ██░ ██ ▒█████ ██▀███ █ ██ ██████ | |
-- ▓██░ ██▒▒██▒ ██▒▓██ ▒ ██▒ ██ ▓██▒▒██ ▒ | |
-- ▒██▀▀██░▒██░ ██▒▓██ ░▄█ ▒▓██ ▒██░░ ▓██▄ | |
-- ░▓█ ░██ ▒██ ██░▒██▀▀█▄ ▓▓█ ░██░ ▒ ██▒ | |
-- ░▓█▒░██▓░ ████▓▒░░██▓ ▒██▒▒▒█████▓ ▒██████▒▒ | |
-- ▒ ░░▒░▒░ ▒░▒░▒░ ░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒ ▒▓▒ ▒ ░ | |
-- ▒ ░▒░ ░ ░ ▒ ▒░ ░▒ ░ ▒░░░▒░ ░ ░ ░ ░▒ ░ ░ | |
-- ░ ░░ ░░ ░ ░ ▒ ░░ ░ ░░░ ░ ░ ░ ░ ░ | |
-- ░ ░ ░ ░ ░ ░ ░ ░ | |
-- | |
-- Filename: plugins.lua | |
-- GitHub: https://github.com/thiago-rezende/dotfiles | |
-- Maintainer: Thiago Rezende <thiago.manoel.rezende@gmail.com> | |
-- Packer Bootstrap {{{ | |
local ensure_packer = function() | |
local fn = vim.fn | |
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' | |
if fn.empty(fn.glob(install_path)) > 0 then | |
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) | |
vim.cmd [[packadd packer.nvim]] | |
return true | |
end | |
return false | |
end | |
local packer_bootstrap = ensure_packer() | |
-- }}} | |
-- Packages Setup {{{ | |
return require('packer').startup(function(use) | |
-- Packer Self Management {{{ | |
use 'wbthomason/packer.nvim' | |
-- }}} | |
-- Packer Bootstrap {{{ | |
if packer_bootstrap then | |
require('packer').sync() | |
end | |
-- }}} | |
end) | |
-- }}} | |
-- vim:foldmethod=marker:foldlevel=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment