From 4612634b21d97b65bf531e158fbf76ff1d983880 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 22 Jul 2021 18:51:27 -0500 Subject: [PATCH] Stuff --- common/neovim/coc-settings.json | 2 +- common/neovim/lua/options.lua | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common/neovim/coc-settings.json b/common/neovim/coc-settings.json index b840e05..6d4b2ee 100644 --- a/common/neovim/coc-settings.json +++ b/common/neovim/coc-settings.json @@ -1,5 +1,5 @@ { - "coc.preferences.formatOnSaveFiletypes": ["elixir", "ex", "exs"], + "coc.preferences.formatOnSaveFiletypes": ["elixir", "ex", "exs", "js", "jsx", "ts", "tsx", "svelte", "css", "markdown"], "elixir.pathToElixirLS": "~/.elixir-ls/release/language_server.sh", "diagnostic-languageserver.filetypes": { "elixir": ["mix_credo", "mix_credo_compile"], diff --git a/common/neovim/lua/options.lua b/common/neovim/lua/options.lua index 2f81dea..115e859 100644 --- a/common/neovim/lua/options.lua +++ b/common/neovim/lua/options.lua @@ -7,10 +7,19 @@ local globals = { indent_blankline_filetype_exclude = {'help', 'packer'}, indent_blankline_buftype_exclude = {'terminal', 'nofile'}, indent_blankline_char_highlight = 'LineNr', + svelte_preprocessors = {'typescript', 'coffeescript', 'sass', 'pug'}, + svelte_preprocessor_tags = { + {name = 'sass', tag = 'lang', as = 'sass'}, + {name = 'coffeescript', tag = 'lang', as = 'coffeescript'}, + {name = 'pug', tag = 'pug', as = 'pug'}, + }, + svelte_indent_script = 0, + svelte_indent_style = 0, } for k,v in pairs(globals) do vim.g[k] = v end local options = { + clipboard = 'unnamedplus', inccommand = 'nosplit', tabstop = 2, softtabstop = 2,