mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim: create an autocommand to start fidget
This commit is contained in:
parent
2b4dca0131
commit
4856a46051
2 changed files with 6 additions and 2 deletions
|
|
@ -27,3 +27,9 @@ vim.api.nvim_create_autocmd("OptionSet", {
|
||||||
pattern = "textwidth",
|
pattern = "textwidth",
|
||||||
callback = function() vim.wo.colorcolumn = tostring(vim.bo.textwidth) end,
|
callback = function() vim.wo.colorcolumn = tostring(vim.bo.textwidth) end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("LspProgress", {
|
||||||
|
once = true,
|
||||||
|
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
|
||||||
|
callback = function() require("fidget").setup {} end,
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -121,8 +121,6 @@ capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
|
||||||
----------
|
----------
|
||||||
-- Init --
|
-- Init --
|
||||||
----------
|
----------
|
||||||
require("fidget").setup()
|
|
||||||
|
|
||||||
local mylsp = require("lsp")
|
local mylsp = require("lsp")
|
||||||
|
|
||||||
for name, config in pairs(servers) do
|
for name, config in pairs(servers) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue