mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	deploy: 33b4d9da44
		
	This commit is contained in:
		
					parent
					
						
							
								28fdcc31e9
							
						
					
				
			
			
				commit
				
					
						af105ca46c
					
				
			
		
					 1 changed files with 16 additions and 25 deletions
				
			
		
							
								
								
									
										39
									
								
								options.html
									
										
									
									
									
								
							
							
						
						
									
										39
									
								
								options.html
									
										
									
									
									
								
							|  | @ -120,7 +120,7 @@ package here may yield undesirable results.</p></div> | ||||||
| package</p> | package</p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Default:</em></span> | <p><span class="emphasis"><em>Default:</em></span> | ||||||
| <code class="literal"><derivation neovim-unwrapped-0.10.4></code></p> | <code class="literal"><derivation neovim-unwrapped-0.11.0></code></p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Declared by:</em></span></p> | <p><span class="emphasis"><em>Declared by:</em></span></p> | ||||||
| <table border="0" summary="Simple list" class="simplelist"> | <table border="0" summary="Simple list" class="simplelist"> | ||||||
|  | @ -14142,7 +14142,7 @@ boolean</p> | ||||||
| package or list of string</p> | package or list of string</p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Default:</em></span> | <p><span class="emphasis"><em>Default:</em></span> | ||||||
| <code class="literal"><derivation dart-3.7.1></code></p> | <code class="literal"><derivation dart-3.7.2></code></p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Example:</em></span> | <p><span class="emphasis"><em>Example:</em></span> | ||||||
| <code class="literal">"[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"</code></p> | <code class="literal">"[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"</code></p> | ||||||
|  | @ -19121,7 +19121,7 @@ boolean</p> | ||||||
| package or list of string</p> | package or list of string</p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Default:</em></span> | <p><span class="emphasis"><em>Default:</em></span> | ||||||
| <code class="literal"><derivation rust-analyzer-2025-03-17></code></p> | <code class="literal"><derivation rust-analyzer-2025-03-24></code></p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Example:</em></span> | <p><span class="emphasis"><em>Example:</em></span> | ||||||
| <code class="literal">"[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"</code></p> | <code class="literal">"[lib.getExe pkgs.jdt-language-server \"-data\" \"~/.cache/jdtls/workspace\"]"</code></p> | ||||||
|  | @ -32824,35 +32824,26 @@ list of string</p> | ||||||
|     { |     { | ||||||
|       -- Lsp server name |       -- Lsp server name | ||||||
|       function() |       function() | ||||||
|         local buf_ft = vim.api.nvim_get_option_value('filetype', {}) |         local buf_ft = vim.bo.filetype | ||||||
|  |         local excluded_buf_ft = { toggleterm = true, NvimTree = true, ["neo-tree"] = true, TelescopePrompt = true } | ||||||
|      |      | ||||||
|         -- List of buffer types to exclude |         if excluded_buf_ft[buf_ft] then | ||||||
|         local excluded_buf_ft = {"toggleterm", "NvimTree", "neo-tree", "TelescopePrompt"} |  | ||||||
|      |  | ||||||
|         -- Check if the current buffer type is in the excluded list |  | ||||||
|         for _, excluded_type in ipairs(excluded_buf_ft) do |  | ||||||
|           if buf_ft == excluded_type then |  | ||||||
|           return "" |           return "" | ||||||
|           end |           end | ||||||
|  |      | ||||||
|  |         local bufnr = vim.api.nvim_get_current_buf() | ||||||
|  |         local clients = vim.lsp.get_clients({ bufnr = bufnr }) | ||||||
|  |      | ||||||
|  |         if vim.tbl_isempty(clients) then | ||||||
|  |           return "No Active LSP" | ||||||
|         end |         end | ||||||
|      |      | ||||||
|         -- Get the name of the LSP server active in the current buffer |         local active_clients = {} | ||||||
|         local clients = vim.lsp.get_active_clients() |  | ||||||
|         local msg = 'No Active Lsp' |  | ||||||
|      |  | ||||||
|         -- if no lsp client is attached then return the msg |  | ||||||
|         if next(clients) == nil then |  | ||||||
|           return msg |  | ||||||
|         end |  | ||||||
|      |  | ||||||
|         for _, client in ipairs(clients) do |         for _, client in ipairs(clients) do | ||||||
|           local filetypes = client.config.filetypes |           table.insert(active_clients, client.name) | ||||||
|           if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then |  | ||||||
|             return client.name |  | ||||||
|           end |  | ||||||
|         end |         end | ||||||
|      |      | ||||||
|         return msg |         return table.concat(active_clients, ", ") | ||||||
|       end, |       end, | ||||||
|       icon = ' ', |       icon = ' ', | ||||||
|       separator = {left = ''}, |       separator = {left = ''}, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf