some cleanups

This commit is contained in:
Tim
2024-08-21 22:31:56 +02:00
parent 06763ecd94
commit 3717d2c216
5 changed files with 6 additions and 75 deletions

View File

@@ -3,10 +3,10 @@ return {
lazy = false, lazy = false,
opts = { opts = {
notify_on_error = true, notify_on_error = true,
formatters_by_ft = { -- formatters_by_ft = {
svelte = { "prettier" }, -- svelte = { "prettier" },
vue = { "prettier" }, -- vue = { "prettier" },
}, -- },
format_on_save = { format_on_save = {
lsp_fallback = true, lsp_fallback = true,
timeout_ms = 1500, timeout_ms = 1500,
@@ -15,12 +15,5 @@ return {
config = function(_, opts) config = function(_, opts)
local plug = require('conform') local plug = require('conform')
plug.setup(opts) plug.setup(opts)
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- pattern = "*",
-- callback = function(args)
-- plug.format({ bufnr = args.buf })
-- end,
-- })
end, end,
} }

View File

@@ -1,38 +0,0 @@
return {
'mfussenegger/nvim-jdtls',
layz = false,
config = function()
local home = os.getenv('HOME')
local workspace_folder = home .. "/.local/share/eclipse/" .. vim.fn.fnamemodify(root_dir, ":p:h:t")
local config = {
cmd = {
'/usr/bin/java',
'-Declipse.application=org.eclipse.jdt.ls.core.id1',
'-Dosgi.bundles.defaultStartLevel=4',
'-Declipse.product=org.eclipse.jdt.ls.core.product',
'-Dlog.protocol=true',
'-Dlog.level=ALL',
'-Xmx1g',
'--add-modules=ALL-SYSTEM',
'--add-opens', 'java.base/java.util=ALL-UNNAMED',
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'-javaagent:/usr/share/java/lombok/lombok.jar',
'-jar', home .. '/.local/share/jdtls/plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar',
'-configuration', home .. '/.local/share/jdtls/config_linux',
'-data', workspace_folder
},
root_dir = vim.fs.dirname(vim.fs.find({ 'gradlew', 'mvnw', '.git' }, { upward = true })[1]),
}
vim.api.nvim_create_autocmd("FileType", {
pattern = "java",
callback = function()
require('jdtls').start_or_attach(config)
end
})
end,
}

View File

@@ -19,14 +19,9 @@ return {
end) end)
require('mason-lspconfig').setup { require('mason-lspconfig').setup {
ensure_installed = { 'rust_analyzer', 'lua_ls', 'kotlin_language_server' }, ensure_installed = { 'rust_analyzer', 'lua_ls' },
handlers = { handlers = {
lsp_zero.default_setup, lsp_zero.default_setup
kotlin_language_server = function()
require('lspconfig').kotlin_language_server.setup({
settings = { kotlin = { compiler = { jvm = { target = "17" } } } }
})
end,
} } } }
end, end,
}, },

View File

@@ -1,4 +0,0 @@
return {
-- 'TimsDevCorner/vim-maven-plugin',
-- lazy = false
}

View File

@@ -1,15 +0,0 @@
return {
-- "folke/tokyonight.nvim",
-- lazy = false,
-- priority = 1000,
-- opts = {
-- style = "moon",
-- on_colors = function(colors)
-- colors.fg_gutter = colors.orange
-- end,
-- },
-- config = function(_, opts)
-- require('tokyonight').setup(opts)
-- vim.cmd([[colorscheme tokyonight]])
-- end,
}