diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-08-27 22:13:07 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-08-27 22:16:15 +0200 |
| commit | 87edef4dff8ab931a9ec85de9a11cbd4cc7d6247 (patch) | |
| tree | 05a401a210a2952a29f9e8de438eb8953c05acf6 /lspc.lua | |
| parent | 1bd1416c89f92f637ca5e22c94b3479f8d32f2d7 (diff) | |
| download | vis-lspc-87edef4dff8ab931a9ec85de9a11cbd4cc7d6247.tar.gz vis-lspc-87edef4dff8ab931a9ec85de9a11cbd4cc7d6247.zip | |
move the fzf detection snippet into lspc.lua
It changes a default setting keep it in the file where the default
settings are defined.
Diffstat (limited to 'lspc.lua')
| -rw-r--r-- | lspc.lua | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -56,9 +56,11 @@ local lspc = { }, } --- ---- ClientCapabilities we tell the language server when calling "initialize" --- +-- check if fzf is available and use fzf instead of vis-menu per default +if os.execute('type fzf >/dev/null 2>/dev/null') then + lspc.menu_cmd = 'fzf' +end + local supported_markup_kind = {'markdown'} local goto_methods_capabilities = { @@ -66,6 +68,7 @@ local goto_methods_capabilities = { dynamicRegistration = false, } +--- ClientCapabilities we tell the language server when calling "initialize". local client_capabilites = { workspace = { configuration = true, |
