mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
* chore(nvim): remove astronvim and configs * feat(nvim): new, custom nvim configuration
32 lines
881 B
Lua
32 lines
881 B
Lua
local util = require("lspconfig.util")
|
|
-- local config = require 'lspconfig.configs'
|
|
|
|
-- This duplicate exec is just a workaruond, if don't execute at first,
|
|
-- the nvim will stuck when you first init rome socket
|
|
-- local rome_cmd = { 'rome', 'lsp-proxy' }
|
|
|
|
-- local merged_table = vim.tbl_extend("keep", {
|
|
-- textDocument = {
|
|
-- formatting = {
|
|
-- dynamicRegistration = true
|
|
-- }
|
|
-- }
|
|
-- }, capabilities);
|
|
--
|
|
require("lspconfig").rome.setup({
|
|
-- cmd = rome_cmd,
|
|
-- filetypes = {
|
|
-- 'javascript',
|
|
-- 'javascriptreact',
|
|
-- 'typescript',
|
|
-- 'typescriptreact',
|
|
-- 'json'
|
|
-- },
|
|
root_dir = util.root_pattern("rome.json"),
|
|
single_file_support = true,
|
|
on_attach = function(client, bufnr)
|
|
if client.server_capabilities.documentSymbolProvider then require("nvim-navic").attach(client, bufnr) end
|
|
end,
|
|
capabilities = CAPABILITIES,
|
|
})
|