feat: add asm-lsp setup
This commit is contained in:
parent
5a85ef99ff
commit
09e5cd383f
2 changed files with 22 additions and 0 deletions
nvim/ftplugin
20
nvim/ftplugin/asm.lua
Normal file
20
nvim/ftplugin/asm.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
-- Exit if the language server isn't available
|
||||
if vim.fn.executable('asm-lsp') ~= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
-- require'lspconfig'.asm_lsp.setup{}
|
||||
|
||||
local root_files = {
|
||||
'.asm-lsp.toml',
|
||||
'.vscode',
|
||||
'.git',
|
||||
}
|
||||
|
||||
vim.lsp.start {
|
||||
name = 'asm-lsp',
|
||||
cmd = { 'asm-lsp' },
|
||||
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
||||
capabilities = require('user.lsp').make_client_capabilities(),
|
||||
-- capabilities = { offsetEncoding = "utf-8" },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue