Update init.lua
This commit is contained in:
parent
c9cdba1c55
commit
aada7fe13d
1 changed files with 8 additions and 5 deletions
|
@ -3,7 +3,10 @@ local cmd = vim.api.nvim_command
|
||||||
local au = vim.api.nvim_create_autocmd
|
local au = vim.api.nvim_create_autocmd
|
||||||
local plug = vim.fn['plug#']
|
local plug = vim.fn['plug#']
|
||||||
vim.call('plug#begin', '~/.config/nvim/plugged')
|
vim.call('plug#begin', '~/.config/nvim/plugged')
|
||||||
plug('https://gitlab.com/rawleyIfowler/melange')
|
-- You can use my custom melange build, un-comment here.
|
||||||
|
-- plug('https://gitlab.com/rawleyIfowler/melange')
|
||||||
|
-- Yeah I use gruvbox now :L
|
||||||
|
plug('morhetz/gruvbox')
|
||||||
plug('ap/vim-css-color')
|
plug('ap/vim-css-color')
|
||||||
plug('ap/vim-buftabline')
|
plug('ap/vim-buftabline')
|
||||||
plug('dag/vim-fish')
|
plug('dag/vim-fish')
|
||||||
|
@ -30,7 +33,7 @@ plug('hrsh7th/cmp-nvim-lsp')
|
||||||
plug('l3mon4d3/luasnip')
|
plug('l3mon4d3/luasnip')
|
||||||
plug('leafgarland/typescript-vim', {['for'] = 'typescript'})
|
plug('leafgarland/typescript-vim', {['for'] = 'typescript'})
|
||||||
vim.call('plug#end')
|
vim.call('plug#end')
|
||||||
pcall(require, 'nvim_utils')
|
pcall(require, 'nvim_utils')
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
-- Basic editor configurations
|
-- Basic editor configurations
|
||||||
set.tabstop = 4
|
set.tabstop = 4
|
||||||
|
@ -83,8 +86,8 @@ cmp.setup({
|
||||||
local cmp_capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
local cmp_capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
-- Colors
|
-- Colors
|
||||||
vim.cmd('syntax enable')
|
vim.cmd('syntax enable')
|
||||||
vim.cmd('colorscheme melange')
|
vim.cmd('colo gruvbox')
|
||||||
vim.o.background = 'dark'
|
vim.o.background = 'light'
|
||||||
-- Clojure/Common Lisp specific configurations
|
-- Clojure/Common Lisp specific configurations
|
||||||
-- Clojure and Common Lisp style is 2 space indent
|
-- Clojure and Common Lisp style is 2 space indent
|
||||||
-- https://guide.clojure.style
|
-- https://guide.clojure.style
|
||||||
|
@ -92,7 +95,7 @@ vim.cmd([[
|
||||||
filetype on
|
filetype on
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
autocmd Filetype clojure,clj,lisp,lsp,cl,l let g:rainbow_active=1
|
autocmd Filetype clojure,clj,lisp,lsp,cl,l let g:rainbow_active=1
|
||||||
]])
|
]])
|
||||||
require('lspconfig')['clojure_lsp'].setup{ capabilities = cmp_capabilities }
|
require('lspconfig')['clojure_lsp'].setup{ capabilities = cmp_capabilities }
|
||||||
-- Go specific configurations
|
-- Go specific configurations
|
||||||
|
|
Loading…
Reference in a new issue