This commit is contained in:
Bryan Ramos 2023-06-11 22:13:26 -04:00
parent 7cbf5a08ea
commit c40cdf87b3
3 changed files with 7 additions and 5 deletions

View file

@ -1,9 +1,6 @@
-- Autocmds are automatically loaded on the VeryLazy event -- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here -- Add any additional autocmds here
--
vim.cmd([[highlight Normal guibg=NONE ctermbg=NONE]])
local lsp = require("lsp-zero").preset({}) local lsp = require("lsp-zero").preset({})
lsp.on_attach(function(client, bufnr) lsp.on_attach(function(client, bufnr)
@ -100,7 +97,7 @@ cmp.setup({
["<cr>"] = cmp.mapping({ ["<cr>"] = cmp.mapping({
i = function(fallback) i = function(fallback)
if cmp.visible() and cmp.get_active_entry() then if cmp.visible() and cmp.get_active_entry() then
cmp.confirm({ behavior = cmp.confirmbehavior.replace, select = true }) cmp.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })
else else
fallback() fallback()
end end

View file

@ -8,6 +8,11 @@ vim.opt.softtabstop = 2
vim.opt.expandtab = true vim.opt.expandtab = true
vim.opt.smartindent = true vim.opt.smartindent = true
vim.cmd([[
autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4
autocmd FileType haskell setlocal tabstop=4 shiftwidth=4 softtabstop=4
]])
vim.opt.ignorecase = true vim.opt.ignorecase = true
vim.opt.smartcase = true vim.opt.smartcase = true

View file

@ -5,7 +5,7 @@ return {
priority = 1000, priority = 1000,
config = function() config = function()
require("github-theme").setup({ require("github-theme").setup({
opts = { options = {
transparent = true, transparent = true,
}, },
}) })