Skip to content

Commit

Permalink
feat(asm_lsp): add NASM config support and single_file support (#3565)
Browse files Browse the repository at this point in the history
* feat(asm_lsp): add NASM support and single_file support

* fix(asm_lsp): use vim.fs.dirname instead of util.root_pattern

---------

Co-authored-by: iguanacucumber <[email protected]>
  • Loading branch information
iguanacucumber and iguanacucumber authored Jan 18, 2025
1 parent 339ccc8 commit e11b389
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/lspconfig/configs/asm_lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ return {
default_config = {
cmd = { 'asm-lsp' },
filetypes = { 'asm', 'vmasm' },
single_file_support = true,
root_dir = function(fname)
return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
return vim.fs.dirname(vim.fs.find({ '.asm-lsp.toml', '.git' }, { path = fname, upward = true })[1])
end,
},
docs = {
description = [[
https://github.com/bergercookie/asm-lsp
Language Server for GAS/GO Assembly
Language Server for NASM/GAS/GO Assembly
`asm-lsp` can be installed via cargo:
cargo install asm-lsp
Expand Down

0 comments on commit e11b389

Please sign in to comment.