From 5922dd52b5c06c71a95cec94d87b10a90b4b30fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 23 Jan 2024 12:17:00 +0100 Subject: [PATCH] Add vale_ls, disoutc snippet and enable all features for rust-analyzer --- symlinks/config/nvim/lua/esensar/lsp/servers.lua | 2 ++ symlinks/config/nvim/plugin/snippets.lua | 3 +++ symlinks/profile.common | 2 ++ 3 files changed, 7 insertions(+) diff --git a/symlinks/config/nvim/lua/esensar/lsp/servers.lua b/symlinks/config/nvim/lua/esensar/lsp/servers.lua index 8ad9135..d1601a4 100644 --- a/symlinks/config/nvim/lua/esensar/lsp/servers.lua +++ b/symlinks/config/nvim/lua/esensar/lsp/servers.lua @@ -69,6 +69,7 @@ local servers = { "solang", "terraformls", "tsserver", + "vale_ls", "vimls", "zls", } @@ -101,6 +102,7 @@ vim.g.rustaceanvim = { }, cargo = { loadOutDirsFromCheck = true, + features = "all" }, }, }, diff --git a/symlinks/config/nvim/plugin/snippets.lua b/symlinks/config/nvim/plugin/snippets.lua index b9293e9..60f573c 100644 --- a/symlinks/config/nvim/plugin/snippets.lua +++ b/symlinks/config/nvim/plugin/snippets.lua @@ -12,6 +12,9 @@ luasnip.add_snippets("all", { s("diso", { f(function(_, _) return os.date("%Y-%m-%dT%H:%M:%S") end) }), + s("disoutc", { f(function(_, _) + return os.date("!%Y-%m-%dT%H:%M:%SZ") + end) }), }) require("luasnip.loaders.from_vscode").lazy_load() diff --git a/symlinks/profile.common b/symlinks/profile.common index 41a9b65..5f61b43 100644 --- a/symlinks/profile.common +++ b/symlinks/profile.common @@ -36,5 +36,7 @@ export VISUAL=nvim export ELIXIR_EDITOR="nvim" export _JAVA_AWT_WM_NONREPARENTING=1 +export ANDROID_HOME="$HOME/Android/Sdk" + alias vim="nvim" alias vi="nvim"