refactor: clean up user example files to be easier to follow
This commit is contained in:
		@@ -1,39 +0,0 @@
 | 
			
		||||
return {
 | 
			
		||||
  "AstroNvim/astrolsp",
 | 
			
		||||
  opts = {
 | 
			
		||||
    -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
 | 
			
		||||
    diagnostics = {
 | 
			
		||||
      virtual_text = true,
 | 
			
		||||
      underline = true,
 | 
			
		||||
    },
 | 
			
		||||
    -- customize lsp formatting options
 | 
			
		||||
    formatting = {
 | 
			
		||||
      -- control auto formatting on save
 | 
			
		||||
      format_on_save = {
 | 
			
		||||
        enabled = true, -- enable or disable format on save globally
 | 
			
		||||
        allow_filetypes = { -- enable format on save for specified filetypes only
 | 
			
		||||
          -- "go",
 | 
			
		||||
        },
 | 
			
		||||
        ignore_filetypes = { -- disable format on save for specified filetypes
 | 
			
		||||
          -- "python",
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      disabled = { -- disable formatting capabilities for the listed language servers
 | 
			
		||||
        -- disable lua_ls formatting capability if you want to use StyLua to format your lua code
 | 
			
		||||
        -- "lua_ls",
 | 
			
		||||
      },
 | 
			
		||||
      timeout_ms = 1000, -- default format timeout
 | 
			
		||||
      -- filter = function(client) -- fully override the default formatting function
 | 
			
		||||
      --   return true
 | 
			
		||||
      -- end
 | 
			
		||||
    },
 | 
			
		||||
    -- enable servers that you already have installed without mason
 | 
			
		||||
    servers = {
 | 
			
		||||
      -- "pyright"
 | 
			
		||||
    },
 | 
			
		||||
    -- customize language server configuration options passed to `lspconfig`
 | 
			
		||||
    config = {
 | 
			
		||||
      -- clangd = { capabilities = { offsetEncoding = "utf-8" } },
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user