This commit is contained in:
jay 2023-12-31 22:45:19 +08:00
parent 0b612782bf
commit 2598bcef39
8 changed files with 34 additions and 8 deletions

View File

@ -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

View File

@ -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})

View File

@ -24,7 +24,7 @@ return {
require('plugins.ale'),
"mattn/emmet-vim",
require('plugins.go'),
{
"pangloss/vim-javascript",
config = function ()
@ -53,7 +53,7 @@ return {
"inkarkat/vim-mark",
"rking/ag.vim",
{
"terryma/vim-multiple-cursors",
config = function ()
@ -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",
}

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 MiB

View File

@ -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

View File

@ -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