Arduino LSP

This commit is contained in:
Daan Vanoverloop 2021-10-21 08:37:11 +02:00
parent a3ffda6610
commit 9ecc9b4a9e
Signed by: Danacus
GPG Key ID: F2272B50E129FC5C
2 changed files with 11 additions and 2 deletions

View File

@ -31,6 +31,17 @@ for _, lsp in ipairs(servers) do
}
end
lspconfig['arduino_language_server'].setup({
on_attach = function(client, bufnr)
local basics = require('lsp_basics')
basics.make_lsp_commands(client, bufnr)
basics.make_lsp_mappings(client, bufnr)
end,
capabilities = capabilities,
cmd = { "arduino-language-server", "-cli-config", "/home/daan/.arduino15/arduino-cli.yaml" },
})
lspconfig['rust_analyzer'].setup({
on_attach = function(client, bufnr)
local basics = require('lsp_basics')

View File

@ -74,8 +74,6 @@ exec_always --no-startup-id ~/.config/sway/lisgd_gestures.sh
bindsym $mod+Shift+e exec --no-startup-id ~/.config/sway/exit.sh
bindsym $mod+c exec --no-startup-id rofi-pass-wl
bindsym $mod+Shift+g exec --no-startup-id dmenu_script game.sh
bindsym $mod+c exec --no-startup-id rofi-pass-wl