resolve merge
This commit is contained in:
parent
54d8b950fd
commit
2e45c70b52
|
|
@ -235,14 +235,11 @@ require('lazy').setup({
|
||||||
'clang-format',
|
'clang-format',
|
||||||
'lua_ls',
|
'lua_ls',
|
||||||
'omnisharp',
|
'omnisharp',
|
||||||
'jdtls',
|
'prettierd',
|
||||||
'prettier',
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Skip automatic setup for servers
|
-- Skip automatic setup for servers
|
||||||
local skip_setup = {
|
local skip_setup = {}
|
||||||
'jdtls',
|
|
||||||
}
|
|
||||||
|
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
|
|
@ -260,20 +257,10 @@ require('lazy').setup({
|
||||||
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
|
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
|
||||||
require('lspconfig')[server_name].setup(server)
|
require('lspconfig')[server_name].setup(server)
|
||||||
end,
|
end,
|
||||||
jdtls = function()
|
|
||||||
require('java').setup {
|
|
||||||
-- Your custom jdtls settings goes here
|
|
||||||
}
|
|
||||||
|
|
||||||
require('lspconfig').jdtls.setup {
|
|
||||||
-- Your custom nvim-java configuration goes here
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
'nvim-java/nvim-java',
|
|
||||||
|
|
||||||
{ -- Autoformat
|
{ -- Autoformat
|
||||||
'stevearc/conform.nvim',
|
'stevearc/conform.nvim',
|
||||||
|
|
@ -309,11 +296,12 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
typescript = { 'prettier' },
|
typescript = { 'prettierd' },
|
||||||
javascript = { 'prettier' },
|
javascript = { 'prettierd' },
|
||||||
json = { 'prettier' },
|
json = { 'prettierd' },
|
||||||
scss = { 'prettier' },
|
scss = { 'prettierd' },
|
||||||
html = { 'prettier' },
|
html = { 'prettierd' },
|
||||||
|
markdown = { 'prettierd' },
|
||||||
-- Conform can also run multiple formatters sequentially
|
-- Conform can also run multiple formatters sequentially
|
||||||
-- python = { "isort", "black" },
|
-- python = { "isort", "black" },
|
||||||
--
|
--
|
||||||
|
|
@ -494,7 +482,7 @@ require('lazy').setup({
|
||||||
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
|
ensure_installed = { 'bash', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc', 'c' },
|
||||||
-- Autoinstall languages that are not installed
|
-- Autoinstall languages that are not installed
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = {
|
highlight = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue