[cd] eval .localrc [neovim] omit lsp autocmds when env set so
This commit is contained in:
parent
424dd161c1
commit
58bdfd856c
2 changed files with 19 additions and 11 deletions
|
@ -2,6 +2,9 @@ vim.o.updatetime = 250
|
|||
|
||||
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
|
||||
|
||||
local nvim_lsp_omit_dir = os.getenv("NVIM_LSP_OMIT_DIR")
|
||||
|
||||
if not nvim_lsp_omit_dir then
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = vim.api.nvim_create_augroup("lsp", { clear = true }),
|
||||
callback = function(args)
|
||||
|
@ -13,3 +16,4 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||
})
|
||||
end
|
||||
})
|
||||
end
|
||||
|
|
|
@ -20,6 +20,10 @@ function cd
|
|||
source .venv/bin/activate
|
||||
fi
|
||||
|
||||
if [ -f .localrc ]; then
|
||||
source .localrc
|
||||
fi
|
||||
|
||||
if [ $# -gt 1 ]; then
|
||||
if [ -f Makefile ]; then
|
||||
make ${@:2}
|
||||
|
|
Loading…
Reference in a new issue