From 2c9ca86b6a834e1be66678eee78246f8339b3e73 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Thu, 20 Oct 2022 15:34:14 +0200 Subject: Config --- Common/nvim/lua/lsp-conf.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Common/nvim/lua/lsp-conf.lua (limited to 'Common/nvim/lua/lsp-conf.lua') diff --git a/Common/nvim/lua/lsp-conf.lua b/Common/nvim/lua/lsp-conf.lua new file mode 100644 index 0000000..0b494a5 --- /dev/null +++ b/Common/nvim/lua/lsp-conf.lua @@ -0,0 +1,34 @@ +-- lsp +require("nvim-lsp-installer").setup() +local lspconfig = require'lspconfig' +local coq = require "coq" + +-- setup language servers here +local lsp_flags = { + -- This is the default in Nvim 0.7+ + debounce_text_changes = 150, +} + +local lspconfig = require('lspconfig') +lspconfig['pyright'].setup{ + on_attach = on_attach, + flags = lsp_flags, +} +lspconfig.ccls.setup { + single_file_support = true; + init_options = { + compilationDatabaseDirectory = "build"; + index = { + threads = 0; + }; + clang = { + excludeArgs = { "-frounding-math"} ; + }; + } +} + +lspconfig.ccls.setup{} +lspconfig.intelephense.setup{} +lspconfig.cssls.setup{} +lspconfig.html.setup{} +lspconfig.bashls.setup{} -- cgit v1.2.3