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
local cmp = require('cmp') | |
local lspkind = require('lspkind') | |
local t = function(str) | |
return vim.api.nvim_replace_termcodes(str, true, true, true) | |
end | |
local fk = vim.api.nvim_feedkeys | |
vim.g.copilot_no_tab_map = true | |
vim.g.copilot_assume_mapped = true |
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
-- vm: ft=lua ts=2 sw=2 expandtab | |
vim.loader.enable() | |
local config_path = vim.fn.stdpath('config') | |
local gist_map_table = { | |
['33797ca5e8eec8c4ac32c79c05b9b499'] = 'init-prev.vim', | |
['72cbbb413ef272e29cf912d5a7de67ad'] = 'lua/nvim-tree-config.lua', | |
['5660dd151ecc9ae091e418d1e4239e2b'] = 'lua/startup-screen.lua', | |
['e1d1a276c4746fc034a2eb6bb2a594db'] = 'lua/nvim-cmp-config.lua', | |
['075c027cc334550046b75cc58ba44fb9'] = 'lua/nvim-lsp-config.lua' |
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
if [ $UID -eq 0 ]; then | |
echo "*****************************************************" | |
echo "$(tput setaf 1)DO NOT RUN AS sudo $(tput sgr 0)" | |
echo "*****************************************************" | |
exit 1 | |
fi | |
ZPLUGINS=$HOME/.oh-my-zsh/custom/plugins | |
BREW=/home/linuxbrew/.linuxbrew | |
HAS_MAC=$(uname -a | grep -c Darwin) |
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
" vim: foldmethod=marker:foldmarker={{{,}}}:foldlevelstart=0:foldclose=all: | |
set title | |
set wrap | |
set splitright | |
set expandtab | |
set splitbelow | |
set number | |
set relativenumber | |
set termguicolors | |
set nofoldenable |
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
local config_path = vim.fn.stdpath('config') | |
local status_ok, alpha = pcall(require, 'alpha') | |
if not status_ok then return end | |
local path_ok, path = pcall(require, 'plenary.path') | |
if not path_ok then return end | |
local nwd = require('nvim-web-devicons') | |
local dashboard = require('alpha.themes.dashboard') |
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
" vim: foldmethod=marker:foldmarker={{{,}}}:foldlevelstart=0:foldclose=all: | |
set title | |
set wrap | |
set splitright | |
set expandtab | |
set splitbelow | |
set number | |
set relativenumber | |
set termguicolors | |
set nofoldenable |
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
require('mason-lspconfig').setup { | |
ensure_installed = { | |
'lua_ls', | |
'vimls', | |
-- 'yamlls', | |
'azure_pipelines_ls', | |
'volar', | |
'pyright', | |
'bashls', | |
'tsserver', |
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
local function on_attach(bufnr) | |
local api = require('nvim-tree.api') | |
local function opts(desc) | |
return { desc = 'nvim-tree: ' .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true } | |
end | |
-- Default mappings. Feel free to modify or remove as you wish. | |
-- |
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
-- https://www.hammerspoon.org/Spoons/SpoonInstall.html | |
hs.loadSpoon("SpoonInstall") | |
-- spoon.SpoonInstall:installSpoonFromZipURL("https://github.com/scottwhudson/Lunette/blob/master/Spoons/Lunette.spoon.zip?raw=true") | |
-- hs.loadSpoon("Lunette") | |
-- spoon.Lunette:bindHotkeys() | |
spoon.SpoonInstall:andUse("ReloadConfiguration") | |
spoon.ReloadConfiguration:start() | |
local function changeVolume(diff) |
NewerOlder