Skip to content

Commit 3f48773

Browse files
author
Vinit Kumar
committed
feat: go fast or go home
1 parent b22fb13 commit 3f48773

File tree

5 files changed

+58
-75
lines changed

5 files changed

+58
-75
lines changed

lua/vinit/config.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ opt.splitright = true
2828
opt.splitbelow = true
2929
opt.inccommand = "split"
3030
opt.lazyredraw = false
31+
opt.swapfile = false
3132
opt.completeopt="menu,menuone,noselect"
3233

3334
opt.cursorline = true
@@ -64,16 +65,16 @@ opt.number = true
6465
opt.pumblend = 10
6566

6667
opt.wildoptions = "pum"
67-
opt.termguicolors = true
68+
-- opt.termguicolors = true
6869
opt.pumblend = 5
6970
opt.scrolloff = 3
70-
opt.background = "dark"
71+
opt.background = "light"
7172

7273

7374
vim.cmd('filetype indent plugin on')
7475
vim.cmd('highlight WinSeparator guibg=None')
7576
vim.cmd('syntax on')
76-
vim.cmd('colorscheme NeoSolarized')
77+
vim.cmd('colorscheme sitruuna')
7778
vim.g.mapleader = ","
7879
if vim.fn.filereadable('/usr/local/bin/python3') == 1 then
7980
-- Avoid search, speeding up start-up.

lua/vinit/maps.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ vim.api.nvim_set_keymap('n', '<BS>', 'gg', {noremap = true, silent=true})
2626
vim.api.nvim_set_keymap('n', '<Leader>dt', '"=strftime("%c")<CR>P', {noremap = true, silent=true})
2727
vim.api.nvim_set_keymap('n', '<Leader>dt', '<C-R>=strftime("%c")<CR>', {noremap = true, silent=true})
2828

29-
vim.api.nvim_set_keymap('n', '<Leader>t', ':FloatermNew<CR>', {noremap = true, silent=true})
30-
vim.api.nvim_set_keymap('n', '<Leader>xt', ':FloatermToggle<CR>', {noremap = true, silent=true})
29+
-- vim.api.nvim_set_keymap('n', '<Leader>t', ':tabnew<CR>', {noremap = true, silent=true})
30+
-- vim.api.nvim_set_keymap('n', '<Leader>xt', ':FloatermToggle<CR>', {noremap = true, silent=true})
3131

3232
-- Hover Doc settings
3333
vim.api.nvim_set_keymap('n', 'K', ':Lspsaga hover_doc<CR>', {noremap = true, silent=true})

