start vim from scratch
This commit is contained in:
commit
f737861e81
9 changed files with 100 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
plugin/packer_compiled.lua
|
24
LICENSE
Normal file
24
LICENSE
Normal file
|
@ -0,0 +1,24 @@
|
|||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <https://unlicense.org>
|
1
after/plugin/colors.lua
Normal file
1
after/plugin/colors.lua
Normal file
|
@ -0,0 +1 @@
|
|||
vim.cmd[[colorscheme dracula]]
|
4
after/plugin/telescope.lua
Normal file
4
after/plugin/telescope.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>fp', builtin.git_files, {})
|
||||
vim.keymap.set('n', '<leader>gf', builtin.live_grep, {})
|
33
after/plugin/treesitter.lua
Normal file
33
after/plugin/treesitter.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"diff",
|
||||
"dockerfile",
|
||||
"git_config",
|
||||
"git_rebase",
|
||||
"gitattributes",
|
||||
"gitcommit",
|
||||
"gitignore",
|
||||
"go",
|
||||
"gomod",
|
||||
"gosum",
|
||||
"json",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"nix",
|
||||
"lua",
|
||||
"toml",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
-- "yaml" Not compiling for some reason?
|
||||
},
|
||||
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
4
init.lua
Normal file
4
init.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
require('plugins')
|
||||
require('remap')
|
||||
require('options')
|
||||
|
20
lua/options.lua
Normal file
20
lua/options.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
vim.opt.autowrite = true
|
||||
vim.opt.background = "dark"
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.laststatus = 2
|
||||
vim.opt.list = true
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.scrolloff = 10
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.showmode = false
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.splitright = true
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.updatetime = 100
|
||||
vim.opt.wrap = false
|
10
lua/plugins.lua
Normal file
10
lua/plugins.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
return require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use 'Mofiqul/dracula.nvim'
|
||||
|
||||
use { 'nvim-telescope/telescope.nvim', tag = '0.1.5', requires = { {'nvim-lua/plenary.nvim'} } }
|
||||
|
||||
use { 'nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' } }
|
||||
|
||||
end)
|
3
lua/remap.lua
Normal file
3
lua/remap.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
vim.keymap.set("n", "<C-a>", vim.cmd.bprevious)
|
||||
vim.keymap.set("n", "<C-d>", vim.cmd.bNext)
|
||||
vim.keymap.set("n", "<C-h>", vim.cmd.nohlsearch)
|
Loading…
Reference in a new issue