aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorIguanaCucumber <sacha.fazzari@protonmail.com>2025-01-18 05:18:37 +0400
committerGitHub <noreply@github.com>2025-01-18 09:18:37 +0800
commite11b389894e82bfd3f453270868019065d783c3e (patch)
treeeb8bd613fa63ce9d4391c39e3236f3ac7294cff6 /lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-e11b389894e82bfd3f453270868019065d783c3e.tar
nvim-lspconfig-e11b389894e82bfd3f453270868019065d783c3e.tar.gz
nvim-lspconfig-e11b389894e82bfd3f453270868019065d783c3e.tar.bz2
nvim-lspconfig-e11b389894e82bfd3f453270868019065d783c3e.tar.lz
nvim-lspconfig-e11b389894e82bfd3f453270868019065d783c3e.tar.xz
nvim-lspconfig-e11b389894e82bfd3f453270868019065d783c3e.tar.zst
nvim-lspconfig-e11b389894e82bfd3f453270868019065d783c3e.zip
feat(asm_lsp): add NASM config support and single_file support (#3565)
* 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 <you@example.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/asm_lsp.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lspconfig/configs/asm_lsp.lua b/lua/lspconfig/configs/asm_lsp.lua
index 0ccfec03..6b640cc3 100644
--- a/lua/lspconfig/configs/asm_lsp.lua
+++ b/lua/lspconfig/configs/asm_lsp.lua
@@ -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