diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2022-10-20 15:34:14 +0200 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2022-10-20 15:34:14 +0200 |
commit | 2c9ca86b6a834e1be66678eee78246f8339b3e73 (patch) | |
tree | 5077e0eaeca5c7b6ca6aebb8799e0e0659c259ec /Common/nvim/lua/lsp-conf.lua | |
parent | 523cce3069f5aff6be3ddb284ca81ba040f84f3d (diff) | |
download | dotfiles-2c9ca86b6a834e1be66678eee78246f8339b3e73.tar.gz dotfiles-2c9ca86b6a834e1be66678eee78246f8339b3e73.zip |
Config
Diffstat (limited to 'Common/nvim/lua/lsp-conf.lua')
-rw-r--r-- | Common/nvim/lua/lsp-conf.lua | 34 |
1 files changed, 34 insertions, 0 deletions
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{} |