Skip to content

Commit

Permalink
Add oxlint LSP support
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Apr 2, 2024
1 parent 4b8c888 commit 9924ec1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .config/nvim/lua/jelle/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ end
-- end
-- })

require('lspconfig.configs').oxlint = {
default_config = {
cmd = {"oxc_language_server"},
filetypes = {'javascript', 'javascriptreact'},
root_dir = lspconfig.util.root_pattern(".eslintrc.json"),
settings = {},
};
}

-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
local servers = {'clangd', 'rust_analyzer', 'tsserver', 'gopls', 'marksman', 'ruff_lsp', 'bashls'}
for _, lsp in ipairs(servers) do
Expand Down

0 comments on commit 9924ec1

Please sign in to comment.