mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 14:45:58 +01:00
deploy: 0631fccccf
This commit is contained in:
parent
6dfcc47117
commit
2f10ace884
2 changed files with 24 additions and 4 deletions
26
options.html
26
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>
|
<neovim-flake/modules/languages/python.nix>
|
||||||
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.languages.python.format.package"></a><a class="link" href="options.html#opt-vim.languages.python.format.package"><code class="option">vim.languages.python.format.package</code></a></span></dt><dd><p>Python formatter package</p><p><span class="emphasis"><em>Type:</em></span> package</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal"><derivation black-23.9.1></code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/notashelf/neovim-flake/blob/main/modules/languages/python.nix#blob-path" target="_top">
|
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.languages.python.format.package"></a><a class="link" href="options.html#opt-vim.languages.python.format.package"><code class="option">vim.languages.python.format.package</code></a></span></dt><dd><p>Python formatter package</p><p><span class="emphasis"><em>Type:</em></span> package</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal"><derivation black-23.9.1></code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/notashelf/neovim-flake/blob/main/modules/languages/python.nix#blob-path" target="_top">
|
||||||
<neovim-flake/modules/languages/python.nix>
|
<neovim-flake/modules/languages/python.nix>
|
||||||
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.languages.python.format.type"></a><a class="link" href="options.html#opt-vim.languages.python.format.type"><code class="option">vim.languages.python.format.type</code></a></span></dt><dd><p>Python formatter to use</p><p><span class="emphasis"><em>Type:</em></span> value "black" (singular enum)</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">"black"</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/notashelf/neovim-flake/blob/main/modules/languages/python.nix#blob-path" target="_top">
|
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.languages.python.format.type"></a><a class="link" href="options.html#opt-vim.languages.python.format.type"><code class="option">vim.languages.python.format.type</code></a></span></dt><dd><p>Python formatter to use</p><p><span class="emphasis"><em>Type:</em></span> one of "black", "black-and-isort", "isort"</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">"black"</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/notashelf/neovim-flake/blob/main/modules/languages/python.nix#blob-path" target="_top">
|
||||||
<neovim-flake/modules/languages/python.nix>
|
<neovim-flake/modules/languages/python.nix>
|
||||||
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.languages.python.lsp.enable"></a><a class="link" href="options.html#opt-vim.languages.python.lsp.enable"><code class="option">vim.languages.python.lsp.enable</code></a></span></dt><dd><p>Whether to enable Enable Python LSP support.</p><p><span class="emphasis"><em>Type:</em></span> boolean</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">false</code></p><p><span class="emphasis"><em>Example:</em></span> <code class="literal">true</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/notashelf/neovim-flake/blob/main/modules/languages/python.nix#blob-path" target="_top">
|
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.languages.python.lsp.enable"></a><a class="link" href="options.html#opt-vim.languages.python.lsp.enable"><code class="option">vim.languages.python.lsp.enable</code></a></span></dt><dd><p>Whether to enable Enable Python LSP support.</p><p><span class="emphasis"><em>Type:</em></span> boolean</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">false</code></p><p><span class="emphasis"><em>Example:</em></span> <code class="literal">true</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/notashelf/neovim-flake/blob/main/modules/languages/python.nix#blob-path" target="_top">
|
||||||
<neovim-flake/modules/languages/python.nix>
|
<neovim-flake/modules/languages/python.nix>
|
||||||
|
@ -1626,28 +1626,46 @@ Thus, it will not be wrapped in `""`.</p><p><span class="emphasis"><em>Type:</em
|
||||||
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.statusline.lualine.activeSection.x"></a><a class="link" href="options.html#opt-vim.statusline.lualine.activeSection.x"><code class="option">vim.statusline.lualine.activeSection.x</code></a></span></dt><dd><p>active config for: | A | B | C (X) | Y | Z |</p><p><span class="emphasis"><em>Type:</em></span> string</p><p><span class="emphasis"><em>Default:</em></span> </p><pre class="programlisting">''
|
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-vim.statusline.lualine.activeSection.x"></a><a class="link" href="options.html#opt-vim.statusline.lualine.activeSection.x"><code class="option">vim.statusline.lualine.activeSection.x</code></a></span></dt><dd><p>active config for: | A | B | C (X) | Y | Z |</p><p><span class="emphasis"><em>Type:</em></span> string</p><p><span class="emphasis"><em>Default:</em></span> </p><pre class="programlisting">''
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
-- Lsp server name .
|
-- Lsp server name
|
||||||
function()
|
function()
|
||||||
local msg = 'No Active Lsp'
|
local buf_ft = vim.api.nvim_get_option_value('filetype', {})
|
||||||
local buf_ft = vim.api.nvim_buf_get_option(0, '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 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
|
if next(clients) == nil then
|
||||||
return msg
|
return msg
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, client in ipairs(clients) do
|
for _, client in ipairs(clients) do
|
||||||
local filetypes = client.config.filetypes
|
local filetypes = client.config.filetypes
|
||||||
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
||||||
return client.name
|
return client.name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return msg
|
return msg
|
||||||
end,
|
end,
|
||||||
icon = ' ',
|
icon = ' ',
|
||||||
|
color = {bg='none', fg='lavender'},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"diagnostics",
|
"diagnostics",
|
||||||
sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'},
|
sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'},
|
||||||
symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '},
|
symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '},
|
||||||
|
color = {bg='none', fg='lavender'},
|
||||||
diagnostics_color = {
|
diagnostics_color = {
|
||||||
color_error = { fg = 'red' },
|
color_error = { fg = 'red' },
|
||||||
color_warn = { fg = 'yellow' },
|
color_warn = { fg = 'yellow' },
|
||||||
|
|
|
@ -225,4 +225,6 @@ Updated clangd to 16
|
||||||
Disabled <code class="literal">useSystemClipboard</code> by default
|
Disabled <code class="literal">useSystemClipboard</code> by default
|
||||||
</li></ul></div><p><a class="link" href="https://github.com/ksonj" target="_top">ksonj</a>:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
|
</li></ul></div><p><a class="link" href="https://github.com/ksonj" target="_top">ksonj</a>:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
|
||||||
Add support to change mappings to utility/surround
|
Add support to change mappings to utility/surround
|
||||||
|
</li><li class="listitem">
|
||||||
|
Add black-and-isort python formatter
|
||||||
</li></ul></div></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="options.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">Appendix A. Configuration Options </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>
|
</li></ul></div></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="options.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">Appendix A. Configuration Options </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>
|
Loading…
Reference in a new issue