From 0232a5a1ab12f1f99ebcbf5071c7c10f246e5400 Mon Sep 17 00:00:00 2001 From: sadanslargehole Date: Sun, 19 May 2024 16:49:15 -0400 Subject: [PATCH] things --- lua/plugins.lua | 6 ++++++ lua/setuplsp.lua | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 8dd68c6..d3d2e62 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -8,6 +8,12 @@ local plugins = { { "windwp/nvim-ts-autotag" }, + { + "barrett-ruth/live-server.nvim", + build = "pnpm add -g live-server", + cmd = { "LiveServerStart", "LiveServerStop" }, + config = true, + }, { "iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, diff --git a/lua/setuplsp.lua b/lua/setuplsp.lua index 32968e8..b0ccaaf 100644 --- a/lua/setuplsp.lua +++ b/lua/setuplsp.lua @@ -3,7 +3,10 @@ require("neodev").setup({ -- add any options here, or leave empty to use the default settings }) local capabilities = require("cmp_nvim_lsp").default_capabilities() - +capabilities.textDocument.completion.completionItem.snippetSupport = true +require'lspconfig'.emmet_ls.setup{ + capabilities = capabilities, +} capabilities.textDocument.foldingRange = { dynamicRegistration = false, lineFoldingOnly = true, @@ -15,6 +18,9 @@ require'lspconfig'.nginx_language_server.setup{ require("lspconfig").bashls.setup({ capabilities = capabilities, }) +require'lspconfig'.html.setup { + capabilities = capabilities, +} require("lspconfig").nil_ls.setup({ capabilities = capabilities, })