initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
vim.opt_local.expandtab = false
|
||||
vim.opt_local.autoindent = true
|
||||
vim.opt_local.smarttab = true
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
@@ -0,0 +1,5 @@
|
||||
vim.opt_local.expandtab = false
|
||||
vim.opt_local.autoindent = true
|
||||
vim.opt_local.smarttab = true
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
@@ -0,0 +1,18 @@
|
||||
-- txt specific settings
|
||||
vim.opt.wrap = true -- Wrap text
|
||||
vim.opt.breakindent = true -- Match indent on line break
|
||||
vim.opt.linebreak = true -- Line break on whole words
|
||||
|
||||
-- Spell check
|
||||
vim.opt.spelllang = 'en_us'
|
||||
vim.opt.spell = true
|
||||
|
||||
-- alter up and down arrows for better text navigation
|
||||
vim.keymap.set("n", "<Down>", "gj")
|
||||
vim.keymap.set("n", "<Up>", "gk")
|
||||
|
||||
-- also in insert mode
|
||||
-- vim.keymap.set("i", "<Down>", "<C-o>gj")
|
||||
-- vim.keymap.set("i", "<Up>", "<C-o>gk")
|
||||
|
||||
vim.cmd(':Copilot disable')
|
||||
@@ -0,0 +1,8 @@
|
||||
vim.opt_local.expandtab = true
|
||||
vim.opt_local.autoindent = true
|
||||
vim.opt_local.smarttab = true
|
||||
vim.opt_local.tabstop = 4
|
||||
vim.opt_local.textwidth = 80
|
||||
|
||||
-- Set the indent after opening parenthesis
|
||||
vim.g.pyindent_open_paren = vim.bo.shiftwidth
|
||||
@@ -0,0 +1,14 @@
|
||||
-- txt specific settings
|
||||
vim.opt.wrap = true -- Wrap text
|
||||
vim.opt.breakindent = true -- Match indent on line break
|
||||
vim.opt.linebreak = true -- Line break on whole words
|
||||
|
||||
-- Spell check
|
||||
vim.opt.spelllang = 'en_us'
|
||||
vim.opt.spell = true
|
||||
|
||||
-- alter up and down arrows for better text navigation
|
||||
vim.keymap.set("n", "<Down>", "gj")
|
||||
vim.keymap.set("n", "<Up>", "gk")
|
||||
|
||||
vim.cmd(':Copilot disable')
|
||||
@@ -0,0 +1,5 @@
|
||||
vim.opt_local.expandtab = false
|
||||
vim.opt_local.autoindent = true
|
||||
vim.opt_local.smarttab = true
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
@@ -0,0 +1,5 @@
|
||||
vim.opt_local.expandtab = false
|
||||
vim.opt_local.autoindent = true
|
||||
vim.opt_local.smarttab = true
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
@@ -0,0 +1,28 @@
|
||||
-- load plugins
|
||||
local Plug = vim.fn['plug#']
|
||||
vim.call('plug#begin')
|
||||
Plug 'github/copilot.vim'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug('ms-jpq/chadtree', {branch = 'chad', ['do'] = 'python3 -m chadtree deps'})
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
vim.call('plug#end')
|
||||
|
||||
-- set line numbers
|
||||
vim.opt.number = true
|
||||
|
||||
-- start chadtree
|
||||
require('chadtree')
|
||||
vim.cmd.CHADopen('--nofocus')
|
||||
|
||||
-- set airline theme
|
||||
vim.g.airline_theme = 'base16_classic_dark'
|
||||
|
||||
-- make comments italic and grey
|
||||
vim.api.nvim_set_hl(0, 'Comment', { italic=true, fg='#7c7c7c' })
|
||||
|
||||
-- make :hoff into a command
|
||||
vim.cmd('cnoreabbrev hoff nohlsearch')
|
||||
|
||||
-- set nerd font
|
||||
vim.g.have_nerd_font = true
|
||||
Reference in New Issue
Block a user