Added support for LSPs to nvim
Added shutdown menu
This commit is contained in:
parent
3b1a010fb7
commit
d674cbc2ec
|
|
@ -27,6 +27,17 @@ plugins = {
|
|||
"folke/which-key.nvim",
|
||||
{ "folke/neoconf.nvim", cmd = "Neoconf" },
|
||||
"folke/neodev.nvim",
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
["dependencies"] = {
|
||||
{ "j-hui/fidget.nvim", ["opts"] = {} },
|
||||
{ "folke/neodev.nvim", ["opts"] = {} }
|
||||
},
|
||||
["name"] = "nvim-lspconfig"
|
||||
},
|
||||
}
|
||||
|
||||
require("lazy").setup(plugins)
|
||||
|
||||
-- Configure nvim-lspconfig to work with servers
|
||||
require'lspconfig'.ocamllsp.setup{}
|
||||
|
|
|
|||
1
scripts/dmenu.sh
Normal file
1
scripts/dmenu.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
bemenu -i --fn Red Hat Display 12 -H 24 -p \"\" -B 2 --hp 5'
|
||||
16
scripts/shutdownmenu.sh
Normal file
16
scripts/shutdownmenu.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
case `printf "Cancel\nSuspend\nPower Off\nReboot\nLog Out" | sh dmenu.sh` in
|
||||
"Cancel")
|
||||
:
|
||||
;;
|
||||
"Suspend")
|
||||
systemctl suspend
|
||||
;;
|
||||
"Power Off")
|
||||
systemctl poweroff
|
||||
;;
|
||||
"Reboot")
|
||||
systemctl reboot
|
||||
;;
|
||||
"Log Out")
|
||||
loginctl kill-session
|
||||
;;
|
||||
Loading…
Reference in a new issue