···4040 }
41414242 local function attached_lsp()
4343- local clients = vim.lsp.get_active_clients()
4343+ local clients = vim.lsp.get_clients()
4444 if #clients > 0 then
4545 return clients[1].name
4646 end
···5151 attached_lsp,
5252 icon = "",
5353 cond = function()
5454- return #vim.lsp.get_active_clients() > 0 and hide_in_width(100)()
5454+ return #vim.lsp.get_clients() > 0 and hide_in_width(100)()
5555 end,
5656 }
5757 local prose = require 'nvim-prose'
···120120 -- }
121121122122 -- local copilot = function()
123123- -- local buf_clients = vim.lsp.get_active_clients { bufnr = 0 }
123123+ -- local buf_clients = vim.lsp.get_clients { bufnr = 0 }
124124 -- if #buf_clients == 0 then
125125 -- return "LSP Inactive"
126126 -- end
+1
nvim/.config/nvim/lua/sspaeti/remap.lua
···343343344344-- word count
345345vim.keymap.set('n', '<leader>cw', 'g<c-g><CR>', {desc="count words"})
346346+vim.keymap.set('v', '<leader>cw', 'g<c-g><CR>', {desc="count words"})
346347347348-- jumplist mutations
348349-- These mappings are not directly convertible to Lua since they involve an expression.