This file contains hidden or 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
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' | |
-- Auto-install lazy.nvim if not present | |
if not vim.loop.fs_stat(lazypath) then | |
print('Installing lazy.nvim....') | |
vim.fn.system({ | |
'git', | |
'clone', | |
'--filter=blob:none', | |
'https://github.com/folke/lazy.nvim.git', |
This file contains hidden or 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
#! /usr/bin/env lua | |
local function main(argv) | |
local name = argv[1] or 'World' | |
sh.spawn('echo "Hello, %s!"', name) | |
end | |
--- | |
-- I/O helper functions |
This file contains hidden or 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
" vimscript version of the config in this blog post: | |
" https://vonheikemen.github.io/devlog/tools/simple-neovim-config/ | |
set number | |
set tabstop=2 | |
set shiftwidth=2 | |
set smartcase | |
set ignorecase | |
set nowrap | |
set nohlsearch |
This file contains hidden or 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
-- Lua config from this blog post: | |
-- https://vonheikemen.github.io/devlog/tools/simple-neovim-config/ | |
-- Dependencies: | |
-- https://github.com/neovim/nvim-lspconfig | |
-- https://github.com/echasnovski/mini.nvim | |
vim.o.number = true | |
vim.o.tabstop = 2 | |
vim.o.shiftwidth = 2 | |
vim.o.smartcase = true |
OlderNewer