Refresh generated neovim config
This commit is contained in:
@ -37,208 +37,268 @@ HaskellTools *HaskellTools*
|
||||
plugin configuration *haskell-tools.config*
|
||||
|
||||
To configure haskell-tools.nvim, set the variable `vim.g.haskell_tools`,
|
||||
which is a `HTOpts` table, in your neovim configuration.
|
||||
which is a `haskell-tools.Opts` table, in your neovim configuration.
|
||||
|
||||
Example:
|
||||
>
|
||||
---@type HTOpts
|
||||
---@type haskell-tools.Opts
|
||||
vim.g.haskell_tools = {
|
||||
---@type ToolsOpts
|
||||
---@type haskell-tools.tools.Opts
|
||||
tools = {
|
||||
-- ...
|
||||
},
|
||||
---@type HaskellLspClientOpts
|
||||
---@type haskell-tools.lsp.ClientOpts
|
||||
hls = {
|
||||
on_attach = function(client, bufnr)
|
||||
-- Set keybindings, etc. here.
|
||||
end,
|
||||
-- ...
|
||||
},
|
||||
---@type HTDapOpts
|
||||
---@type haskell-tools.dap.Opts
|
||||
dap = {
|
||||
-- ...
|
||||
},
|
||||
}
|
||||
<
|
||||
|
||||
Note: `vim.g.haskell_tools` can also be a function that returns a 'HTOpts' table.
|
||||
Note: `vim.g.haskell_tools` can also be a function that returns a 'haskell-tools.Opts' table.
|
||||
|
||||
|
||||
HTOpts *HTOpts*
|
||||
haskell-tools.Opts *haskell-tools.Opts*
|
||||
|
||||
Fields: ~
|
||||
{tools?} (ToolsOpts) haskell-tools module options.
|
||||
{hls?} (HaskellLspClientOpts) haskell-language-server client options.
|
||||
{dap?} (HTDapOpts) debug adapter config for nvim-dap.
|
||||
{tools?} (haskell-tools.tools.Opts)
|
||||
haskell-tools module options.
|
||||
{hls?} (haskell-tools.lsp.ClientOpts)
|
||||
haskell-language-server client options.
|
||||
{dap?} (haskell-tools.dap.Opts)
|
||||
debug adapter config for nvim-dap.
|
||||
|
||||
|
||||
ToolsOpts *ToolsOpts*
|
||||
haskell-tools.tools.Opts *haskell-tools.tools.Opts*
|
||||
|
||||
Fields: ~
|
||||
{codeLens?} (CodeLensOpts) LSP codeLens options.
|
||||
{hoogle?} (HoogleOpts) Hoogle type signature search options.
|
||||
{hover?} (HoverOpts) LSP hover options.
|
||||
{definition?} (DefinitionOpts) LSP go-to-definition options.
|
||||
{repl?} (ReplOpts) GHCi repl options.
|
||||
{tags?} (FastTagsOpts) fast-tags module options.
|
||||
{log?} (HTLogOpts) haskell-tools logger options.
|
||||
{codeLens?} (haskell-tools.codeLens.Opts)
|
||||
LSP codeLens options.
|
||||
{hoogle?} (haskell-tools.hoogle.Opts)
|
||||
Hoogle type signature search options.
|
||||
{hover?} (haskell-tools.hover.Opts)
|
||||
LSP hover options.
|
||||
{definition?} (haskell-tools.definition.Opts) LSP go-to-definition options.
|
||||
{repl?} (haskell-tools.repl.Opts)
|
||||
GHCi repl options.
|
||||
{tags?} (haskell-tools.fast-tags.Opts)
|
||||
fast-tags module options.
|
||||
{log?} (haskell-tools.log.Opts)
|
||||
haskell-tools logger options.
|
||||
|
||||
|
||||
CodeLensOpts *CodeLensOpts*
|
||||
haskell-tools.codeLens.Opts *haskell-tools.codeLens.Opts*
|
||||
|
||||
Fields: ~
|
||||
{autoRefresh?} (fun():boolean|boolean) (default: `true`) Whether to auto-refresh code-lenses.
|
||||
{autoRefresh?} (fun():boolean|boolean)
|
||||
(default: `true`) Whether to auto-refresh code-lenses.
|
||||
|
||||
|
||||
HoogleOpts *HoogleOpts*
|
||||
haskell-tools.hoogle.Opts *haskell-tools.hoogle.Opts*
|
||||
|
||||
Fields: ~
|
||||
{mode?} (HoogleMode) Use a telescope with a local hoogle installation or a web backend, or use the browser for hoogle signature search?
|
||||
{mode?} (haskell-tools.hoogle.Mode)
|
||||
Use a telescope with a local hoogle installation or a web backend,
|
||||
or use the browser for hoogle signature search?
|
||||
|
||||
|
||||
HoogleMode *HoogleMode*
|
||||
haskell-tools.hoogle.Mode *haskell-tools.hoogle.Mode*
|
||||
|
||||
Type: ~
|
||||
"auto"|"telescope-local"|"telescope-web"|"browser"
|
||||
|
||||
|
||||
HoverOpts *HoverOpts*
|
||||
haskell-tools.hover.Opts *haskell-tools.hover.Opts*
|
||||
|
||||
Fields: ~
|
||||
{enable?} (fun():boolean|boolean) (default: `true`) Whether to enable haskell-tools hover.
|
||||
{border?} (string[][]) The hover window's border. Set to `nil` to disable.
|
||||
{stylize_markdown?} (boolean) (default: `false`) The builtin LSP client's default behaviour is to stylize markdown. Setting this option to false sets the file type to markdown and enables treesitter syntax highligting for Haskell snippets if nvim-treesitter is installed.
|
||||
{auto_focus?} (boolean) (default: `false`) Whether to automatically switch to the hover window.
|
||||
{enable?} (fun():boolean|boolean)
|
||||
(default: `true`) Whether to enable haskell-tools hover.
|
||||
{border?} (string[][])
|
||||
The hover window's border. Set to `nil` to disable.
|
||||
{stylize_markdown?} (boolean)
|
||||
(default: `false`) The builtin LSP client's default behaviour is to stylize markdown.
|
||||
Setting this option to false sets the file type to markdown
|
||||
and enables treesitter syntax highligting for Haskell snippets if nvim-treesitter is installed.
|
||||
{auto_focus?} (boolean)
|
||||
(default: `false`) Whether to automatically switch to the hover window.
|
||||
|
||||
|
||||
DefinitionOpts *DefinitionOpts*
|
||||
haskell-tools.definition.Opts *haskell-tools.definition.Opts*
|
||||
|
||||
Fields: ~
|
||||
{hoogle_signature_fallback?} (fun():boolean|boolean) (default: `false`) Configure `vim.lsp.definition` to fall back to hoogle search (does not affect `vim.lsp.tagfunc`).
|
||||
{hoogle_signature_fallback?} (fun():boolean|boolean)
|
||||
(default: `false`) Configure |vim.lsp.definition| to fall back to hoogle search
|
||||
(does not affect |vim.lsp.tagfunc|).
|
||||
|
||||
|
||||
ReplOpts *ReplOpts*
|
||||
haskell-tools.repl.Opts *haskell-tools.repl.Opts*
|
||||
|
||||
Fields: ~
|
||||
{handler?} (fun():ReplHandler|ReplHandler) `'builtin'`: Use the simple builtin repl. `'toggleterm'`: Use akinsho/toggleterm.nvim.
|
||||
{prefer?} (fun():repl_backend|repl_backend) Prefer cabal or stack when both stack and cabal project files are present?
|
||||
{builtin?} (BuiltinReplOpts) Configuration for the builtin repl.
|
||||
{auto_focus?} (boolean) Whether to auto-focus the repl on toggle or send. If unset, the handler decides.
|
||||
{handler?} (fun():haskell-tools.repl.Handler|haskell-tools.repl.Handler)
|
||||
`'builtin'`: Use the simple builtin repl.
|
||||
`'toggleterm'`: Use akinsho/toggleterm.nvim.
|
||||
{prefer?} (fun():haskell-tools.repl.Backend|haskell-tools.repl.Backend)
|
||||
Prefer cabal or stack when both stack and cabal project files are present?
|
||||
{builtin?} (haskell-tools.repl.builtin.Opts)
|
||||
Configuration for the builtin repl.
|
||||
{auto_focus?} (boolean)
|
||||
Whether to auto-focus the repl on toggle or send. If unset, the handler decides.
|
||||
|
||||
|
||||
ReplHandler *ReplHandler*
|
||||
haskell-tools.repl.Handler *haskell-tools.repl.Handler*
|
||||
|
||||
Type: ~
|
||||
"builtin"|"toggleterm"
|
||||
|
||||
|
||||
repl_backend *repl_backend*
|
||||
haskell-tools.repl.Backend *haskell-tools.repl.Backend*
|
||||
|
||||
Type: ~
|
||||
"cabal"|"stack"
|
||||
|
||||
|
||||
BuiltinReplOpts *BuiltinReplOpts*
|
||||
haskell-tools.repl.builtin.Opts *haskell-tools.repl.builtin.Opts*
|
||||
|
||||
Fields: ~
|
||||
{create_repl_window?} (fun(view:ReplView):fun(mk_repl_cmd:mk_repl_cmd_fun))
|
||||
{create_repl_window?} (fun(view:haskell-tools.repl.View):fun(mk_repl_cmd:mk_ht_repl_cmd_fun))
|
||||
How to create the repl window.
|
||||
Should return a function that calls one of the |haskell-tools.repl.View|'s functions.
|
||||
|
||||
|
||||
ReplView *ReplView*
|
||||
haskell-tools.repl.View *haskell-tools.repl.View*
|
||||
|
||||
Fields: ~
|
||||
{create_repl_split?} (fun(opts:ReplViewOpts):mk_repl_cmd_fun) Create the REPL in a horizontally split window.
|
||||
{create_repl_vsplit?} (fun(opts:ReplViewOpts):mk_repl_cmd_fun) Create the REPL in a vertically split window.
|
||||
{create_repl_tabnew?} (fun(opts:ReplViewOpts):mk_repl_cmd_fun) Create the REPL in a new tab.
|
||||
{create_repl_cur_win?} (fun(opts:ReplViewOpts):mk_repl_cmd_fun) Create the REPL in the current window.
|
||||
{create_repl_split?} (fun(opts:haskell-tools.repl.view.Opts):mk_ht_repl_cmd_fun)
|
||||
Create the REPL in a horizontally split window.
|
||||
{create_repl_vsplit?} (fun(opts:haskell-tools.repl.view.Opts):mk_ht_repl_cmd_fun)
|
||||
Create the REPL in a vertically split window.
|
||||
{create_repl_tabnew?} (fun(opts:haskell-tools.repl.view.Opts):mk_ht_repl_cmd_fun)
|
||||
Create the REPL in a new tab.
|
||||
{create_repl_cur_win?} (fun(opts:haskell-tools.repl.view.Opts):mk_ht_repl_cmd_fun)
|
||||
Create the REPL in the current window.
|
||||
|
||||
|
||||
ReplViewOpts *ReplViewOpts*
|
||||
haskell-tools.repl.view.Opts *haskell-tools.repl.view.Opts*
|
||||
|
||||
Fields: ~
|
||||
{delete_buffer_on_exit?} (boolean) Whether to delete the buffer when the Repl quits.
|
||||
{size?} (fun():number|number) The size of the window or a function that determines it.
|
||||
{delete_buffer_on_exit?} (boolean)
|
||||
Whether to delete the buffer when the Repl quits.
|
||||
{size?} (fun():number|number)
|
||||
The size of the window or a function that determines it.
|
||||
|
||||
|
||||
mk_repl_cmd_fun *mk_repl_cmd_fun*
|
||||
mk_ht_repl_cmd_fun *mk_ht_repl_cmd_fun*
|
||||
|
||||
Type: ~
|
||||
fun():string[]|nil
|
||||
|
||||
|
||||
FastTagsOpts *FastTagsOpts*
|
||||
haskell-tools.fast-tags.Opts *haskell-tools.fast-tags.Opts*
|
||||
|
||||
Fields: ~
|
||||
{enable?} (boolean|fun():boolean)
|
||||
{enable?} (boolean|fun():boolean)
|
||||
Enabled by default if the `fast-tags` executable is found.
|
||||
{package_events?} (string[])
|
||||
The |autocmd| events to trigger package tag generation.
|
||||
|
||||
|
||||
HTLogOpts *HTLogOpts*
|
||||
haskell-tools.log.Opts *haskell-tools.log.Opts*
|
||||
|
||||
Fields: ~
|
||||
{level?} (number|string) The log level.
|
||||
{level?} (number|string)
|
||||
The log level.
|
||||
|
||||
See: ~
|
||||
|vim.log.levels|
|
||||
|
||||
|
||||
HaskellLspClientOpts *HaskellLspClientOpts*
|
||||
haskell-tools.lsp.ClientOpts *haskell-tools.lsp.ClientOpts*
|
||||
|
||||
Fields: ~
|
||||
{auto_attach?} (fun():boolean|boolean) Whether to automatically attach the LSP client. Defaults to `true` if the haskell-language-server executable is found.
|
||||
{debug?} (boolean) Whether to enable haskell-language-server debug logging.
|
||||
{on_attach?} (fun(client:number,bufnr:number,ht:HaskellTools)) Callback that is invoked when the client attaches to a buffer.
|
||||
{cmd?} (fun():string[]|string[]) The command to start haskell-language-server with.
|
||||
{capabilities?} (lsp.ClientCapabilities) LSP client capabilities.
|
||||
{settings?} (fun(project_root:string|nil):table|table) The haskell-language-server settings or a function that creates them. To view the default settings, run `haskell-language-server generate-default-config`.
|
||||
{default_settings?} (table) The default haskell-language-server settings that will be used if no settings are specified or detected.
|
||||
{logfile?} (string) The path to the haskell-language-server log file.
|
||||
{auto_attach?} (fun():boolean|boolean)
|
||||
Whether to automatically attach the LSP client.
|
||||
Defaults to `true` if the haskell-language-server executable is found.
|
||||
{debug?} (boolean)
|
||||
Whether to enable haskell-language-server debug logging.
|
||||
{on_attach?} (fun(client:number,bufnr:number,ht:HaskellTools))
|
||||
Callback that is invoked when the client attaches to a buffer.
|
||||
{cmd?} (fun():string[]|string[])
|
||||
The command to start haskell-language-server with.
|
||||
{capabilities?} (lsp.ClientCapabilities)
|
||||
LSP client capabilities.
|
||||
{settings?} (fun(project_root:string|nil):table|table)
|
||||
The haskell-language-server settings or a function that creates them.
|
||||
To view the default settings, run `haskell-language-server generate-default-config`.
|
||||
{default_settings?} (table)
|
||||
The default haskell-language-server settings that will be used if no settings are specified or detected.
|
||||
{logfile?} (string)
|
||||
The path to the haskell-language-server log file.
|
||||
|
||||
|
||||
To print all options that are available for your haskell-language-server version, run `haskell-language-server-wrapper generate-default-config`
|
||||
See: https://haskell-language-server.readthedocs.io/en/latest/configuration.html.
|
||||
|
||||
HTDapOpts *HTDapOpts*
|
||||
haskell-tools.dap.Opts *haskell-tools.dap.Opts*
|
||||
|
||||
Fields: ~
|
||||
{cmd?} (string[]) The command to start the debug adapter server with.
|
||||
{logFile?} (string) Log file path for detected configurations.
|
||||
{logLevel?} (HaskellDebugAdapterLogLevel) The log level for detected configurations.
|
||||
{auto_discover?} (boolean|AddDapConfigOpts) Set to `false` to disable auto-discovery of launch configurations. `true` uses the default configurations options`.
|
||||
{cmd?} (string[])
|
||||
The command to start the debug adapter server with.
|
||||
{logFile?} (string)
|
||||
Log file path for detected configurations.
|
||||
{logLevel?} (haskell-tools.debugAdapter.LogLevel)
|
||||
The log level for detected configurations.
|
||||
{auto_discover?} (boolean|haskell-tools.dap.AddConfigOpts) Set to `false` to disable auto-discovery of launch configurations. `true` uses the default configurations options`.
|
||||
|
||||
|
||||
HaskellDebugAdapterLogLevel *HaskellDebugAdapterLogLevel*
|
||||
haskell-tools.debugAdapter.LogLevel *haskell-tools.debugAdapter.LogLevel*
|
||||
|
||||
Type: ~
|
||||
"Debug"|"Info"|"Warning"|"Error"
|
||||
|
||||
|
||||
haskell-tools.dap.AddConfigOpts *haskell-tools.dap.AddConfigOpts*
|
||||
|
||||
Fields: ~
|
||||
{autodetect} (boolean)
|
||||
Whether to automatically detect launch configurations for the project.
|
||||
{settings_file_pattern} (string)
|
||||
File name or pattern to search for.
|
||||
Defaults to 'launch.json'.
|
||||
|
||||
|
||||
==============================================================================
|
||||
haskell-language-server LSP client tools *haskell-tools.lsp*
|
||||
|
||||
The following commands are available:
|
||||
|
||||
* `:HlsStart` - Start the LSP client.
|
||||
* `:HlsStop` - Stop the LSP client.
|
||||
* `:HlsRestart` - Restart the LSP client.
|
||||
* `:HlsEvalAll` - Evaluate all code snippets in comments.
|
||||
* `:Hls start` - Start the LSP client.
|
||||
* `:Hls stop` - Stop the LSP client.
|
||||
* `:Hls restart` - Restart the LSP client.
|
||||
* `:Hls evalAll` - Evaluate all code snippets in comments.
|
||||
|
||||
LoadHlsSettingsOpts *LoadHlsSettingsOpts*
|
||||
haskell-tools.load_hls_settings.Opts *haskell-tools.load_hls_settings.Opts*
|
||||
|
||||
Fields: ~
|
||||
{settings_file_pattern} (string|nil) File name or pattern to search for. Defaults to 'hls.json'
|
||||
|
||||
|
||||
HlsTools *HlsTools*
|
||||
haskell-tools.Hls *haskell-tools.Hls*
|
||||
|
||||
|
||||
*HlsTools.load_hls_settings*
|
||||
HlsTools.load_hls_settings({project_root}, {opts})
|
||||
*Hls.load_hls_settings*
|
||||
Hls.load_hls_settings({project_root}, {opts})
|
||||
Search the project root for a haskell-language-server settings JSON file and load it to a Lua table.
|
||||
Falls back to the `hls.default_settings` if no file is found or file cannot be read or decoded.
|
||||
|
||||
Parameters: ~
|
||||
{project_root} (string|nil) The project root
|
||||
{opts} (LoadHlsSettingsOpts|nil)
|
||||
{project_root} (string|nil) The project root
|
||||
{opts} (haskell-tools.load_hls_settings.Opts|nil)
|
||||
|
||||
Returns: ~
|
||||
(table) hls_settings
|
||||
@ -247,7 +307,7 @@ HlsTools.load_hls_settings({project_root}, {opts})
|
||||
|https://haskell-language-server.readthedocs.io/en/latest/configuration.html|
|
||||
|
||||
|
||||
HlsTools.start({bufnr}) *HlsTools.start*
|
||||
Hls.start({bufnr}) *Hls.start*
|
||||
Start or attach the LSP client.
|
||||
Fails silently if the buffer's filetype is not one of the filetypes specified in the config.
|
||||
|
||||
@ -258,7 +318,7 @@ HlsTools.start({bufnr}) *HlsTools.start*
|
||||
(number|nil) The LSP client ID
|
||||
|
||||
|
||||
HlsTools.stop({bufnr}) *HlsTools.stop*
|
||||
Hls.stop({bufnr}) *Hls.stop*
|
||||
Stop the LSP client.
|
||||
|
||||
Parameters: ~
|
||||
@ -268,7 +328,7 @@ HlsTools.stop({bufnr}) *HlsTools.stop*
|
||||
(table[]) A list of clients that will be stopped
|
||||
|
||||
|
||||
HlsTools.restart({bufnr}) *HlsTools.restart*
|
||||
Hls.restart({bufnr}) *Hls.restart*
|
||||
Restart the LSP client.
|
||||
Fails silently if the buffer's filetype is not one of the filetypes specified in the config.
|
||||
|
||||
@ -279,7 +339,7 @@ HlsTools.restart({bufnr}) *HlsTools.restart*
|
||||
(number|nil) The LSP client ID after restart
|
||||
|
||||
|
||||
HlsTools.buf_eval_all({bufnr}) *HlsTools.buf_eval_all*
|
||||
Hls.buf_eval_all({bufnr}) *Hls.buf_eval_all*
|
||||
Evaluate all code snippets in comments.
|
||||
|
||||
Parameters: ~
|
||||
@ -292,22 +352,19 @@ HlsTools.buf_eval_all({bufnr}) *HlsTools.buf_eval_all*
|
||||
==============================================================================
|
||||
haskell-tools nvim-dap setup *haskell-tools.dap*
|
||||
|
||||
HsDapLaunchConfiguration *HsDapLaunchConfiguration*
|
||||
haskell-tools.dap.LaunchConfiguration *haskell-tools.dap.LaunchConfiguration*
|
||||
|
||||
|
||||
HsDapTools *HsDapTools*
|
||||
haskell-tools.Dap *haskell-tools.Dap*
|
||||
|
||||
|
||||
AddDapConfigOpts *AddDapConfigOpts*
|
||||
|
||||
|
||||
*HsDapTools.discover_configurations*
|
||||
HsDapTools.discover_configurations({bufnr}, {opts})
|
||||
*Dap.discover_configurations*
|
||||
Dap.discover_configurations({bufnr}, {opts})
|
||||
Discover nvim-dap launch configurations for haskell-debug-adapter.
|
||||
|
||||
Parameters: ~
|
||||
{bufnr} (number|nil) The buffer number
|
||||
{opts} (AddDapConfigOpts|nil)
|
||||
{bufnr} (number|nil) The buffer number
|
||||
{opts} (haskell-tools.dap.AddConfigOpts|nil)
|
||||
|
||||
Returns: ~
|
||||
(nil)
|
||||
@ -316,10 +373,10 @@ HsDapTools.discover_configurations({bufnr}, {opts})
|
||||
==============================================================================
|
||||
haskell-tools Hoogle search *haskell-tools.hoogle*
|
||||
|
||||
HoogleTools *HoogleTools*
|
||||
haskell-tools.Hoogle *haskell-tools.Hoogle*
|
||||
|
||||
|
||||
HoogleTools.hoogle_signature({options}) *HoogleTools.hoogle_signature*
|
||||
Hoogle.hoogle_signature({options}) *Hoogle.hoogle_signature*
|
||||
|
||||
Parameters: ~
|
||||
{options} (table<string,any>|nil) Includes the `search_term` and options to pass to the telescope picker (if available)
|
||||
@ -333,64 +390,68 @@ haskell-tools GHCi REPL module *haskell-tools.repl*
|
||||
|
||||
The following commands are available:
|
||||
|
||||
* `:HtReplToggle` - Toggle a GHCi repl.
|
||||
* `:HtReplQuit` - Quit the current repl.
|
||||
* `:HtReplLoad` - Load a Haskell file into the repl.
|
||||
* `:HtReplReload` - Reload the current repl.
|
||||
* `:Haskell repl toggle {file?}` - Toggle a GHCi repl.
|
||||
* `:Haskell repl quit` - Quit the current repl.
|
||||
* `:Haskell repl load {file?}` - Load a Haskell file into the repl.
|
||||
* `:Haskell repl reload` - Reload the current repl.
|
||||
* `:Haskell repl paste_type {register?}` - Query the repl for the type of |registers| {register}
|
||||
* `:Haskell repl cword_type` - Query the repl for the type of |cword|
|
||||
* `:Haskell repl paste_info {register?}` - Query the repl for the info on |registers| {register}
|
||||
* `:Haskell repl cword_info` - Query the repl for info on |cword|
|
||||
|
||||
HsReplTools *HsReplTools*
|
||||
haskell-tools.Repl *haskell-tools.Repl*
|
||||
|
||||
|
||||
HsReplTools.buf_mk_repl_cmd() *HsReplTools.buf_mk_repl_cmd*
|
||||
Repl.buf_mk_repl_cmd() *Repl.buf_mk_repl_cmd*
|
||||
Create the command to create a repl for the current buffer.
|
||||
|
||||
Returns: ~
|
||||
(table|nil) command
|
||||
|
||||
|
||||
HsReplTools.operator() *HsReplTools.operator*
|
||||
Repl.operator() *Repl.operator*
|
||||
|
||||
See: ~
|
||||
|operatorfunc|
|
||||
|
||||
|
||||
HsReplTools.paste({reg}) *HsReplTools.paste*
|
||||
Repl.paste({reg}) *Repl.paste*
|
||||
Paste from register `reg` to the REPL
|
||||
|
||||
Parameters: ~
|
||||
{reg} (string|nil) register (defaults to '"')
|
||||
|
||||
|
||||
HsReplTools.paste_type({reg}) *HsReplTools.paste_type*
|
||||
Repl.paste_type({reg}) *Repl.paste_type*
|
||||
Query the REPL for the type of register `reg`
|
||||
|
||||
Parameters: ~
|
||||
{reg} (string|nil) register (defaults to '"')
|
||||
|
||||
|
||||
HsReplTools.cword_type() *HsReplTools.cword_type*
|
||||
Repl.cword_type() *Repl.cword_type*
|
||||
Query the REPL for the type of word under the cursor
|
||||
|
||||
|
||||
HsReplTools.paste_info({reg}) *HsReplTools.paste_info*
|
||||
Repl.paste_info({reg}) *Repl.paste_info*
|
||||
Query the REPL for info on register `reg`
|
||||
|
||||
Parameters: ~
|
||||
{reg} (string|nil) register (defaults to '"')
|
||||
|
||||
|
||||
HsReplTools.cword_info() *HsReplTools.cword_info*
|
||||
Repl.cword_info() *Repl.cword_info*
|
||||
Query the REPL for the type of word under the cursor
|
||||
|
||||
|
||||
HsReplTools.load_file({filepath}) *HsReplTools.load_file*
|
||||
Repl.load_file({filepath}) *Repl.load_file*
|
||||
Load a file into the REPL
|
||||
|
||||
Parameters: ~
|
||||
{filepath} (string) The absolute file path
|
||||
|
||||
|
||||
HsReplTools.reload() *HsReplTools.reload*
|
||||
Repl.reload() *Repl.reload*
|
||||
Reload the repl
|
||||
|
||||
|
||||
@ -399,14 +460,14 @@ haskell-tools Project module *haskell-tools.project*
|
||||
|
||||
The following commands are available:
|
||||
|
||||
* `:HsProjectFile` - Open the project file for the current buffer (cabal.project or stack.yaml).
|
||||
* `:HsPackageYaml` - Open the package.yaml file for the current buffer.
|
||||
* `:HsPackageCabal` - Open the *.cabal file for the current buffer.
|
||||
* `:Haskell projectFile` - Open the project file for the current buffer (cabal.project or stack.yaml).
|
||||
* `:Haskell packageYaml` - Open the package.yaml file for the current buffer.
|
||||
* `:Haskell packageCabal` - Open the *.cabal file for the current buffer.
|
||||
|
||||
HsProjectTools *HsProjectTools*
|
||||
haskell-tools.Project *haskell-tools.Project*
|
||||
|
||||
|
||||
HsProjectTools.root_dir({project_file}) *HsProjectTools.root_dir*
|
||||
Project.root_dir({project_file}) *Project.root_dir*
|
||||
Get the project's root directory
|
||||
|
||||
Parameters: ~
|
||||
@ -416,21 +477,21 @@ HsProjectTools.root_dir({project_file}) *HsProjectTools.root_dir*
|
||||
(string|nil)
|
||||
|
||||
|
||||
HsProjectTools.open_package_yaml() *HsProjectTools.open_package_yaml*
|
||||
Project.open_package_yaml() *Project.open_package_yaml*
|
||||
Open the package.yaml of the package containing the current buffer.
|
||||
|
||||
Returns: ~
|
||||
(nil)
|
||||
|
||||
|
||||
HsProjectTools.open_package_cabal() *HsProjectTools.open_package_cabal*
|
||||
Project.open_package_cabal() *Project.open_package_cabal*
|
||||
Open the *.cabal file of the package containing the current buffer.
|
||||
|
||||
Returns: ~
|
||||
(nil)
|
||||
|
||||
|
||||
HsProjectTools.open_project_file() *HsProjectTools.open_project_file*
|
||||
Project.open_project_file() *Project.open_project_file*
|
||||
Open the current buffer's project file (cabal.project or stack.yaml).
|
||||
|
||||
Returns: ~
|
||||
@ -440,27 +501,27 @@ HsProjectTools.open_project_file() *HsProjectTools.open_project_file*
|
||||
==============================================================================
|
||||
haskell-tools fast-tags module *haskell-tools.tags*
|
||||
|
||||
GenerateProjectTagsOpts *GenerateProjectTagsOpts*
|
||||
*haskell-tools.tags.generate_project_tags.Opts*
|
||||
haskell-tools.tags.generate_project_tags.Opts
|
||||
|
||||
Fields: ~
|
||||
{refresh} (boolean) Whether to refresh the tags if they have already been generated
|
||||
|
||||
|
||||
FastTagsTools *FastTagsTools*
|
||||
haskell-tools.FastTags *haskell-tools.FastTags*
|
||||
for the project (default: true)
|
||||
|
||||
|
||||
*FastTagsTools.generate_project_tags*
|
||||
FastTagsTools.generate_project_tags({path}, {opts})
|
||||
*FastTags.generate_project_tags*
|
||||
FastTags.generate_project_tags({path}, {opts})
|
||||
Generates tags for the current project
|
||||
|
||||
Parameters: ~
|
||||
{path} (string|nil) File path
|
||||
{opts} (GenerateProjectTagsOpts|nil) Options
|
||||
{path} (string|nil) File path
|
||||
{opts} (haskell-tools.tags.generate_project_tags.Opts|nil) Options
|
||||
|
||||
|
||||
*FastTagsTools.generate_package_tags*
|
||||
FastTagsTools.generate_package_tags({path})
|
||||
FastTags.generate_package_tags({path}) *FastTags.generate_package_tags*
|
||||
Generate tags for the package containing `path`
|
||||
|
||||
Parameters: ~
|
||||
@ -472,42 +533,42 @@ haskell-tools Logging *haskell-tools.log*
|
||||
|
||||
The following commands are available:
|
||||
|
||||
* `:HtLog` - Open the haskell-tools.nvim log file.
|
||||
* `:HlsLog` - Open the haskell-language-server log file.
|
||||
* `:HtSetLogLevel` - Set the haskell-tools.nvim and LSP client log level.
|
||||
* `:Haskell log setLevel` - Set the haskell-tools.nvim and LSP client log level.
|
||||
* `:Haskell log openLog` - Open the haskell-tools.nvim log file.
|
||||
* `:Haskell log openHlsLog` - Open the haskell-language-server log file.
|
||||
|
||||
HaskellToolsLog *HaskellToolsLog*
|
||||
haskell-tools.Log *haskell-tools.Log*
|
||||
|
||||
|
||||
HaskellToolsLog.get_hls_logfile() *HaskellToolsLog.get_hls_logfile*
|
||||
Log.get_hls_logfile() *Log.get_hls_logfile*
|
||||
Get the haskell-language-server log file
|
||||
|
||||
Returns: ~
|
||||
(string) filepath
|
||||
|
||||
|
||||
HaskellToolsLog.get_logfile() *HaskellToolsLog.get_logfile*
|
||||
Log.get_logfile() *Log.get_logfile*
|
||||
Get the haskell-tools.nvim log file path.
|
||||
|
||||
Returns: ~
|
||||
(string) filepath
|
||||
|
||||
|
||||
HaskellToolsLog.nvim_open_hls_logfile() *HaskellToolsLog.nvim_open_hls_logfile*
|
||||
Log.nvim_open_hls_logfile() *Log.nvim_open_hls_logfile*
|
||||
Open the haskell-language-server log file
|
||||
|
||||
Returns: ~
|
||||
(nil)
|
||||
|
||||
|
||||
HaskellToolsLog.nvim_open_logfile() *HaskellToolsLog.nvim_open_logfile*
|
||||
Log.nvim_open_logfile() *Log.nvim_open_logfile*
|
||||
Open the haskell-tools.nvim log file.
|
||||
|
||||
Returns: ~
|
||||
(nil)
|
||||
|
||||
|
||||
HaskellToolsLog.set_level() *HaskellToolsLog.set_level*
|
||||
Log.set_level() *Log.set_level*
|
||||
|
||||
Returns: ~
|
||||
(nil)
|
||||
|
||||
Reference in New Issue
Block a user