lua/vinit/pluginconfig.lua

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,49 @@ require'nvim-treesitter.configs'.setup {
9191
disable = {}
9292
},
9393
ensure_installed = {
94+
"bash",
95+
"bibtex",
96+
"c",
97+
"c_sharp",
98+
"clojure",
99+
"cmake",
100+
"comment",
101+
"commonlisp",
102+
"cpp",
103+
"css",
104+
"dockerfile",
105+
"dot",
106+
"elm",
107+
"go",
108+
"gomod",
109+
"gowork",
110+
"graphql",
111+
"hcl",
112+
"html",
113+
"http",
114+
"javascript",
115+
"jsdoc",
116+
"jsonc",
117+
"latex",
118+
"llvm",
119+
"lua",
120+
"make",
121+
"markdown",
122+
"markdown_inline",
123+
"ninja",
94124
"python",
95-
"tsx",
125+
"regex",
126+
"rst",
127+
"ruby",
128+
"rust",
129+
"scala",
130+
"scheme",
131+
"scss",
96132
"toml",
97-
"html",
98-
"css",
133+
"tsx",
134+
"typescript",
135+
"vim",
99136
"yaml",
100-
"json",
101-
"scss"
102137
},
103138
autotag = {
104139
enable = true,
@@ -109,36 +144,6 @@ require'nvim-treesitter.configs'.setup {
109144
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
110145
parser_config.tsx.filetype_to_parsername = { "javascript", "typescript.tsx" }
111146

112-
require'lualine'.setup {
113-
options = {
114-
icons_enabled = true,
115-
theme = 'solarized_dark',
116-
component_separators = { left = '', right = ''},
117-
section_separators = { left = '', right = ''},
118-
disabled_filetypes = {},
119-
always_divide_middle = true,
120-
},
121-
sections = {
122-
lualine_a = {'mode'},
123-
lualine_b = {'branch', 'diff',
124-
{'diagnostics', sources={'nvim_diagnostic'}}},
125-
lualine_c = {'filename'},
126-
lualine_x = {'encoding', 'fileformat', 'filetype'},
127-
lualine_y = {'progress'},
128-
lualine_z = {'location'}
129-
},
130-
inactive_sections = {
131-
lualine_a = {},
132-
lualine_b = {},
133-
lualine_c = {'filename'},
134-
lualine_x = {'location'},
135-
lualine_y = {},
136-
lualine_z = {}
137-
},
138-
tabline = {},
139-
extensions = {'fugitive'}
140-
}
141-
142147

143148
local status, lsp_installer = pcall(require, "nvim-lsp-installer")
144149
if (not status) then return end

lua/vinit/plugins.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ vim.cmd [[packadd packer.nvim]]
33
return require('packer').startup(function()
44
-- Packer can manage itself
55
use 'wbthomason/packer.nvim'
6+
use 'vimwiki/vimwiki'
67
use 'tpope/vim-commentary'
78
use 'tpope/vim-fugitive'
89
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
@@ -21,8 +22,4 @@ return require('packer').startup(function()
2122
-- or , branch = '0.1.x',
2223
requires = { {'nvim-lua/plenary.nvim'} }
2324
}
24-
use {
25-
'nvim-lualine/lualine.nvim',
26-
requires = {'kyazdani42/nvim-web-devicons', opt = true}
27-
}
2825
end)

plugin/packer_compiled.lua

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ _G.packer_plugins = {
7979
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
8080
url = "https://github.com/hrsh7th/cmp-cmdline"
8181
},
82+
["cmp-git"] = {
83+
loaded = true,
84+
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/cmp-git",
85+
url = "https://github.com/petertriho/cmp-git"
86+
},
8287
["cmp-nvim-lsp"] = {
8388
loaded = true,
8489
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
@@ -89,46 +94,26 @@ _G.packer_plugins = {
8994
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/cmp-path",
9095
url = "https://github.com/hrsh7th/cmp-path"
9196
},
92-
["cmp-vsnip"] = {
93-
loaded = true,
94-
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/cmp-vsnip",
95-
url = "https://github.com/hrsh7th/cmp-vsnip"
96-
},
97-
["lsp-colors.nvim"] = {
97+
["lspsaga.nvim"] = {
9898
loaded = true,
99-
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim",
100-
url = "https://github.com/folke/lsp-colors.nvim"
99+
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
100+
url = "https://github.com/glepnir/lspsaga.nvim"
101101
},
102102
["lualine.nvim"] = {
103103
loaded = true,
104104
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/lualine.nvim",
105105
url = "https://github.com/nvim-lualine/lualine.nvim"
106106
},
107-
["nvim-autopairs"] = {
108-
loaded = true,
109-
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
110-
url = "https://github.com/windwp/nvim-autopairs"
111-
},
112107
["nvim-cmp"] = {
113108
loaded = true,
114109
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/nvim-cmp",
115110
url = "https://github.com/hrsh7th/nvim-cmp"
116111
},
117-
["nvim-lsp-installer"] = {
118-
loaded = true,
119-
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer",
120-
url = "https://github.com/williamboman/nvim-lsp-installer"
121-
},
122112
["nvim-lspconfig"] = {
123113
loaded = true,
124114
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
125115
url = "https://github.com/neovim/nvim-lspconfig"
126116
},
127-
["nvim-tree.lua"] = {
128-
loaded = true,
129-
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
130-
url = "https://github.com/kyazdani42/nvim-tree.lua"
131-
},
132117
["nvim-treesitter"] = {
133118
loaded = true,
134119
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
@@ -174,15 +159,10 @@ _G.packer_plugins = {
174159
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/vim-fugitive",
175160
url = "https://github.com/tpope/vim-fugitive"
176161
},
177-
["vim-interestingwords"] = {
178-
loaded = true,
179-
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/vim-interestingwords",
180-
url = "https://github.com/mrnugget/vim-interestingwords"
181-
},
182-
["vim-vsnip"] = {
162+
vimwiki = {
183163
loaded = true,
184-
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/vim-vsnip",
185-
url = "https://github.com/hrsh7th/vim-vsnip"
164+
path = "/Users/vinitkumar/.local/share/nvim/site/pack/packer/start/vimwiki",
165+
url = "https://github.com/vimwiki/vimwiki"
186166
}
187167
}
188168

0 commit comments

Comments
 (0)