NID74IBESPTJUVIH7G6VBVJXUY7GBX654AMIG2MWFHFRMI7RZXAQC
2BXRWYE2ZSSO6G5GEVUHMX2MR2HDWJMSXCQEZDSXVYTPOYVGKEJAC
XWDYSQGRZY2ALY4IS7RJNLNDAKKTLSPMHJTRNQ4NAPVTCCVQOKRAC
JB324YVUIGIJPM2BUXD5MLYRHL223R2YZQDR6KTNHYG7LYFRIFHAC
GG5KTOZLZKU47CB6USY7UIO22IQ4DU47ES6HKOQ336QSYKTSRJYAC
NTFTD777J7E4TZ4YKR2EXL56IRDEPAHARARVUGDTRX7OHMXWA7OAC
MOVQVOTH2V43VZF7OVQ4MB2KN47YBAZ4KTPH7L4COKGFH5T7SQ3AC
EQIYV4GQF2HJB6AGRGBCSBZSETC7EZ2SOZOMYFRNNN7RODZ5EQ3QC
I25MEXARE4V66FEQ5PM2O6GYQWFH6YB5CUAB76ZJSZAJLDUP47RAC
customRC = ''
set number relativenumber
set showcmd
set updatetime=300
set splitbelow
set tabstop=4
set shiftwidth=4
set expandtab
" javascript and typescript use tabs instead of spaces.
autocmd Filetype tsx setlocal noexpandtab
autocmd Filetype jsx setlocal noexpandtab
autocmd Filetype js setlocal noexpandtab
autocmd Filetype ts setlocal noexpandtab
let g:tex_flavor = 'latex'
let g:vimtex_view_general_viewer = 'zathura'
let g:coc_global_extensions = [ 'coc-omnisharp', 'coc-rust-analyzer', 'coc-go', 'coc-actions', 'coc-emmet', 'coc-css', 'coc-tsserver', 'coc-prettier', 'coc-deno','coc-html', 'coc-eslint']
function! OpenTerminal()
split term://ion
resize 10
endfunction
nnoremap <c-n> <silent> :call OpenTerminal()<CR>
" git stuff.
let g:gitgutter_sign_added = '✚'
let g:gitgutter_sign_modified = '✹'
let g:gitgutter_sign_removed = '-'
let g:gitgutter_sign_removed_first_line = '-'
let g:gitgutter_sign_modified_removed = '-'
" use alt+hjkl to move between split/vsplit panels
tnoremap <A-h> <C-\><C-n><C-w>h
tnoremap <A-j> <C-\><C-n><C-w>j
tnoremap <A-k> <C-\><C-n><C-w>k
tnoremap <A-l> <C-\><C-n><C-w>l
nnoremap <A-h> <C-w>h
nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l
inoremap <silent><expr><c-space> coc#refresh()
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
autocmd BufWritePre * :silent! call CocAction('format')
"BASE16 themeing stuff
let base16colorspace=256 " Access colors present in 256 colorspace
colorscheme $BASE16_THEME
'';
customRC = "lua require('config')";
lua require('config')
local setOptions = function()
local scopes = {o = vim.o, b = vim.bo, w = vim.wo}
local opt = function(scope, key, value)
scopes[scope][key] = value
if scope ~= 'o' then scopes['o'][key] = value end
end
vim.wo.relativenumber = true
vim.wo.number = true
vim.bo.shiftwidth = 4
vim.bo.tabstop = 4
vim.bo.expandtab = true
vim.o.updatetime = 300
vim.o.splitbelow = true
vim.o.termguicolors = true
vim.o.showcmd = true
end
local latexSetUp = function()
vim.g.tex_flavor = 'latex'
vim.g.vimtex_view_general_viewer = 'zathura'
end
local cocSetUp = function()
vim.g.coc_global_extensions = { 'coc-omnisharp', 'coc-rust-analyzer', 'coc-go', 'coc-actions', 'coc-emmet', 'coc-css', 'coc-tsserver', 'coc-prettier', 'coc-deno','coc-html', 'coc-eslint'}
vim.api.nvim_command('autocmd BufWritePre * :silent! call CocAction(\'format\')')
end
-- Makes a window and returns it's buffer.
local make_window = function(width, height, x, y, style, relative)
local buf = vim.api.nvim_create_buf(false, true)
local opts = {
style = style,
relative = relative,
width = width,
height = height,
row = x,
col = y
}
local win = vim.api.nvim_open_win(buf, true, opts)
return buf
end
--Opens a terminal in a floating window.
local OpenTerminal = function()
local width = vim.api.nvim_get_option("columns")
local height = vim.api.nvim_get_option("lines")
local win_height = math.ceil(height * 0.8)
local win_width = math.ceil(width * 0.8)
local col_pos = math.floor(width * 0.1)
local row_pos = math.floor(height * 0.1)
local buffer = make_window(win_width, win_height, row_pos, col_pos, "minimal", "editor")
vim.api.nvim_command('term')
end
local gitgutterSetUp = function()
vim.g.gitgutter_sign_added = '✚'
vim.g.gitgutter_sign_modified = '✹'
vim.g.gitgutter_sign_removed = '-'
vim.g.gitgutter_sign_removed_first_line = '-'
vim.g.gitgutter_sign_modified_removed = '-'
end
local setUpAll = function()
setOptions()
gitgutterSetUp()
latexSetUp()
cocSetUp()
end
local setKeybindings = function()
--keybindings
vimp.nnoremap({'silent'}, '<c-n>', OpenTerminal)
vimp.bind('ni','<A-h>', function() vim.cmd(':wincmd h') end)
vimp.bind('ni','<A-j>', function() vim.cmd(':wincmd j') end)
vimp.bind('ni','<A-k>', function() vim.cmd(':wincmd k') end)
vimp.bind('ni','<A-l>', function() vim.cmd(':wincmd l') end)
vimp.bind('n', 'gd<Plug>', '(coc-definition)' )
vimp.bind('n', 'gy<Plug>', '(coc-type-definition)')
end
-- entry point
local main = function()
--set color
vim.cmd('colorscheme base16-gruvbox-dark-hard')
setKeybindings()
setUpAll()
end
main()
self: super:
let unstable = import<unstable> {};
in
{
neovim-unwrapped = super.neovim-unwrapped.overrideAttrs(oldAttrs: {
version = "01-27-2021";
src = self.fetchFromGitHub {
owner = "neovim";
repo = "neovim";
rev = "459a6c845e87662aa9aa0d6a0a68dc8d817a0498";
sha256 = "0qs05mq70z7hqqmch7siyng4bry1r2fc36iw0pkyzfiy9rv5fvlq";
};
buildInputs = (oldAttrs.buildInputs ++ ([ unstable.tree-sitter ]));
cmakeFlags = oldAttrs.cmakeFlags ++ [
"-DUSE_BUNDLED=OFF"
];
});
}