feat: Working on filling in the gaps of LSPs, this time with html

language support.
This commit is contained in:
2026-08-30 08:52:28 -05:00
parent f9d056668d
commit dd26af461d
3 changed files with 36 additions and 1 deletions

19
nvim/after/lsp/html.lua Normal file
View File

@@ -0,0 +1,19 @@
return {
cmd = function(dispatchers, _)
return vim.lsp.rpc.start({'vscode-html-language-server', '--stdio' }, dispatchers)
end,
filetypes = { 'html' },
init_options = {
provideFormatter = true,
configurationSection = { 'html', 'css', 'javascript' },
embeddedLanguages = {
css = true,
javascript = true
}
},
root_markers = { 'package.json', '.git' },
-- root_dir = function(fname)
-- return root_pattern(fname) or vim.loop.os_homedir()
-- end,
settings = {},
}

View File

@@ -1 +1,8 @@
return {}
return {
cmd = { 'R', '--slave', '-e', 'languageserver::run()' },
filetypes = { 'r', 'rmd' },
log_level = 2,
root_dir = function(fname)
return util.find_git_ancestor(fname) or vim.loop.os_homedir()
end,
}