mirror of
https://github.com/cole-maxwell1/dotfiles.git
synced 2026-01-25 22:41:48 -05:00
Add starter nvim config
This commit is contained in:
4
.config/nvim/lua/cole/init.lua
Normal file
4
.config/nvim/lua/cole/init.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
require("cole.remap")
|
||||
require("cole.set")
|
||||
require("cole.packer")
|
||||
|
||||
34
.config/nvim/lua/cole/packer.lua
Normal file
34
.config/nvim/lua/cole/packer.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
|
||||
-- Only required if you have packer configured as `opt`
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
|
||||
return require('packer').startup(function(use)
|
||||
-- Packer can manage itself
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
-- Fuzzy finder
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.5',
|
||||
-- or, branch = '0.1.x',
|
||||
requires = {{'nvim-lua/plenary.nvim'}}
|
||||
}
|
||||
|
||||
-- syntax highlighting
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = ':TSUpdate'
|
||||
}
|
||||
|
||||
-- LSP support
|
||||
use {
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = 'v3.x',
|
||||
requires = {{'williamboman/mason.nvim'}, {'williamboman/mason-lspconfig.nvim'}, {'neovim/nvim-lspconfig'},
|
||||
{'hrsh7th/nvim-cmp'}, {'hrsh7th/cmp-nvim-lsp'}, {'L3MON4D3/LuaSnip'}}
|
||||
}
|
||||
|
||||
use {"williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim"}
|
||||
|
||||
end)
|
||||
|
||||
1
.config/nvim/lua/cole/remap.lua
Normal file
1
.config/nvim/lua/cole/remap.lua
Normal file
@@ -0,0 +1 @@
|
||||
vim.g.mapleader = " "
|
||||
21
.config/nvim/lua/cole/set.lua
Normal file
21
.config/nvim/lua/cole/set.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--Line numbers
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
--Formatting
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
|
||||
--Search
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true
|
||||
|
||||
--Scroll settings
|
||||
vim.opt.scrolloff = 8 --Always 8 lines above
|
||||
|
||||
--Color scheme
|
||||
vim.cmd.colorscheme("habamax")
|
||||
|
||||
Reference in New Issue
Block a user