update
This commit is contained in:
		
						commit
						ca46d4b0a7
					
				
							
								
								
									
										11
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										11
									
								
								init.lua
								
								
								
								
							| 
						 | 
				
			
			@ -678,8 +678,8 @@ require('lazy').setup({
 | 
			
		|||
        -- Some languages (like typescript) have entire language plugins that can be useful:
 | 
			
		||||
        --    https://github.com/pmizio/typescript-tools.nvim
 | 
			
		||||
        --
 | 
			
		||||
        -- But for many setups, the LSP (`tsserver`) will work just fine
 | 
			
		||||
        -- tsserver = {},
 | 
			
		||||
        -- But for many setups, the LSP (`ts_ls`) will work just fine
 | 
			
		||||
        -- ts_ls = {},
 | 
			
		||||
        --
 | 
			
		||||
 | 
			
		||||
        -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
 | 
			
		||||
| 
						 | 
				
			
			@ -778,9 +778,8 @@ require('lazy').setup({
 | 
			
		|||
        -- js -> LSP: tsserver, Formatter & linter: biome
 | 
			
		||||
        -- npm install -g @biomejs/biome
 | 
			
		||||
        biome = {},
 | 
			
		||||
        -- npm install -g typescript-language-server typescript
 | 
			
		||||
        tsserver = {},
 | 
			
		||||
        -- ts_ls = {},
 | 
			
		||||
        -- npm install -g typescript typescript-language-server
 | 
			
		||||
        ts_ls = {},
 | 
			
		||||
        harper_ls = {
 | 
			
		||||
          -- userDictPath = '~/dict.txt',
 | 
			
		||||
        },
 | 
			
		||||
| 
						 | 
				
			
			@ -814,7 +813,7 @@ require('lazy').setup({
 | 
			
		|||
            local server = servers[server_name] or {}
 | 
			
		||||
            -- This handles overriding only values explicitly passed
 | 
			
		||||
            -- by the server configuration above. Useful when disabling
 | 
			
		||||
            -- certain features of an LSP (for example, turning off formatting for tsserver)
 | 
			
		||||
            -- certain features of an LSP (for example, turning off formatting for ts_ls)
 | 
			
		||||
            server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
 | 
			
		||||
            require('lspconfig')[server_name].setup(server)
 | 
			
		||||
          end,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue