File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -592,7 +592,20 @@ require('lazy').setup({
592
592
callSnippet = ' Replace' ,
593
593
},
594
594
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
595
+ diagnostics = {
596
+ globals = {
597
+ ' vim' ,
598
+ ' love' ,
599
+ },
600
+ },
595
601
-- diagnostics = { disable = { 'missing-fields' } },
602
+ workspace = {
603
+ library = {
604
+ [vim .fn .expand ' $VIMRUNTIME/lua' ] = true ,
605
+ [vim .fn .expand ' $VIMRUNTIME/lua/vim/lsp' ] = true ,
606
+ [' ${3rd}/love2d/library' ] = true , -- Add Love2D library
607
+ },
608
+ },
596
609
},
597
610
},
598
611
},
@@ -923,6 +936,20 @@ require('lazy').setup({
923
936
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
924
937
lazy = false ,
925
938
},
939
+ {
940
+ ' ray-x/go.nvim' ,
941
+ dependencies = { -- optional packages
942
+ ' ray-x/guihua.lua' ,
943
+ ' neovim/nvim-lspconfig' ,
944
+ ' nvim-treesitter/nvim-treesitter' ,
945
+ },
946
+ config = function ()
947
+ require (' go' ).setup ()
948
+ end ,
949
+ event = { ' CmdlineEnter' },
950
+ ft = { ' go' , ' gomod' },
951
+ build = ' :lua require("go.install").update_all_sync()' , -- if you need to install/update all binaries
952
+ },
926
953
}, {
927
954
ui = {
928
955
-- If you are using a Nerd Font: set icons to an empty table which will use the
You can’t perform that action at this time.
0 commit comments