summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2023-10-31 20:29:57 +0100
committeryuzu-eva <stevenhu@web.de>2023-10-31 20:29:57 +0100
commitb8ad8f60d1e9b1f9e2f6889d63a1b5166cf8d085 (patch)
treeaf8040727c4a59abbfaeddb9fe3523cfaaf9de43 /.config/nvim
parent0c1c8b0a62f78181efa37363431b9d1d28621b91 (diff)
added apt aliases
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/user/plugins/lspconfig.lua50
1 files changed, 30 insertions, 20 deletions
diff --git a/.config/nvim/lua/user/plugins/lspconfig.lua b/.config/nvim/lua/user/plugins/lspconfig.lua
index 67d82a7..2e51445 100644
--- a/.config/nvim/lua/user/plugins/lspconfig.lua
+++ b/.config/nvim/lua/user/plugins/lspconfig.lua
@@ -59,27 +59,37 @@ require 'lspconfig'.emmet_ls.setup {
filetypes = { 'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'eruby' }
}
+-- require'lspconfig'.lua_ls.setup {
+-- on_init = function(client)
+-- local path = client.workspace_folders[1].name
+-- if not vim.loop.fs_stat(path..'/.luarc.json') and not vim.loop.fs_stat(path..'/.luarc.jsonc') then
+-- client.config.settings = vim.tbl_deep_extend('force', client.config.settings.Lua, {
+-- runtime = {
+-- -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
+-- version = 'LuaJIT'
+-- },
+-- -- Make the server aware of Neovim runtime files
+-- workspace = {
+-- library = { vim.env.VIMRUNTIME }
+-- -- or pull in all of 'runtimepath'. NOTE: this is a lot slower
+-- -- library = vim.api.nvim_get_runtime_file("", true)
+-- },
+-- cmd = { "~/.emacs.d/.cache/lsp/lua-language-server/bin/lua-language-server" },
+-- })
+
+-- client.notify("workspace/didChangeConfiguration", { settings = client.config.settings })
+-- end
+-- return true
+-- end
+-- }
+
require'lspconfig'.lua_ls.setup {
- on_init = function(client)
- local path = client.workspace_folders[1].name
- if not vim.loop.fs_stat(path..'/.luarc.json') and not vim.loop.fs_stat(path..'/.luarc.jsonc') then
- client.config.settings = vim.tbl_deep_extend('force', client.config.settings.Lua, {
- runtime = {
- -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
- version = 'LuaJIT'
- },
- -- Make the server aware of Neovim runtime files
- workspace = {
- library = { vim.env.VIMRUNTIME }
- -- or pull in all of 'runtimepath'. NOTE: this is a lot slower
- -- library = vim.api.nvim_get_runtime_file("", true)
- }
- })
-
- client.notify("workspace/didChangeConfiguration", { settings = client.config.settings })
- end
- return true
- end
+ on_attach = on_attach,
+ capabilities = capabilities,
+ flags = {
+ debounce_text_changes = 150,
+ },
+ cmd = { "/home/cafebabe/.emacs.d/.cache/lsp/lua-language-server/bin/lua-language-server" },
}
require 'lspconfig'.bashls.setup {