Skip to content

Commit 1bb197d

Browse files
committed
Add love2d and Go LSP bindings
1 parent 66b2fd7 commit 1bb197d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

init.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,20 @@ require('lazy').setup({
592592
callSnippet = 'Replace',
593593
},
594594
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
595+
diagnostics = {
596+
globals = {
597+
'vim',
598+
'love',
599+
},
600+
},
595601
-- 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+
},
596609
},
597610
},
598611
},
@@ -923,6 +936,20 @@ require('lazy').setup({
923936
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
924937
lazy = false,
925938
},
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+
},
926953
}, {
927954
ui = {
928955
-- If you are using a Nerd Font: set icons to an empty table which will use the

0 commit comments

Comments
 (0)