diff --git a/options.html b/options.html index 9b73af1..2535e3a 100644 --- a/options.html +++ b/options.html @@ -939,7 +939,7 @@ This is a python package with debugpy installed, see https://nixos.wiki/wiki/Pyt <neovim-flake/modules/languages/python.nix>
vim.languages.python.format.package

Python formatter package

Type: package

Default: <derivation black-23.9.1>

Declared by:

<neovim-flake/modules/languages/python.nix> -
vim.languages.python.format.type

Python formatter to use

Type: value "black" (singular enum)

Default: "black"

Declared by:

+
vim.languages.python.format.type

Python formatter to use

Type: one of "black", "black-and-isort", "isort"

Default: "black"

Declared by:

<neovim-flake/modules/languages/python.nix>
vim.languages.python.lsp.enable

Whether to enable Enable Python LSP support.

Type: boolean

Default: false

Example: true

Declared by:

<neovim-flake/modules/languages/python.nix> @@ -1626,28 +1626,46 @@ Thus, it will not be wrapped in `""`.

Type:

vim.statusline.lualine.activeSection.x

active config for: | A | B | C (X) | Y | Z |

Type: string

Default:

''
   {
     {
-      -- Lsp server name .
+      -- Lsp server name
       function()
-        local msg = 'No Active Lsp'
-        local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
+        local buf_ft = vim.api.nvim_get_option_value('filetype', {})
+  
+        -- List of buffer types to exclude
+        local excluded_buf_ft = {"toggleterm", "NvimTree", "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 ""
+          end
+        end
+  
+        -- Get the name of the LSP server active in the current buffer
         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
           local filetypes = client.config.filetypes
           if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
             return client.name
           end
         end
+  
         return msg
       end,
       icon = ' ',
+      color = {bg='none', fg='lavender'},
     },
     {
       "diagnostics",
       sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'},
       symbols = {error = '󰅙  ', warn = '  ', info = '  ', hint = '󰌵 '},
+      color = {bg='none', fg='lavender'},
       diagnostics_color = {
         color_error = { fg = 'red' },
         color_warn = { fg = 'yellow' },
diff --git a/release-notes.html b/release-notes.html
index 472a0d9..37ea14a 100644
--- a/release-notes.html
+++ b/release-notes.html
@@ -225,4 +225,6 @@ Updated clangd to 16
 Disabled useSystemClipboard by default
 

ksonj:

  • Add support to change mappings to utility/surround +
  • +Add black-and-isort python formatter
\ No newline at end of file