You've already forked dotfiles
marksman. Adding documentation for LSP configs. Removing Mason config and the reference to nvim-lspconfig.
21 lines
467 B
Lua
21 lines
467 B
Lua
-- local util = require 'lspconfig.util'
|
|
|
|
return {
|
|
filetypes = { 'arduino' },
|
|
root_dir = function(bufnr, on_dir)
|
|
local fname = vim.api.nvim_buf_get_name(bufnr)
|
|
-- on_dir(util.root_pattern('*.ino')(fname))
|
|
end,
|
|
cmd = {
|
|
'arduino-language-server',
|
|
},
|
|
capabilities = {
|
|
textDocument = {
|
|
semanticTokens = vim.NIL,
|
|
},
|
|
workspace = {
|
|
semanticTokens = vim.NIL,
|
|
},
|
|
},
|
|
}
|