Skip to content

Commit

Permalink
fix(clarity_lsp): remove .cmd suffix for Windows (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman authored Apr 15, 2022
1 parent fd7843a commit 99596a8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lua/lspconfig/server_configurations/clarity_lsp.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
local util = require 'lspconfig.util'

local bin_name = 'clarity-lsp'
if vim.fn.has 'win32' == 1 then
bin_name = bin_name .. '.cmd'
end

return {
default_config = {
cmd = { bin_name },
cmd = { 'clarity-lsp' },
filetypes = { 'clar', 'clarity' },
root_dir = util.root_pattern '.git',
},
Expand Down

0 comments on commit 99596a8

Please sign in to comment.