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,