fix: endx typo in lsp-servers.lua
Some checks failed
Luacheck / luacheck (push) Failing after 4s
StyLua / stylua (push) Failing after 2s

This commit is contained in:
Jeremie Fraeys 2026-02-08 15:08:04 -05:00
parent 0af2677f25
commit 6c762c436a
No known key found for this signature in database
19 changed files with 95 additions and 74 deletions

View file

@ -11,22 +11,10 @@ on:
jobs:
luacheck:
runs-on: self-hosted
container:
image: alpine:latest
steps:
- name: Checkout
run: git clone --depth=1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git .
- name: Install Luacheck
run: |
if ! command -v luacheck &> /dev/null; then
if command -v luarocks &> /dev/null; then
luarocks install luacheck
else
curl -L -o luacheck.tar.gz "https://github.com/lunarmodules/luacheck/archive/refs/tags/v1.1.2.tar.gz"
tar -xzf luacheck.tar.gz
cd luacheck-*
make install
cd ..
rm -rf luacheck-*
fi
fi
- name: Run Luacheck
run: luacheck .
- uses: actions/checkout@v4
- run: apk add --no-cache lua5.1 luarocks5.1 git
- run: luarocks-5.1 install luacheck
- run: luacheck .

View file

@ -11,15 +11,13 @@ on:
jobs:
stylua:
runs-on: self-hosted
container:
image: alpine:latest
steps:
- name: Checkout
run: git clone --depth=1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git .
- name: Install StyLua
run: |
if ! command -v stylua &> /dev/null; then
curl -L -o stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-$(uname -s)-$(uname -m).zip"
unzip stylua.zip -d /usr/local/bin
rm stylua.zip
fi
- name: Check Formatting
run: stylua --check .
- uses: actions/checkout@v4
- run: apk add --no-cache curl unzip git
- run: |
curl -L -o stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.zip"
unzip stylua.zip
chmod +x stylua
- run: ./stylua --check .

View file

@ -29,8 +29,9 @@ local function cmake_configure(build_dir, extra_args)
local args = extra_args or ''
local bin_dir = vim.fn.getcwd() .. '/bin'
vim.fn.mkdir(bin_dir, 'p')
local out_args =
' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=' .. vim.fn.shellescape(bin_dir) .. ' -DCMAKE_LIBRARY_OUTPUT_DIRECTORY='
local out_args = ' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY='
.. vim.fn.shellescape(bin_dir)
.. ' -DCMAKE_LIBRARY_OUTPUT_DIRECTORY='
.. vim.fn.shellescape(bin_dir)
.. ' -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY='
.. vim.fn.shellescape(bin_dir)
@ -165,9 +166,19 @@ vim.keymap.set('n', '<leader>ct', function()
cmake_ctest(build_dir)
end, vim.tbl_extend('force', opts, { desc = 'CMake: Test' }))
vim.keymap.set('n', '<leader>ch', switch_source_header, vim.tbl_extend('force', opts, { desc = 'C: Switch header/source' }))
vim.keymap.set(
'n',
'<leader>ch',
switch_source_header,
vim.tbl_extend('force', opts, { desc = 'C: Switch header/source' })
)
vim.keymap.set('n', '<leader>cg', toggle_debugger_repl, vim.tbl_extend('force', opts, { desc = 'C: Toggle debugger REPL' }))
vim.keymap.set(
'n',
'<leader>cg',
toggle_debugger_repl,
vim.tbl_extend('force', opts, { desc = 'C: Toggle debugger REPL' })
)
vim.keymap.set('n', '<leader>cm', function()
local cmd = vim.fn.input('Memory profile run: ', './bin/')
@ -193,4 +204,3 @@ vim.keymap.set('n', '<leader>Ri', function()
dbg:send('\x03')
end
end, vim.tbl_extend('force', opts, { desc = 'Run/REPL: Interrupt' }))

View file

@ -31,8 +31,9 @@ local function cmake_configure(build_dir, extra_args)
local args = extra_args or ''
local bin_dir = vim.fn.getcwd() .. '/bin'
vim.fn.mkdir(bin_dir, 'p')
local out_args =
' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=' .. vim.fn.shellescape(bin_dir) .. ' -DCMAKE_LIBRARY_OUTPUT_DIRECTORY='
local out_args = ' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY='
.. vim.fn.shellescape(bin_dir)
.. ' -DCMAKE_LIBRARY_OUTPUT_DIRECTORY='
.. vim.fn.shellescape(bin_dir)
.. ' -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY='
.. vim.fn.shellescape(bin_dir)
@ -219,9 +220,19 @@ vim.keymap.set('n', '<leader>cr', function()
vim.cmd('!' .. cmd)
end, vim.tbl_extend('force', opts, { desc = 'CMake: Run (prompt)' }))
vim.keymap.set('n', '<leader>ch', switch_source_header, vim.tbl_extend('force', opts, { desc = 'C++: Switch header/source' }))
vim.keymap.set(
'n',
'<leader>ch',
switch_source_header,
vim.tbl_extend('force', opts, { desc = 'C++: Switch header/source' })
)
vim.keymap.set('n', '<leader>cg', toggle_debugger_repl, vim.tbl_extend('force', opts, { desc = 'C++: Toggle debugger REPL' }))
vim.keymap.set(
'n',
'<leader>cg',
toggle_debugger_repl,
vim.tbl_extend('force', opts, { desc = 'C++: Toggle debugger REPL' })
)
vim.keymap.set('n', '<leader>cm', function()
local cmd = vim.fn.input('Memory profile run: ', './bin/')
@ -250,7 +261,8 @@ end, vim.tbl_extend('force', opts, { desc = 'Run/REPL: Interrupt' }))
vim.keymap.set('n', '<leader>ca', function()
local build_dir = cmake_build_dir('build-asan')
local flags = "-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-fsanitize=address -fno-omit-frame-pointer' -DCMAKE_CXX_FLAGS='-fsanitize=address -fno-omit-frame-pointer'"
local flags =
"-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-fsanitize=address -fno-omit-frame-pointer' -DCMAKE_CXX_FLAGS='-fsanitize=address -fno-omit-frame-pointer'"
cmake_configure(build_dir, flags)
cmake_build(build_dir)
end, vim.tbl_extend('force', opts, { desc = 'CMake: Build (ASan)' }))

View file

@ -97,7 +97,11 @@ vim.keymap.set('n', '<leader>Rr', function()
local screen_width_percentage = 25
local function find_terminal_buffer()
for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do
if vim.api.nvim_buf_is_loaded(bufnr) and vim.bo[bufnr].buftype == 'terminal' and vim.b[bufnr].python_repl == true then
if
vim.api.nvim_buf_is_loaded(bufnr)
and vim.bo[bufnr].buftype == 'terminal'
and vim.b[bufnr].python_repl == true
then
return bufnr
end
end

View file

@ -9,7 +9,12 @@ vim.opt_local.textwidth = 80 -- Maximum text width
vim.opt_local.colorcolumn = '80' -- Highlight column 80
vim.keymap.set('n', '<leader>Rf', '<CMD>Cargo run<CR>', { desc = 'Run/REPL: Run (Cargo)', noremap = true, buffer = 0 })
vim.keymap.set('n', '<leader>Rb', '<CMD>Cargo check<CR>', { desc = 'Run/REPL: Build/Check (Cargo)', noremap = true, buffer = 0 })
vim.keymap.set(
'n',
'<leader>Rb',
'<CMD>Cargo check<CR>',
{ desc = 'Run/REPL: Build/Check (Cargo)', noremap = true, buffer = 0 }
)
local dap = require('dap')
local rust_tools = require('rust-tools')
@ -40,7 +45,13 @@ if codelldb_adapter and codelldb_lib then
},
server = {
on_attach = function(_, bufnr)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>dR', '<cmd>RustDebuggables<CR>', { noremap = true, silent = true })
vim.api.nvim_buf_set_keymap(
bufnr,
'n',
'<leader>dR',
'<cmd>RustDebuggables<CR>',
{ noremap = true, silent = true }
)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', '<cmd>RustHoverActions<CR>', { noremap = true, silent = true })
end,
},

View file

@ -3,4 +3,3 @@ return {
dependencies = { 'nvim-lua/plenary.nvim' },
opts = {},
}

View file

@ -101,4 +101,3 @@ return {
-- },
--
}

