Latest version

This commit is contained in:
Wil Simpson 2023-03-31 10:29:59 -04:00
parent 0541abf80c
commit 8693bde880
4 changed files with 49 additions and 7 deletions

View File

@ -41,6 +41,8 @@ P.S. You can delete this when you're done too. It's your config now :)
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' '
vim.o.termguicolors = true
-- Install package manager -- Install package manager
-- https://github.com/folke/lazy.nvim -- https://github.com/folke/lazy.nvim
-- `:help lazy.nvim.txt` for more info -- `:help lazy.nvim.txt` for more info
@ -114,13 +116,28 @@ require('lazy').setup({
}, },
}, },
-- {
-- -- Theme inspired by Atom
-- 'navarasu/onedark.nvim',
-- priority = 1000,
-- config = function()
-- require('onedark').setup {
-- style = 'dark',
-- code_style = {
-- comments = 'none',
-- },
-- }
-- require('onedark').load()
-- vim.cmd.colorscheme 'onedark'
-- end,
-- },
{ {
-- Theme inspired by Atom 'morhetz/gruvbox',
'navarasu/onedark.nvim',
priority = 1000,
config = function() config = function()
vim.cmd.colorscheme 'onedark' vim.cmd.colorscheme 'gruvbox'
end, vim.o.background = 'dark'
vim.o.termguicolors = true
end
}, },
{ {
@ -130,7 +147,7 @@ require('lazy').setup({
opts = { opts = {
options = { options = {
icons_enabled = false, icons_enabled = false,
theme = 'onedark', theme = 'gruvbox',
component_separators = '|', component_separators = '|',
section_separators = '', section_separators = '',
}, },
@ -306,7 +323,8 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
-- See `:help nvim-treesitter` -- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter -- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim', 'ruby' }, ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim', 'ruby', 'http',
'css' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = true, auto_install = true,
@ -419,6 +437,9 @@ local on_attach = function(_, bufnr)
end, { desc = 'Format current buffer with LSP' }) end, { desc = 'Format current buffer with LSP' })
nmap('<leader><C-f>', function() vim.lsp.buf.format { async = true } end, 'Auto [F]ormat') nmap('<leader><C-f>', function() vim.lsp.buf.format { async = true } end, 'Auto [F]ormat')
nmap('[e', vim.diagnostic.goto_next, 'Next [e]rror')
nmap(']e', vim.diagnostic.goto_prev, 'Prev [e]rror')
end end
-- Enable the following language servers -- Enable the following language servers
@ -452,6 +473,7 @@ local servers = {
telemetry = { enable = false }, telemetry = { enable = false },
}, },
}, },
tailwindcss = {},
} }
-- Setup neovim lua configuration -- Setup neovim lua configuration

View File

@ -0,0 +1,6 @@
return {
'norcalli/nvim-colorizer.lua',
config = function()
require('colorizer').setup()
end,
}

View File

@ -0,0 +1,10 @@
return {
'mbledkowski/neuleetcode.vim',
config = function()
vim.g.leetcode_browser = 'chrome'
vim.keymap.set('n', '<leader>ll', ':LeetCodeList<CR>', { desc = '[L]eetCode [L]ist' })
vim.keymap.set('n', '<leader>lt', ':LeetCodeTest<CR>', { desc = '[L]eetCode [T]est' })
vim.keymap.set('n', '<leader>ls', ':LeetCodeSubmit<CR>', { desc = '[L]eetCode [S]ubmit' })
vim.keymap.set('n', '<leader>li', ':LeetCodeSignIn<CR>', { desc = '[L]eetCode Sign [I]n' })
end,
}

View File

@ -0,0 +1,4 @@
return {
"iamcco/markdown-preview.nvim",
run = function() vim.fn["mkdp#util#install"]() end,
}