update
This commit is contained in:
parent
0b612782bf
commit
2598bcef39
@ -3,7 +3,7 @@
|
|||||||
PATH="$HOME/apps/go/bin:$HOME/apps/node/bin:$PATH"
|
PATH="$HOME/apps/go/bin:$HOME/apps/node/bin:$PATH"
|
||||||
|
|
||||||
if command -v npm > /dev/null; then
|
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
|
fi
|
||||||
|
|
||||||
if command -v go > /dev/null; then
|
if command -v go > /dev/null; then
|
||||||
|
@ -59,5 +59,9 @@ vim.api.nvim_create_autocmd("BufWritePost", {
|
|||||||
command = [[ ! chezmoi apply --source-path % ]],
|
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})
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ return {
|
|||||||
require('plugins.ale'),
|
require('plugins.ale'),
|
||||||
"mattn/emmet-vim",
|
"mattn/emmet-vim",
|
||||||
require('plugins.go'),
|
require('plugins.go'),
|
||||||
|
|
||||||
{
|
{
|
||||||
"pangloss/vim-javascript",
|
"pangloss/vim-javascript",
|
||||||
config = function ()
|
config = function ()
|
||||||
@ -53,7 +53,7 @@ return {
|
|||||||
"inkarkat/vim-mark",
|
"inkarkat/vim-mark",
|
||||||
|
|
||||||
"rking/ag.vim",
|
"rking/ag.vim",
|
||||||
|
|
||||||
{
|
{
|
||||||
"terryma/vim-multiple-cursors",
|
"terryma/vim-multiple-cursors",
|
||||||
config = function ()
|
config = function ()
|
||||||
@ -109,9 +109,22 @@ return {
|
|||||||
"vim-scripts/TaskList.vim",
|
"vim-scripts/TaskList.vim",
|
||||||
"google/vim-jsonnet",
|
"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
|
-- temp plugins
|
||||||
"elkowar/yuck.vim",
|
"elkowar/yuck.vim",
|
||||||
|
|
||||||
|
"evanleck/vim-svelte",
|
||||||
|
|
||||||
-- themes
|
-- themes
|
||||||
"tomasr/molokai",
|
"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>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>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', '<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', '<leader>do', '<cmd>lua vim.lsp.diagnostic.open_float()<CR>', opts)
|
||||||
-- buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<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>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
|
-- buf_set_keymap('n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
|
||||||
end
|
end
|
||||||
@ -59,6 +60,10 @@ return {
|
|||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
}
|
}
|
||||||
|
nvlsp['svelte'].setup{
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
|
}
|
||||||
|
|
||||||
end
|
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
|
setopt hist_reduce_blanks
|
||||||
|
|
||||||
# Write to the history file immediately, not when the shell exits.
|
# 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
|
# Remove comannd of 'hostory' or 'fc -l' from history list
|
||||||
setopt hist_no_store
|
setopt hist_no_store
|
||||||
@ -138,7 +138,7 @@ setopt extended_history
|
|||||||
setopt hist_ignore_space
|
setopt hist_ignore_space
|
||||||
|
|
||||||
# Append to history file
|
# Append to history file
|
||||||
setopt append_history
|
# setopt append_history
|
||||||
|
|
||||||
# Edit history file during call history before executing
|
# Edit history file during call history before executing
|
||||||
setopt hist_verify
|
setopt hist_verify
|
||||||
|
@ -3,6 +3,10 @@ export ZSH_TMUX_AUTOSTART=true
|
|||||||
export ZSH_TMUX_AUTOSTART_ONCE=true
|
export ZSH_TMUX_AUTOSTART_ONCE=true
|
||||||
export ZSH_TMUX_AUTOCONNECT=true
|
export ZSH_TMUX_AUTOCONNECT=true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
export HISTFILE="$HOME/.zsh_history"
|
||||||
|
#export HISTFILESIZE=100000
|
||||||
|
export HISTSIZE=100000
|
||||||
|
export SAVEHIST=100
|
||||||
|
|
||||||
# install zinit
|
# install zinit
|
||||||
# git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
|
# git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user