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
--########################################################################################################## | |
-- LSP Keybindings and completion--------------------------------------------------------------------------- | |
--################################################################################################################### | |
local nvim_lsp = require('lspconfig') | |
vim.lsp.set_log_level 'debug' | |
-- Use an on_attach function to only map the following keys | |
-- after the language server attaches to the current buffer | |
local on_attach = function(client, bufnr) | |
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end |
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 has('vim_starting') | |
set encoding=utf-8 | |
endif | |
scriptencoding utf-8 | |
if &compatible | |
set nocompatible | |
endif | |
let s:plug_dir = expand('/tmp/plugged/vim-plug') |
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 on_windows = vim.loop.os_uname().version:match 'Windows' | |
local function join_paths(...) | |
local path_sep = on_windows and '\\' or '/' | |
local result = table.concat({ ... }, path_sep) | |
return result | |
end | |
vim.cmd [[set runtimepath=$VIMRUNTIME]] |
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
#!/usr/bin/env bash | |
# find "${1}" -maxdepth 1 -not -path "${1}" -type d -printf "%f\n" | |
# find "${1}" -maxdepth 1 -not -path "${1}" -type d -print0 | |
readarray -d '' myArray1 < <(find "${1}" -maxdepth 1 -not -path "${1}" -type d -printf "%f\n") | |
readarray -d '' myArray2 < <(find "${1}" -maxdepth 1 -not -path "${1}" -type d -print0) | |
echo "myArray1\n" | |
for i in "${myArray1[@]}" ; do | |
echo "$i " | |
done |
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 on_windows = vim.loop.os_uname().version:match 'Windows' | |
local function join_paths(...) | |
local path_sep = on_windows and '\\' or '/' | |
local result = table.concat({ ... }, path_sep) | |
return result | |
end | |
vim.cmd [[set runtimepath=$VIMRUNTIME]] |
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 has('vim_starting') | |
set encoding=utf-8 | |
endif | |
scriptencoding utf-8 | |
if &compatible | |
set nocompatible | |
endif | |
let s:plug_dir = expand('/tmp/plugged/vim-plug') |