From 779ce40080f040c42620389958891edee2785960 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 24 Aug 2023 15:25:20 +0700 Subject: [PATCH] chore(nvim): remove luals --- data/nvim/init.lua | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 95f1bac..3727f5f 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -390,9 +390,10 @@ require("lazy").setup({ "go", "json", "lua", + "proto", + "sql", "toml", "yaml", - "proto", }, }) end, @@ -459,29 +460,6 @@ require("lazy").setup({ -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#bufls lspconfig.bufls.setup({}) - -- Lua - -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls - lspconfig.lua_ls.setup({ - settings = { - Lua = { - runtime = { - version = "LuaJIT", - }, - diagnostics = { - globals = { "vim" }, - }, - format = { - -- Prefer Neoformat with stylua - enable = false, - }, - workspace = { - library = vim.api.nvim_get_runtime_file("", true), - checkThirdParty = false, - }, - }, - }, - }) - -- General vim.keymap.set("n", "[d", vim.diagnostic.goto_prev) vim.keymap.set("n", "]d", vim.diagnostic.goto_next)