Added support for LSPs to nvim

Added shutdown menu
This commit is contained in:
vorboyvo 2024-01-29 13:43:19 -05:00
parent 3b1a010fb7
commit d674cbc2ec
3 changed files with 28 additions and 0 deletions

View file

@ -27,6 +27,17 @@ plugins = {
"folke/which-key.nvim", "folke/which-key.nvim",
{ "folke/neoconf.nvim", cmd = "Neoconf" }, { "folke/neoconf.nvim", cmd = "Neoconf" },
"folke/neodev.nvim", "folke/neodev.nvim",
{
"neovim/nvim-lspconfig",
["dependencies"] = {
{ "j-hui/fidget.nvim", ["opts"] = {} },
{ "folke/neodev.nvim", ["opts"] = {} }
},
["name"] = "nvim-lspconfig"
},
} }
require("lazy").setup(plugins) require("lazy").setup(plugins)
-- Configure nvim-lspconfig to work with servers
require'lspconfig'.ocamllsp.setup{}

1
scripts/dmenu.sh Normal file
View file

@ -0,0 +1 @@
bemenu -i --fn Red Hat Display 12 -H 24 -p \"\" -B 2 --hp 5'

16
scripts/shutdownmenu.sh Normal file
View 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
;;