Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

I am totally new to Lua. The main idea is to use my logitech mouse but not the buggy and resource-eating Logi Options+ application. I try to implement these actions : Btn 4 click : Mission Control ...
Prabowo Murti's user avatar
1 vote
0 answers
166 views

Take a look at the following code: local contents = assert(io.open("foo.html", "r")):read("*a") print(string.len(contents)) string.find(contents, ".+\"url\"...
Andreas's user avatar
  • 10.8k
3 votes
1 answer
113 views

I'm currently trying to implement Karatsuba Sqrt for my BigInteger module in luau, though I'm having trouble with its accuracy and I don't know what I'm doing wrong. Karatsuba function: local function ...
fosterchild's user avatar
Advice
1 vote
4 replies
174 views

I have been looking at frameworks for game development and I have found that pygame (a python game development libary) and love2d (a lua game development libary) seem the eisiest to learn. I also know ...
The python duck's user avatar
3 votes
0 answers
54 views

i have hints working for lua, but not for go. i've already tried a bunch of stuff like several go configs, though it seems like it is a server problem, because Settings: {} is what i get in ...
Bari's user avatar
  • 31
1 vote
0 answers
63 views

I found out the mini.ai html tag selection is very bad but treesitter was so good at it so I decided to change it to treesiter without loosing the good things in mini.ai so I did this config and so ...
user27392773's user avatar
-3 votes
0 answers
84 views

To be convenient when coding C/C++ programs, I decided to use Clangd for auto-complete plugin. I went to the official website of Lazy.nvim and read guides to install and use. I tried :Mason and :...
Leatuyr Bertyk's user avatar
1 vote
1 answer
561 views

I am a newbie Neovim user and I am configuring Neovim by Lazy in init.lua. However, I had a problem when installing Tree-sitter plugin by Lazy.nvim. In file init.lua, I use below command to install ...
Leatuyr Bertyk's user avatar
1 vote
0 answers
57 views

I am trying to run jdtls lsp on the latest nvim 0.12 with minimal setup without using any plugin for my nvim version: NVIM v0.12.0-dev-5299967 Build type: Debug LuaJIT 2.1.1764270282 However, when i ...
prajul's user avatar
  • 1,224
3 votes
1 answer
60 views

I am creating a game about fighting other people in arenas, and when 2 people are in the arena, anyone that tries to enter becomes a spectator, for some reason, the part you touch to enter the arena ...
Destroyerofdocuments's user avatar
Best practices
0 votes
7 replies
147 views

Let tableA = {"a","b","c"}. print( table.unpack(tableA) ) will print : a b c - the multiples values of table.unpack(tableA) are displayed, print( table.unpack(tableA) , &...
user1771398's user avatar
2 votes
0 answers
75 views

I have an NvChad configuration for NeoVim, and I was trying to configure a LuaSnip plugin, but for some reason my Lua snippets are working correctly, but the json ones do not, and I want to figure out ...
dvb1r's user avatar
  • 21
4 votes
1 answer
111 views

In love2D I have a string that represents a mathematical expression, for example: local expr1 = "[p35] div [p36]" local expr2 = "((([p35]*100) div [p36]) mod 100)" local params = {...
darkfrei's user avatar
  • 638
Advice
0 votes
3 replies
81 views

I'm not yet very familiar with the patterns in Lua's string.gsub function. If I have a string like this: Fishing Lure(+100 Fishing Skill)(1 hour) and I want extract only the string "1 hour"...
user3204810's user avatar
-4 votes
2 answers
114 views

Take the following block of code function pickrand() local v = math.random(1,3) if v==1 then return ‘px' elseif v==2 then return ‘py' elseif v==3 then return 'pb' end end prin = { x = ...
Lesbiswan's user avatar

15 30 50 per page
1
2 3 4 5
1532