feat(nix/home): add haskel

feat(prog/nvim): support haskel lsp
This commit is contained in:
Dmitriy Pleshevskiy 2022-04-12 16:08:50 +03:00
parent f651e814e8
commit 33b07ce43e
2 changed files with 15 additions and 0 deletions

View file

@ -122,6 +122,7 @@ in
};
initExtraFirst = ''
# nix
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
source $HOME/.nix-profile/etc/profile.d/nix.sh;
fi
@ -129,6 +130,11 @@ in
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH}
# ghcup
if [ -f "$HOME/.ghcup/env" ]; then
source "$HOME/.ghcup/env"
fi
'';
};

View file

@ -104,6 +104,15 @@ let g:NERDTreeGitStatusIndicatorMapCustom = {
let g:lsp_preview_max_width = 60
let g:lsp_diagnostics_float_cursor = 1
" if (executable('haskell-language-server-wrapper'))
" echom "Haskell lsp installed"
" au User lsp_setup call lsp#register_server({
" \ 'name': 'haskell-language-server-wrapper',
" \ 'cmd': {server_info->['haskell-language-server-wrapper', 'lsp']},
" \ 'whitelist': ['haskell'],
" \ })
" endif
function! s:on_lsp_buffer_enabled() abort
setlocal omnifunc=lsp#complete
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif