dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

lsp.lua (1015B)


      1 return {
      2     "neovim/nvim-lspconfig",
      3     dependencies = {
      4         {
      5         "folke/lazydev.nvim",
      6             ft = "lua", -- only load on lua files
      7             opts = {
      8                 library = {
      9                     -- See the configuration section for more details
     10                     -- Load luvit types when the `vim.uv` word is found
     11                     { path = "${3rd}/luv/library", words = { "vim%.uv" } },
     12                 },
     13             },
     14         }
     15     },
     16 
     17     config = function()
     18         -- require("lspconfig").lua_ls.setup()
     19         vim.lsp.enable("html-lsp")
     20         vim.lsp.enable("lua_ls")
     21         -- require("mason").setup()
     22         -- require("mason-lspconfig").setup({
     23         --     automatic_installation = true,
     24         --     ensure_installed = {
     25         --         "lua_ls",
     26         --         "rust_analyzer",
     27         --         "html-lsp",
     28         --         "clangd",
     29         --         "tinymist",
     30         --     },
     31         --     
     32         -- })
     33         -- local l = vim.lsp
     34     end,
     35 }