1
0

Remove afte/ftplugin folder

This commit is contained in:
Nigel Barink 2024-09-27 20:31:36 +02:00
parent 0411f4b928
commit 5c8aeff729
Signed by: Nigel
GPG Key ID: 358D4144AFCABCBC
10 changed files with 0 additions and 120 deletions

View File

@ -1,3 +0,0 @@
require('lspconfig')['asm_lsp'].setup({
capabilities = capabilities
})

View File

@ -1,3 +0,0 @@
require('lspconfig')['bashls'].setup({
capabilities = capabilities
})

View File

@ -1,20 +0,0 @@
local root_files = {
'premake5.lua',
'.clang-tidy',
'.clang-format',
'compile_commands',
'compile_commands.json',
'compile_flags.txt',
'configure.ac',
'.git'
}
local util = require('lspconfig.util')
require('lspconfig')['clangd'].setup({
capabilities = capabilities,
filetypes= { 'c', 'cpp', 'objc', 'objcpp', 'cuda', 'proto' },
cmd = { 'clangd' },
single_file_support = true,
root_dir = function (fname)
return util.root_pattern(unpack(root_files))(fname)
end
})

View File

@ -1,39 +0,0 @@
require('lspconfig')['gopls'].setup({
capabilities = capabilities
})
local dap = require("dap")
dap.adapters.delve = {
type = 'server',
port = '${port}',
executable = {
command = 'dlv',
args = {'dap', '-l', '127.0.0.1:${port}'},
}
}
-- https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md
dap.configurations.go = {
{
type = "delve",
name = "Debug",
request = "launch",
program = "${file}"
},
{
type = "delve",
name = "Debug test", -- configuration for debugging test files
request = "launch",
mode = "test",
program = "${file}"
},
-- works with go.mod packages and sub packages
{
type = "delve",
name = "Debug test (go.mod)",
request = "launch",
mode = "test",
program = "./${relativeFileDirname}"
}
}

View File

@ -1,20 +0,0 @@
Cmd = 'c:/Users/nigel/Appdata/Local/nvim-data/mason/bin/jdtls.cmd'
JavaDebug = vim.fn.glob("C:/Users/nigel/AppData/Local/nvim-data/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-0.52.0.jar", 1)
local config = {
cmd = {Cmd},
root_dir = vim.fs.dirname(vim.fs.find({'gradlew', '.git', 'mvnw'}, { upward = true })[1]),
init_options = {
bundles = {
JavaDebug
}
}
}
require('jdtls').start_or_attach(config)
require('jdtls').setup_dap({hotcodreplace='auto'})
require('jdtls.dap').setup_dap_main_class_configs()
-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
require('lspconfig')['jdtls'].setup({
capabilities = capabilities
})

View File

@ -1,3 +0,0 @@
require('lspconfig')['tsserver'].setup({
capabilities = capabilities
})

View File

@ -1,14 +0,0 @@
local lsp = require("lspconfig")
lsp.lua_ls.setup({
capabilities = require('cmp_nvim_lsp').default_capabilities(),
settings = {
Lua = {
diagnostics = {
globals = { 'vim' }
}
}
}
})

View File

@ -1,6 +0,0 @@
-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
require('lspconfig')['pyright'].setup({
capabilities = capabilities
})

View File

@ -1,6 +0,0 @@
-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
require('lspconfig')['rust_analyzer'].setup({
capabilities = capabilities
})

View File

@ -1,6 +0,0 @@
-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
require('lspconfig')['zls'].setup({
capabilities = capabilities
})