diff --git a/lua/barink/after/ftplugin/asm.lua b/lua/barink/after/ftplugin/asm.lua deleted file mode 100644 index 47b5fa9..0000000 --- a/lua/barink/after/ftplugin/asm.lua +++ /dev/null @@ -1,3 +0,0 @@ -require('lspconfig')['asm_lsp'].setup({ - capabilities = capabilities -}) diff --git a/lua/barink/after/ftplugin/bash.lua b/lua/barink/after/ftplugin/bash.lua deleted file mode 100644 index 3f180eb..0000000 --- a/lua/barink/after/ftplugin/bash.lua +++ /dev/null @@ -1,3 +0,0 @@ -require('lspconfig')['bashls'].setup({ - capabilities = capabilities -}) diff --git a/lua/barink/after/ftplugin/cpp.lua b/lua/barink/after/ftplugin/cpp.lua deleted file mode 100644 index 89f95d7..0000000 --- a/lua/barink/after/ftplugin/cpp.lua +++ /dev/null @@ -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 -}) diff --git a/lua/barink/after/ftplugin/go.lua b/lua/barink/after/ftplugin/go.lua deleted file mode 100644 index f2b9ec0..0000000 --- a/lua/barink/after/ftplugin/go.lua +++ /dev/null @@ -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}" - } -} diff --git a/lua/barink/after/ftplugin/java.lua b/lua/barink/after/ftplugin/java.lua deleted file mode 100644 index 7d9fd91..0000000 --- a/lua/barink/after/ftplugin/java.lua +++ /dev/null @@ -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 -}) diff --git a/lua/barink/after/ftplugin/javascript.lua b/lua/barink/after/ftplugin/javascript.lua deleted file mode 100644 index 42a249f..0000000 --- a/lua/barink/after/ftplugin/javascript.lua +++ /dev/null @@ -1,3 +0,0 @@ -require('lspconfig')['tsserver'].setup({ - capabilities = capabilities -}) diff --git a/lua/barink/after/ftplugin/lua.lua b/lua/barink/after/ftplugin/lua.lua deleted file mode 100644 index a6bf0bc..0000000 --- a/lua/barink/after/ftplugin/lua.lua +++ /dev/null @@ -1,14 +0,0 @@ - - -local lsp = require("lspconfig") -lsp.lua_ls.setup({ - capabilities = require('cmp_nvim_lsp').default_capabilities(), - settings = { - Lua = { - diagnostics = { - globals = { 'vim' } - } - } - } -}) - diff --git a/lua/barink/after/ftplugin/python.lua b/lua/barink/after/ftplugin/python.lua deleted file mode 100644 index d29246c..0000000 --- a/lua/barink/after/ftplugin/python.lua +++ /dev/null @@ -1,6 +0,0 @@ --- Set up lspconfig. -local capabilities = require('cmp_nvim_lsp').default_capabilities() - -require('lspconfig')['pyright'].setup({ - capabilities = capabilities -}) diff --git a/lua/barink/after/ftplugin/rust.lua b/lua/barink/after/ftplugin/rust.lua deleted file mode 100644 index ef610b1..0000000 --- a/lua/barink/after/ftplugin/rust.lua +++ /dev/null @@ -1,6 +0,0 @@ --- Set up lspconfig. -local capabilities = require('cmp_nvim_lsp').default_capabilities() - -require('lspconfig')['rust_analyzer'].setup({ - capabilities = capabilities -}) diff --git a/lua/barink/after/ftplugin/zig.lua b/lua/barink/after/ftplugin/zig.lua deleted file mode 100644 index d4150fe..0000000 --- a/lua/barink/after/ftplugin/zig.lua +++ /dev/null @@ -1,6 +0,0 @@ --- Set up lspconfig. -local capabilities = require('cmp_nvim_lsp').default_capabilities() - -require('lspconfig')['zls'].setup({ - capabilities = capabilities -})