This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
dotfiles
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
feat: add clear buffers command
master
Tovi Jaeschke-Rogers
3 months ago
parent
a92c0c1f01
commit
8b7b582614
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
.config/nvim/lua/core/commands.lua
+ 4
- 0
.config/nvim/lua/core/commands.lua
View File
@ -19,3 +19,7 @@ vim.api.nvim_create_user_command("ToggleDiagnostics", function()
vim.g
.
diagnostics_enable
=
true
vim.diagnostic
.
enable
(
true
)
end
,
{
}
)
vim.api
.
nvim_create_user_command
(
"
ClearBuffers
"
,
function
(
)
vim.cmd
(
'
%bd|e#|bd#
'
)
end
,
{
}
)
Write
Preview
Loading…
Cancel
Save