feat: add xmonad prompt; use newer nvim lua ls
This commit is contained in:
parent
a49d3f31e6
commit
521ffd29c9
@ -167,7 +167,7 @@ for _, server in ipairs(servers) do
|
||||
}
|
||||
end
|
||||
|
||||
lsp.sumneko_lua.setup {
|
||||
lsp.lua_ls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
|
@ -23,6 +23,7 @@ import XMonad.Actions.TopicSpace
|
||||
import XMonad.Prompt
|
||||
import XMonad.Prompt.FuzzyMatch
|
||||
import XMonad.Prompt.Workspace
|
||||
import XMonad.Prompt.Shell
|
||||
import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook)
|
||||
import XMonad.Hooks.DynamicProperty
|
||||
import qualified XMonad.StackSet as W
|
||||
@ -97,17 +98,18 @@ myWorkSpacePrompt c job = do ws <- gets (W.workspaces . windowset)
|
||||
|
||||
topicPrompt :: XPConfig
|
||||
topicPrompt = def
|
||||
{ historySize = 20 -- No history in the prompt.
|
||||
{ historySize = 0 -- No history in the prompt.
|
||||
, fgColor = "#dcdccc"
|
||||
, fgHLight = "#3f3f3f"
|
||||
, bgHLight = "#dca3a3"
|
||||
, alwaysHighlight = True -- Current best match
|
||||
, font = "xft:Iosevka-11"
|
||||
, height = 25
|
||||
, position = Top
|
||||
, position = CenteredAt 0.45 0.3
|
||||
, promptBorderWidth = myBorderWidth -- Fit in with rest of config
|
||||
, borderColor = "#dca3a3"
|
||||
, maxComplRows = Just 5 -- Max rows to show in completion window
|
||||
, maxComplRows = Just 10 -- Max rows to show in completion window
|
||||
, maxComplColumns = Just 1
|
||||
, searchPredicate = fuzzyMatch
|
||||
, sorter = fuzzySort
|
||||
}
|
||||
@ -130,6 +132,7 @@ myAdditionalKeys =
|
||||
|
||||
-- dmenu prompts
|
||||
, ("M-<Return>", spawn "dm-recent-aliases")
|
||||
, ("M-p p", shellPrompt topicPrompt)
|
||||
, ("M-p s", spawn "dm-screenshot")
|
||||
, ("M-p k", spawn "dm-kill")
|
||||
|
||||
@ -252,7 +255,7 @@ main = do
|
||||
ppCurrent = xmobarColor "#dca3a3" "" . wrap "[ " " ]",
|
||||
ppHidden = xmobarColor "#8cd0d3" "",
|
||||
ppLayout = xmobarColor "#8c8cbc" "",
|
||||
ppTitle = xmobarColor "#ffcfaf" "" . shorten 100,
|
||||
ppTitle = xmobarColor "#ffcfaf" "" . shorten 90,
|
||||
ppSep = " | ",
|
||||
ppOutput = hPutStrLn xmproc
|
||||
}),
|
||||
|
@ -9,6 +9,8 @@
|
||||
- dunst
|
||||
- redshift
|
||||
- cmus
|
||||
- lightdm
|
||||
- lightdm-gtk-greeter
|
||||
state: present
|
||||
become: true
|
||||
tags: pc
|
||||
@ -78,3 +80,9 @@
|
||||
- { src: xmonad_qwerty.hs, dest: ~/.config/xmonad/xmonad.hs }
|
||||
- { src: xmobarrc_qwerty, dest: ~/.config/xmobar/xmobarrc }
|
||||
tags: qwerty
|
||||
|
||||
- name: Enable Lightdm
|
||||
ansible.builtin.service:
|
||||
name: lightdm
|
||||
state: started
|
||||
enabled: true
|
||||
|
Loading…
Reference in New Issue
Block a user