lsp: show function signature, use conform.nvim for formatting code.

This commit is contained in:
xinyangli 2024-08-24 21:52:45 +08:00
parent 8199081348
commit aca9dd3078
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
4 changed files with 80 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{ helpers, ... }:
{ pkgs, helpers, ... }:
{
plugins.lsp = {
@ -69,6 +69,14 @@
};
};
};
onAttach = ''
require("lsp_signature").on_attach({
bind = true,
handler_opts = {
border = "rounded"
};
}, bufnr)
'';
};
keymaps = [
@ -85,4 +93,20 @@
};
}
];
extraConfigLua = ''
require("lspconfig").asm_lsp.setup {
filetypes = { "asm", "s", "S" }
}
require("lspconfig").verible.setup { }
'';
extraPlugins = with pkgs.vimPlugins; [
lsp_signature-nvim
];
extraPackages = with pkgs; [
asm-lsp
verible
];
}