feat(nix/home): add haskel
feat(prog/nvim): support haskel lsp
This commit is contained in:
parent
f651e814e8
commit
33b07ce43e
2 changed files with 15 additions and 0 deletions
|
@ -122,6 +122,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
initExtraFirst = ''
|
initExtraFirst = ''
|
||||||
|
# nix
|
||||||
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||||
source $HOME/.nix-profile/etc/profile.d/nix.sh;
|
source $HOME/.nix-profile/etc/profile.d/nix.sh;
|
||||||
fi
|
fi
|
||||||
|
@ -129,6 +130,11 @@ in
|
||||||
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||||
|
|
||||||
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH}
|
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH}
|
||||||
|
|
||||||
|
# ghcup
|
||||||
|
if [ -f "$HOME/.ghcup/env" ]; then
|
||||||
|
source "$HOME/.ghcup/env"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,15 @@ let g:NERDTreeGitStatusIndicatorMapCustom = {
|
||||||
let g:lsp_preview_max_width = 60
|
let g:lsp_preview_max_width = 60
|
||||||
let g:lsp_diagnostics_float_cursor = 1
|
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
|
function! s:on_lsp_buffer_enabled() abort
|
||||||
setlocal omnifunc=lsp#complete
|
setlocal omnifunc=lsp#complete
|
||||||
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
|
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
|
||||||
|
|
Loading…
Reference in a new issue