This commit is contained in:
Ivar Fatland
2025-08-21 12:11:27 +02:00
parent f1213edc09
commit b8bf524877
+10 -8
View File
@@ -115,14 +115,6 @@ vim.api.nvim_create_autocmd('BufEnter', {
if vim.bo.filetype == 'c' then if vim.bo.filetype == 'c' then
if not has_makefile() then if not has_makefile() then
vim.bo.makeprg = 'tcc -run %' vim.bo.makeprg = 'tcc -run %'
for _, line in ipairs(vim.api.nvim_buf_get_lines(0, 0, 10, false)) do
local start, _ = string.find(line, 'raylib.h', 1, true)
if start ~= nil then
vim.bo.makeprg = 'tcc -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 -run %'
break
end
end
end end
end end
end, end,
@@ -480,6 +472,16 @@ require'lazy'.setup{ --{{{1
} }
} }
vim.lsp.config.basedpyright = {
settings = {
basedpyright = {
analysis = {
diagnosticMode = 'workspace',
},
},
},
}
vim.lsp.enable('gdscript') vim.lsp.enable('gdscript')
vim.lsp.config('hls', { vim.lsp.config('hls', {
filetypes = { 'haskell', 'lhaskell', 'cabal' }, filetypes = { 'haskell', 'lhaskell', 'cabal' },