Skip to content

Commit

Permalink
fix mason config
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemengo committed May 22, 2024
1 parent 6ec8c41 commit 30f8cbb
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions fnl/mods/lsp/lsp.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{:mapping (cmp.mapping.preset.cmdline)
:sources [{:name :path} {:name :cmdline}]})

(mason.setup)
(mason.setup {:PATH :append})
(masonlsp.setup {:ensure_installed [:gopls
;:fennel_language_server
:clangd
Expand Down Expand Up @@ -90,8 +90,8 @@

(local lsp_opt {:gopls {:autostart true
:cmd [:gopls :serve]
:filetypes [:go :gomod]
:root_dir (lsputil.root_pattern :go.work :go.mod :.git)
:filetypes [:go :mod]
:root_dir (lsputil.root_pattern :go.mod :.git)
:flags {:allow_incremental_sync true
:debounce_text_changes 1000}
:settings {:gopls {:completeUnimported true
Expand All @@ -104,6 +104,18 @@
:unusedvariable true
:shadow true
:useany true
:assign true
:bools true
:defers true
:deprecated true
:errorsas true
:httpresponse true
:ifaceassert true
:loopclosure true
:lostcancel true
:simplifyrange true
:simplifyslice true
:structtag true
:fieldalignment false}
:codelenses {:gc_details true
:generate true
Expand Down

0 comments on commit 30f8cbb

Please sign in to comment.