From 5a9193eb383500b5bc4aa919153861c91f546f82 Mon Sep 17 00:00:00 2001 From: Laily Date: Fri, 19 Jul 2024 17:04:44 +0800 Subject: [PATCH 1/2] fix: modify useless plugin --- git/.gitconfig | 2 +- nvim/lua/config/options.lua | 28 ++++++++++++++-------------- nvim/lua/plugins/mason.lua | 6 +++--- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/git/.gitconfig b/git/.gitconfig index ad7965b..da8ae9f 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -38,7 +38,7 @@ ba = branch -a bm = branch --merged bn = branch --no-merged - pl = pull + pu = "!git pull origin $(git rev-parse --abbrev-ref HEAD)" pt = push origin --tags ph = push origin HEAD merge2 = !sh -c '_CURRENT_BRANCH=$(git symbolic-ref --short HEAD) && git checkout $1 && git merge $_CURRENT_BRANCH && git checkout $_CURRENT_BRANCH' - diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 24ded1b..71bfb77 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -1,20 +1,20 @@ vim.g.autoformat = true -vim.cmd('set iskeyword+=-') -- treat dash separated words as a word text object" -vim.cmd('set shortmess+=c') -- Don't pass messages to |ins-completion-menu|. -vim.cmd('set inccommand=split') -- Make substitution work in realtime +vim.cmd("set iskeyword+=-") -- treat dash separated words as a word text object" +vim.cmd("set shortmess+=c") -- Don't pass messages to |ins-completion-menu|. +vim.cmd("set inccommand=split") -- Make substitution work in realtime vim.opt.hidden = true -- Required to keep multiple buffers open multiple buffers vim.opt.title = true -TERMINAL = vim.fn.expand('$TERMINAL') -vim.cmd('let &titleold="'..TERMINAL..'"') -vim.opt.titlestring="%<%F%=%l/%L - nvim" +TERMINAL = vim.fn.expand("$TERMINAL") +vim.cmd('let &titleold="' .. TERMINAL .. '"') +vim.opt.titlestring = "%<%F%=%l/%L - nvim" vim.wo.wrap = true -- Display long lines as just one line -vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys -vim.cmd('syntax on') -- syntax highlighting +vim.cmd("set whichwrap+=<,>,[,],h,l") -- move to next line with theses keys +vim.cmd("syntax on") -- syntax highlighting vim.opt.pumheight = 10 -- Makes popup menu smaller vim.opt.fileencoding = "utf-8" -- The encoding written to file vim.opt.cmdheight = 2 -- More space for displaying messages -vim.cmd('set colorcolumn=99999') -- fix indentline for now +vim.cmd("set colorcolumn=99999") -- fix indentline for now vim.opt.mouse = "a" -- Enable your mouse vim.opt.splitbelow = true -- Horizontal splits will automatically be below vim.opt.termguicolors = true -- set term gui colors most terminals support this @@ -34,9 +34,9 @@ vim.opt.backup = false -- This is recommended by coc vim.opt.writebackup = false -- This is recommended by coc vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time vim.opt.updatetime = 300 -- Faster completion -vim.opt.timeoutlen = 100 -- By default timeoutlen is 1000 ms +vim.opt.timeoutlen = 500 -- By default timeoutlen is 1000 ms vim.opt.clipboard = "unnamedplus" -- Copy paste between vim and everything else -vim.cmd('filetype plugin on') -- filetype detection +vim.cmd("filetype plugin on") -- filetype detection -- vim.opt.guifont = "JetBrainsMono\\ Nerd\\ Font\\ Mono:h18" -- vim.opt.guifont = "Hack\\ Nerd\\ Font\\ Mono" -- vim.opt.guifont = "SauceCodePro Nerd Font:h17" @@ -45,11 +45,11 @@ vim.opt.guifont = "FiraCode Nerd Font:h17" -- vim.opt.guifont = "JetBrains\\ Mono\\ Regular\\ Nerd\\ Font\\ Complete" vim.g.vim_markdown_folding_disabled = 1 -vim.g.vimspector_enable_mappings = 'HUMAN' -vim.g['test#go#rspec#options'] = { nearest= '--v', suite= '--v' } +vim.g.vimspector_enable_mappings = "HUMAN" +vim.g["test#go#rspec#options"] = { nearest = "--v", suite = "--v" } -- git blame -vim.cmd('highlight default link gitblame SpecialComment') +vim.cmd("highlight default link gitblame SpecialComment") vim.g.gitblame_enabled = 0 -- last position jump diff --git a/nvim/lua/plugins/mason.lua b/nvim/lua/plugins/mason.lua index 9d2e359..a8fdddc 100644 --- a/nvim/lua/plugins/mason.lua +++ b/nvim/lua/plugins/mason.lua @@ -8,10 +8,10 @@ return { "luacheck", --"bashls", "shfmt", - "tailwindcss", - "tsserver", + -- "tailwindcss", + -- "tsserver", "pylyzer", - "cssls", + -- "cssls", }) end, }, From 8991b192eac211d9aaf6d8ac23cd551169075161 Mon Sep 17 00:00:00 2001 From: Laily Date: Sat, 3 Aug 2024 15:42:13 +0800 Subject: [PATCH 2/2] temp --- git/.gitconfig | 2 +- script/sourceit.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 script/sourceit.sh diff --git a/git/.gitconfig b/git/.gitconfig index da8ae9f..a77e2fc 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -4,7 +4,7 @@ [core] autocrlf = input quotepath = false - editor = nvim + editor = vim excludesfile = ~/.dotfile/git/.gitignore [push] default = current diff --git a/script/sourceit.sh b/script/sourceit.sh new file mode 100644 index 0000000..ca0b3ec --- /dev/null +++ b/script/sourceit.sh @@ -0,0 +1,2 @@ +#/bin/fish +source $HOME/.config/fish/config.fish