diff --git a/lazy-lock.json b/lazy-lock.json index 03f911b..7369c54 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -7,7 +7,6 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "9ae570e206360e47d30b4c35a4550c165f4ea7b7" }, "mason.nvim": { "branch": "main", "commit": "49ff59aded1047a773670651cfa40e76e63c6377" }, "nvim-cmp": { "branch": "main", "commit": "24122371810089d390847d8ba66325c1f1aa64c0" }, - "nvim-goc.lua": { "branch": "master", "commit": "6337ef573cb493fc4088faef73ff4844d7be213f" }, "nvim-lspconfig": { "branch": "master", "commit": "a27179f56c6f98a4cdcc79ee2971b514815a4940" }, "nvim-treesitter": { "branch": "master", "commit": "aa0c7dd29631ee8c2df738d99bd33b762b3a6e22" }, "nvim-treesitter-context": { "branch": "master", "commit": "7068ad6d16c682db0f6bf25f64ccfee34ec5d452" }, diff --git a/lua/troy0820/lazy/coverage.lua b/lua/troy0820/lazy/coverage.lua deleted file mode 100644 index 41f76f7..0000000 --- a/lua/troy0820/lazy/coverage.lua +++ /dev/null @@ -1,41 +0,0 @@ -return { -"rafaelsq/nvim-goc.lua", -config = function() -vim.opt.switchbuf = 'useopen' - -local goc = require('nvim-goc') -goc.setup({ verticalSplit = false }) -- default to horizontal - - - -vim.keymap.set('n', 'gc', goc.Coverage, {silent=true}) -- run for the whole File -vim.keymap.set('n', 'gct', goc.CoverageFunc, {silent=true}) -- run only for a specific Test unit -vim.keymap.set('n', 'gcc', goc.ClearCoverage, {silent=true}) -- clear coverage highlights - --- If you need custom arguments, you can supply an array as in the example below. - --- vim.keymap.set('n', 'gcf', function() goc.Coverage({ "-race", "-count=1" }) end, {silent=true}) --- vim.keymap.set('n', 'gct', function() goc.CoverageFunc({ "-race", "-count=1" }) end, {silent=true}) - -vim.keymap.set('n', ']a', goc.Alternate, {silent=true}) -vim.keymap.set('n', '[a', goc.AlternateSplit, {silent=true}) -- set verticalSplit=true for vertical - -cf = function(testCurrentFunction) - local cb = function(path) - if path then - - -- `xdg-open|open` command performs the same function as double-clicking on the file. - -- change from `xdg-open` to `open` on MacOSx - vim.cmd(":silent exec \"!xdg-open " .. path .. "\"") - end - end - - if testCurrentFunction then - goc.CoverageFunc(nil, cb, 0) - else - goc.Coverage(nil, cb) - end -end -end - -} diff --git a/lua/troy0820/packer.lua b/lua/troy0820/packer.lua deleted file mode 100644 index 60419de..0000000 --- a/lua/troy0820/packer.lua +++ /dev/null @@ -1,38 +0,0 @@ ---vim.cmd [[packadd packer.nvim]] --- ---return require('packer').startup(function(use) --- -- Packer can manage itself --- use 'wbthomason/packer.nvim' --- --- use('arcticicestudio/nord-vim', { branch = 'develop' }) --- use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}) --- use('fatih/vim-go') --- use('tpope/vim-fugitive') --- use('tpope/vim-surround') --- use { --- 'VonHeikemen/lsp-zero.nvim', --- branch = 'v3.x', --- requires = { --- --- Uncomment the two plugins below if you want to manage the language servers from neovim --- {'williamboman/mason.nvim'}, --- {'williamboman/mason-lspconfig.nvim'}, --- --- --- {'neovim/nvim-lspconfig'}, --- {'hrsh7th/nvim-cmp'}, --- {'hrsh7th/cmp-nvim-lsp'}, --- {'hrsh7th/cmp-nvim-lsp-signature-help'}, --- {'L3MON4D3/LuaSnip'}, --- } --- } --- use('vim-airline/vim-airline') --- use('vim-airline/vim-airline-themes') --- use('HiPhish/rainbow-delimiters.nvim') --- use('nvim-treesitter/nvim-treesitter-context') ---use { --- 'nvim-telescope/telescope.nvim', tag = '0.1.6', ----- or , branch = '0.1.x', --- requires = { {'nvim-lua/plenary.nvim'} } ---} ---use {'ntpeters/vim-better-whitespace'} --- end) diff --git a/lua/troy0820/remap.lua b/lua/troy0820/remap.lua index 671310a..4461c97 100644 --- a/lua/troy0820/remap.lua +++ b/lua/troy0820/remap.lua @@ -12,14 +12,6 @@ vim.opt.smartindent = true vim.opt.updatetime = 50 vim.opt.colorcolumn = "180" vim.g.rainbow_active = 1 ---vim.g.go_gopls_enabled = 1 ---vim.g.go_def_mode = 'gopls' ---vim.g.go_info_mode = 'gopls' ---vim.g.go_def_mapping_enabled = 0 ---vim.g.go_addtags_transform = "camelcase" ---vim.g.go_fmt_autosave = 1 ---vim.g.go_auto_type_info = 1 ---vim.g.go_fmt_command = "goimports" vim.g.airline_theme='nord_minimal' vim.g.leader = " " vim.g.mapleader = " " @@ -43,6 +35,6 @@ vim.keymap.set("n","y", "\"+Y") vim.keymap.set("n","n", ":cnext") vim.keymap.set("n","m", ":cprev") --- Commenting out to see if I like this +-- Commenting out to see if I like this -- vim.cmd[[hi TreesitterContextBottom cterm=reverse ctermbg=0 guibg=#3b4252 gui=underline]] -- vim.cmd[[hi link TreesitterContext Normal]]