Transparent background
This commit is contained in:
parent
9be57a4953
commit
501fda606f
18
init.lua
18
init.lua
|
|
@ -106,6 +106,10 @@ vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv")
|
||||||
-- Additional map for neotree
|
-- Additional map for neotree
|
||||||
vim.keymap.set('n', '<leader>te', '<cmd>Neotree reveal<CR>')
|
vim.keymap.set('n', '<leader>te', '<cmd>Neotree reveal<CR>')
|
||||||
|
|
||||||
|
vim.o.expandtab = true
|
||||||
|
vim.o.tabstop = 4
|
||||||
|
vim.o.shiftwidth = 4
|
||||||
|
|
||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||||
vim.g.have_nerd_font = true
|
vim.g.have_nerd_font = true
|
||||||
|
|
||||||
|
|
@ -775,13 +779,10 @@ require('lazy').setup({
|
||||||
opts = {
|
opts = {
|
||||||
notify_on_error = false,
|
notify_on_error = false,
|
||||||
format_on_save = function(bufnr)
|
format_on_save = function(bufnr)
|
||||||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
-- Emable "format_on_save lsp_fallback" for languages that have
|
||||||
-- have a well standardized coding style. You can add additional
|
-- have a well standardized coding style. You can add additional here
|
||||||
-- languages here or re-enable it for the disabled ones.
|
local enable_filetypes = { 'lua' }
|
||||||
local disable_filetypes = { c = true, cpp = true }
|
if enable_filetypes[vim.bo[bufnr].filetype] then
|
||||||
if disable_filetypes[vim.bo[bufnr].filetype] then
|
|
||||||
return nil
|
|
||||||
else
|
|
||||||
return {
|
return {
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
lsp_format = 'fallback',
|
lsp_format = 'fallback',
|
||||||
|
|
@ -909,8 +910,11 @@ require('lazy').setup({
|
||||||
config = function()
|
config = function()
|
||||||
---@diagnostic disable-next-line: missing-fields
|
---@diagnostic disable-next-line: missing-fields
|
||||||
require('tokyonight').setup {
|
require('tokyonight').setup {
|
||||||
|
transparent = true, -- Transparent background
|
||||||
styles = {
|
styles = {
|
||||||
comments = { italic = false }, -- Disable italics in comments
|
comments = { italic = false }, -- Disable italics in comments
|
||||||
|
sidebars = "transparent",
|
||||||
|
floats = "transparent",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue