Skip to content

Commit

Permalink
fix gopls
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemengo committed Sep 11, 2023
1 parent 4ce1a00 commit 833f331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fnl/core.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(let [group (vim.api.nvim_create_augroup :filetype-mappings {:clear true})]
(vim.api.nvim_create_autocmd :FileType
{: group
:pattern :python
:pattern "python,json"
:callback (fn []
(set vim.o.shiftwidth 2)
(set vim.o.tabstop 2)
Expand All @@ -43,6 +43,7 @@
(if (= :qf vim.bo.filetype)
(unmap [:n] :<cr>)
(map [:n] :<cr> ":")))}))

(let [group (vim.api.nvim_create_augroup :window-switching {:clear true})]
(vim.api.nvim_create_autocmd [:VimEnter :WinEnter]
{: group
Expand Down
2 changes: 1 addition & 1 deletion fnl/mods/lsp/lsp.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
:flags {:allow_incremental_sync true
:debounce_text_changes 1000}
:settings {:gopls {:completeUnimported true
:buildFlags [:-tags :integration]
:buildFlags [:-tags=integration]
:gofumpt true
:experimentalPostfixCompletions true
:analyses {:nilness true
Expand Down

0 comments on commit 833f331

Please sign in to comment.