Compare commits
3 Commits
nvim
..
8e59d295e5
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e59d295e5 | |||
| 18c35c87ef | |||
| 7fd13c6e7a |
@@ -1 +0,0 @@
|
|||||||
nvim-pack-lock.json
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[submodule "pack/plugins/start/nvim-treesitter"]
|
||||||
|
path = pack/plugins/start/nvim-treesitter
|
||||||
|
url = https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
|
[submodule "pack/plugins/start/mini.nvim"]
|
||||||
|
path = pack/plugins/start/mini.nvim
|
||||||
|
url = https://github.com/echasnovski/mini.nvim.git
|
||||||
|
branch = stable
|
||||||
@@ -2,33 +2,29 @@
|
|||||||
vim.api.nvim_exec2('language POSIX', {})
|
vim.api.nvim_exec2('language POSIX', {})
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- Plugins {{{
|
-- Source plugins if they exist {{{
|
||||||
if os.execute('which git') == 0 then
|
pcall(require, 'mini-pick')
|
||||||
vim.pack.add({'https://github.com/nvim-mini/mini.pick'})
|
pcall(require, 'treesitter')
|
||||||
pcall(function() require('mini.pick').setup() end)
|
|
||||||
end
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- General Editor Settings {{{
|
-- General Editor Settings {{{
|
||||||
vim.opt.termguicolors = true
|
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.opt.cursorline = true
|
vim.opt.cursorline = true
|
||||||
|
vim.opt.tabstop = 4
|
||||||
|
vim.opt.shiftwidth = 4
|
||||||
|
vim.opt.expandtab = false
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
vim.opt.listchars:append 'space:·'
|
vim.opt.listchars:append 'space:·'
|
||||||
vim.opt.wildmenu = true
|
vim.opt.wildmenu = true
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
|
vim.opt.clipboard = 'unnamedplus'
|
||||||
vim.opt.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
vim.opt.smartcase = true
|
vim.opt.smartcase = true
|
||||||
|
vim.opt.updatetime = 250
|
||||||
|
vim.opt.timeoutlen = 300
|
||||||
vim.opt.inccommand = 'split'
|
vim.opt.inccommand = 'split'
|
||||||
vim.opt.foldmethod = 'marker'
|
vim.opt.foldmethod = 'marker'
|
||||||
vim.opt.tabstop = 4
|
|
||||||
vim.opt.shiftwidth = 4
|
|
||||||
vim.opt.expandtab = false
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- Setup Clipboard for OSC 52 {{{
|
|
||||||
vim.g.clipboard = 'osc52'
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- Setup (Disable) Netrw {{{
|
-- Setup (Disable) Netrw {{{
|
||||||
@@ -102,12 +98,4 @@ vim.keymap.set('n', '<leader>b', ':Pick buffers<CR>', { noremap = true })
|
|||||||
vim.keymap.set('n', '<leader>t', ToggleTerminal)
|
vim.keymap.set('n', '<leader>t', ToggleTerminal)
|
||||||
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>')
|
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>')
|
||||||
vim.keymap.set('n', 'x', '"_x')
|
vim.keymap.set('n', 'x', '"_x')
|
||||||
vim.keymap.set('n', '<leader>y', '"+y')
|
|
||||||
vim.keymap.set('n', '<leader>Y', '"+y$')
|
|
||||||
vim.keymap.set('n', '<leader>p', '"+p')
|
|
||||||
vim.keymap.set('n', '<leader>P', '"+P')
|
|
||||||
vim.keymap.set('v', '<leader>y', '"+y')
|
|
||||||
vim.keymap.set('v', '<leader>Y', '"+y$')
|
|
||||||
vim.keymap.set('v', '<leader>p', '"+p')
|
|
||||||
vim.keymap.set('v', '<leader>P', '"+P')
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
require('mini.pick').setup()
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
require('nvim-treesitter.install').prefer_git = true
|
||||||
|
require('nvim-treesitter.configs').setup {
|
||||||
|
auto_install = true,
|
||||||
|
highlight = { enable = true },
|
||||||
|
indent = { enable = true }
|
||||||
|
}
|
||||||
Submodule
+1
Submodule pack/plugins/start/mini.nvim added at 94cae4660a
Submodule
+1
Submodule pack/plugins/start/nvim-treesitter added at 42fc28ba91
@@ -0,0 +1 @@
|
|||||||
|
git submodule update --init --remote --recursive
|
||||||
Reference in New Issue
Block a user