From 2f10ace884be5029c9cfda35ea432228e74117ce Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 20 Oct 2023 14:50:15 +0000 Subject: [PATCH] deploy: 0631fccccfabee24006c2c9398d57d0fac6d489e --- options.html | 26 ++++++++++++++++++++++---- release-notes.html | 2 ++ 2 files changed, 24 insertions(+), 4 deletions(-) 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