Compare commits

...

3 commits

Author SHA1 Message Date
086b482cea
[zsh] fix completions and fzf-tab 2024-09-23 05:04:05 +01:00
0adb54b473
[xmonad] replace kwallet with keepassxc 2024-09-23 05:03:41 +01:00
238b7c98ad
[nvim] fix inc-rename 2024-09-23 05:03:13 +01:00
4 changed files with 13 additions and 14 deletions

View file

@ -17,7 +17,7 @@ return {
"smjonas/inc-rename.nvim", "smjonas/inc-rename.nvim",
opts = { opts = {
input_buffer_type = "dressing", input_buffer_type = "dressing",
save_in_cmdline_history = true, save_in_cmdline_history = false,
} }
}, },
{ {
@ -165,6 +165,7 @@ return {
config = function() config = function()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
-- Use an on_attach function to only map the following keys -- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer -- after the language server attaches to the current buffer
vim.api.nvim_create_autocmd("LspAttach", { vim.api.nvim_create_autocmd("LspAttach", {
@ -187,6 +188,7 @@ return {
-- Mappings. -- Mappings.
local bufopts = { noremap = true, silent = true, buffer = ev.buf } local bufopts = { noremap = true, silent = true, buffer = ev.buf }
local bufopts_expr = { expr = true }
vim.keymap.set("n", "<space>e", vim.diagnostic.open_float, bufopts) vim.keymap.set("n", "<space>e", vim.diagnostic.open_float, bufopts)
vim.keymap.set("n", "<space>q", vim.diagnostic.setloclist, bufopts) vim.keymap.set("n", "<space>q", vim.diagnostic.setloclist, bufopts)
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, bufopts) vim.keymap.set("n", "gD", vim.lsp.buf.declaration, bufopts)
@ -196,7 +198,7 @@ return {
vim.keymap.set("n", "gi", fzflua.lsp_implementations, bufopts) vim.keymap.set("n", "gi", fzflua.lsp_implementations, bufopts)
vim.keymap.set("n", "<space>k", vim.lsp.buf.signature_help, bufopts) vim.keymap.set("n", "<space>k", vim.lsp.buf.signature_help, bufopts)
vim.keymap.set("n", "<space>D", vim.lsp.buf.type_definition, bufopts) vim.keymap.set("n", "<space>D", vim.lsp.buf.type_definition, bufopts)
vim.keymap.set("n", "<space>rn", rename_func(), bufopts) vim.keymap.set("n", "<space>rn", rename_func, bufopts_expr)
vim.keymap.set("n", "<space>ca", vim.lsp.buf.code_action, bufopts) vim.keymap.set("n", "<space>ca", vim.lsp.buf.code_action, bufopts)
vim.keymap.set("n", "<space>ge", vim.diagnostic.goto_next, bufopts) vim.keymap.set("n", "<space>ge", vim.diagnostic.goto_next, bufopts)
vim.keymap.set("n", "<space>gE", vim.diagnostic.goto_prev, bufopts) vim.keymap.set("n", "<space>gE", vim.diagnostic.goto_prev, bufopts)
@ -213,15 +215,11 @@ return {
capabilities = capabilities, capabilities = capabilities,
filetypes = { 'haskell', 'lhaskell', 'cabal' }, filetypes = { 'haskell', 'lhaskell', 'cabal' },
}) })
lspconfig["sourcekit"].setup({
capabilities = capabilities,
})
end, end,
}, },
{ {
'mrcjkb/rustaceanvim', 'mrcjkb/rustaceanvim',
version = '^4', -- Recommended version = '^5', -- Recommended
lazy = false, -- This plugin is already lazy lazy = false, -- This plugin is already lazy
}, },
{ {

View file

@ -117,6 +117,7 @@ myManageHook = composeAll
, resource =? "desktop_window" --> doIgnore , resource =? "desktop_window" --> doIgnore
, className =? "QjackCtl" --> doFloat , className =? "QjackCtl" --> doFloat
, resource =? "kdesktop" --> doIgnore , resource =? "kdesktop" --> doIgnore
, title =? "Picture-in-Picture" --> doFloat
, className =? "firefox" --> doShift (myWorkspaces !! 1) , className =? "firefox" --> doShift (myWorkspaces !! 1)
, className =? "Code" --> doShift (myWorkspaces !! 3) , className =? "Code" --> doShift (myWorkspaces !! 3)
, className =? "discord" --> doShift (myWorkspaces !! 4) , className =? "discord" --> doShift (myWorkspaces !! 4)
@ -132,14 +133,14 @@ myManageHook = composeAll
myEventHook = ewmhDesktopsEventHook myEventHook = ewmhDesktopsEventHook
myStartupHook = do myStartupHook = do
spawnOnce "keepassxc"
spawnOnce "dunst &" spawnOnce "dunst &"
spawnOnce "lxpolkit" spawnOnce "lxpolkit"
spawnOnce "thunar --daemon" spawnOnce "thunar --daemon"
spawnOnce "kwalletd6"
spawnOnce "pasystray" spawnOnce "pasystray"
spawnOnce "nitrogen --restore &" spawnOnce "nitrogen --restore &"
spawnOnce "playerctld" spawnOnce "playerctld"
spawnOnce "qpwgraph" spawnOnce "qpwgraph -m"
spawnOnce "killall picom;sleep1;picom &" spawnOnce "killall picom;sleep1;picom &"
setWMName "LG3D" setWMName "LG3D"
spawnOnce "nm-applet" spawnOnce "nm-applet"

View file

@ -21,14 +21,10 @@ export READER=mupdf
#THEME #THEME
source $ZDOTDIR/themes/gruvbox_dark.zsh source $ZDOTDIR/themes/gruvbox_dark.zsh
#Completions
autoload -U compinit && compinit
fpath+=$ZDOTDIR/plugins/zsh-completions/src
#Prompt #Prompt
fpath+=$ZDOTDIR/prompts/pure fpath+=$ZDOTDIR/prompts/pure
autoload -U promptinit; promptinit autoload -U promptinit; promptinit
PURE_GIT_PULL=0 export PURE_GIT_PULL=0
prompt pure prompt pure
source $ZDOTDIR/functions.zsh source $ZDOTDIR/functions.zsh

View file

@ -1,4 +1,8 @@
#Completions
ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd history completion) ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd history completion)
zstyle ':completion:*' rehash true
fpath+=$ZDOTDIR/plugins/zsh-completions/src
autoload -U compinit && compinit
source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
source $ZDOTDIR/plugins/zsh-history-substring-search/zsh-history-substring-search.plugin.zsh source $ZDOTDIR/plugins/zsh-history-substring-search/zsh-history-substring-search.plugin.zsh