View file

@ -20,7 +20,10 @@ return {
vim.g.jupytext_command = python3_bin .. ' -m jupytext'
else
vim.schedule(function()
vim.notify('Jupytext: no `jupytext` or `python3` found in PATH. Install jupytext (e.g. `/opt/homebrew/bin/python3 -m pip install --user jupytext`) or set `vim.g.jupytext_command`.', vim.log.levels.WARN)
vim.notify(
'Jupytext: no `jupytext` or `python3` found in PATH. Install jupytext (e.g. `/opt/homebrew/bin/python3 -m pip install --user jupytext`) or set `vim.g.jupytext_command`.',
vim.log.levels.WARN
)
end)
end
end

View file

@ -16,7 +16,7 @@ local function mason_bin(name)
return p
end
return name
endx
end
---Find Julia binary
---@return string

View file

@ -5,4 +5,3 @@ return {
default_view = 'vertical',
},
}

View file

@ -1,8 +1,5 @@
return {
'tanvirtin/monokai.nvim',
priority = 1000,
config = function()
end,
config = function() end,
}

View file

@ -33,4 +33,3 @@ return {
-- Uncomment next line if you want to follow only stable versions
-- version = "*"
}

View file

@ -1,6 +1,6 @@
return {
'willothy/wezterm.nvim',
opts = {
create_commands = false
}
create_commands = false,
},
}

View file

@ -1,4 +1,4 @@
local ls = require 'luasnip'
local ls = require('luasnip')
local s = ls.snippet
local i = ls.insert_node
@ -6,15 +6,15 @@ local t = ls.text_node
ls.add_snippets('lua', {
s('lr', {
t 'local ',
t('local '),
i(1, 'module'),
t ' = require("',
t(' = require("'),
i(2, 'module'),
t '")',
t('")'),
}),
s('pr', {
t 'print(',
t('print('),
i(1, 'text'),
t ')',
t(')'),
}),
})

View file

@ -3,7 +3,9 @@ local M = {}
-- Function to check if an IPython REPL is open in Neovim panes
function M.is_ipython_open()
for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do
if vim.api.nvim_buf_is_loaded(bufnr) and vim.api.nvim_get_option_value('buftype', { buf = bufnr }) == 'terminal' then
if
vim.api.nvim_buf_is_loaded(bufnr) and vim.api.nvim_get_option_value('buftype', { buf = bufnr }) == 'terminal'
then
if vim.b[bufnr].python_repl == true then
return true
end