update
This commit is contained in:
parent
0b612782bf
commit
2598bcef39
@ -3,7 +3,7 @@
|
||||
PATH="$HOME/apps/go/bin:$HOME/apps/node/bin:$PATH"
|
||||
|
||||
if command -v npm > /dev/null; then
|
||||
npm i -g typescript typescript-language-server dockerfile-language-server-nodejs
|
||||
npm i -g typescript typescript-language-server dockerfile-language-server-nodejs svelte-language-server
|
||||
fi
|
||||
|
||||
if command -v go > /dev/null; then
|
||||
|
@ -59,5 +59,9 @@ vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
command = [[ ! chezmoi apply --source-path % ]],
|
||||
})
|
||||
|
||||
vim.diagnostic.config({virtual_text = false, signs = false})
|
||||
vim.diagnostic.get(0, { severity = {
|
||||
vim.diagnostic.severity.ERROR,
|
||||
vim.diagnostic.severity.WARN,
|
||||
} })
|
||||
vim.diagnostic.config({virtual_text = false, signs = true})
|
||||
|
||||
|
@ -109,9 +109,22 @@ return {
|
||||
"vim-scripts/TaskList.vim",
|
||||
"google/vim-jsonnet",
|
||||
|
||||
{
|
||||
"github/copilot.vim",
|
||||
keys = {
|
||||
{'<c-j>', 'copilot#Accept("<CR>")', mode = 'i', silent = true, expr = true, noremap = true, replace_keycodes = false},
|
||||
},
|
||||
lazy = false,
|
||||
init = function ()
|
||||
vim.g.copilot_no_tab_map = true
|
||||
end
|
||||
},
|
||||
|
||||
-- temp plugins
|
||||
"elkowar/yuck.vim",
|
||||
|
||||
"evanleck/vim-svelte",
|
||||
|
||||
-- themes
|
||||
"tomasr/molokai",
|
||||
}
|
||||
|
@ -35,8 +35,9 @@ return {
|
||||
buf_set_keymap('n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
||||
buf_set_keymap('n', '<leader>gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||
buf_set_keymap('n', '<leader>ge', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
|
||||
-- buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
||||
-- buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
|
||||
buf_set_keymap('n', '<leader>do', '<cmd>lua vim.lsp.diagnostic.open_float()<CR>', opts)
|
||||
buf_set_keymap('n', '<leader>d[', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
||||
buf_set_keymap('n', '<leader>d]', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
|
||||
-- buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
||||
-- buf_set_keymap('n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
|
||||
end
|
||||
@ -59,6 +60,10 @@ return {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
}
|
||||
nvlsp['svelte'].setup{
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
end
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 10 MiB After Width: | Height: | Size: 7.9 MiB |
BIN
home/dot_config/sway/wallpaper_old.png
Normal file
BIN
home/dot_config/sway/wallpaper_old.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 MiB |
@ -123,7 +123,7 @@ setopt share_history
|
||||
setopt hist_reduce_blanks
|
||||
|
||||
# Write to the history file immediately, not when the shell exits.
|
||||
setopt inc_append_history
|
||||
# setopt inc_append_history
|
||||
|
||||
# Remove comannd of 'hostory' or 'fc -l' from history list
|
||||
setopt hist_no_store
|
||||
@ -138,7 +138,7 @@ setopt extended_history
|
||||
setopt hist_ignore_space
|
||||
|
||||
# Append to history file
|
||||
setopt append_history
|
||||
# setopt append_history
|
||||
|
||||
# Edit history file during call history before executing
|
||||
setopt hist_verify
|
||||
|
@ -3,6 +3,10 @@ export ZSH_TMUX_AUTOSTART=true
|
||||
export ZSH_TMUX_AUTOSTART_ONCE=true
|
||||
export ZSH_TMUX_AUTOCONNECT=true
|
||||
{{ end }}
|
||||
export HISTFILE="$HOME/.zsh_history"
|
||||
#export HISTFILESIZE=100000
|
||||
export HISTSIZE=100000
|
||||
export SAVEHIST=100
|
||||
|
||||
# install zinit
|
||||
# git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
|
||||
|
Loading…
Reference in New Issue
Block a user