NEOVIM TRANSPARENTE NEOVIM CON FONDO TRANSPARENTE

NEOVIM TRANSPARENTE NEOVIM CON FONDO TRANSPARENTE

vim transparent

Bueno hoy vamos a estar viendo cómo colocar transparente el fondo de cualquier Neovim sin importar si es una configuración sencilla de Neovim o si es un Framework, así que primero vamos a ver el paso a paso con una configuración sencilla y luego con LunarVim. 

Si quieres ver esta misma explicación en video da click aquí.

FONDO TRANSPARENTE EN NEOVIM

Lo primero es estar seguros que la terminal que estamos usando ya tenga activada la transparencia porque si no no va a funcionar de nada aplicar esta configuración, una vez verifiquemos vamos a ir a la ruta donde haya quedado nuestro archivo de configuración de Neovim init.vim, ingresamos en el documento y tendremos el fondo sin la transparencia activada, entonces la idea es hacer que podamos tener el fondo transparente, cuando tengamos abierto el documento pues tenemos que ubicarnos en el llamado de los plugins usando, en este caso la configuración de los plugins es usando Vim Plug, pues vamos a colocar un plugin llamado vim transparent dentro de nuestra configuración,  puedes conseguir más información desde su repositorio en GitHub, copiamos el comando que se encuentra en el repositorio y lo colocamos en nuestro init.vim.

 Plug 'tribela/vim-transparent'

Después de agregar el plugin en nuestra configuración guardamos con :w y luego salimos del documento con :q, una vez salgamos del documento de configuración, volvemos a ingresar usando vim o nvim y en el modo comando colocamos :PlugInstall, vamos a ver que aparece una nueva ventana de la terminal en la que empieza la instalación del nuevo plugin, cuando finalice la instalación cierran el documento y vuelven a ingresar y ya tendrán el fondo transparente aplicado.

MI INIT.VIM


set ruler
set mouse=a
set clipboard=unnamed
set showcmd
set encoding=UTF-8
set showmatch
set sw=4
set relativenumber
set laststatus=10
set backspace=2
syntax on
set number
set splitbelow
set splitright
set hlsearch " Highlight search results
let mapleader = "\ "

" Inicia el NERDTree cuando inicia VIM.
autocmd VimEnter * NERDTree


"para abrir una terminal abajo  Ctrl+t

vnoremap  :split:ter
nnoremap  :split:ter


""nmap  :w
nmap  :q!
nmap  :u





 "" PLUGINS ---------------------------------------------------------------- {{{

call plug#begin('~/AppData/Local/nvim/plugged') "directorio donde se van a instalar los plugins
  "para 
  Plug 'dense-analysis/ale'
 "para buscar
  Plug 'nvim-lua/plenary.nvim'
  Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' }
  "Mason
  Plug 'williamboman/mason.nvim'
  "transparent
  Plug 'tribela/vim-transparent'
  "para autocompletado
  Plug 'neoclide/coc.nvim', {'branch': 'release'}
  "Para temas
  Plug 'rafi/awesome-vim-colorschemes'
  "Para navegacion
  Plug 'preservim/nerdtree'
  "Para abrir y cerar parentesis
  Plug 'jiangmiao/auto-pairs'
  Plug 'alvan/vim-closetag'
  "para navegar con ctrl-h ctrl-l ctrl-j ctrl-k
  Plug 'christoomey/vim-tmux-navigator'
  "barra inferior
    Plug 'vim-airline/vim-airline'
  Plug 'vim-airline/vim-airline-themes'
 
  "para iconos de los lenguajes
  Plug 'ryanoasis/vim-devicons'
  "para colores en sintaxis
  Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}

call plug#end()


let g:airline_section_c='%F'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
let g:airline#extensions#tabline#formatter = 'default'
let g:airline_theme='badwolf'
set laststatus=2
if !exists('g:airline_symbols')
  let g:airline_symbols = {}
endif

" powerline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = '☰'
let g:airline_symbols.maxlinenr = ''
let g:airline_symbols.dirty='⚡'




"" mejores colores: Purify, Molokayo, Focuspoint, Deus, PaperColor 

colorscheme  PaperColor

set guifont=DroidSansMono\ Nerd\ Font:h10


" Find files using Telescope command-line sugar.
nnoremap ff Telescope find_files
nnoremap fg Telescope live_grep
nnoremap fb Telescope buffers
nnoremap fh Telescope help_tags
nnoremap t Telescope



" }}}
"
" Some servers have issues with backup files, see #649.
set nobackup
set nowritebackup

" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300

" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
set signcolumn=yes


"Para establecer la fuente
"if has("gui_running")
"  if has("gui_gtk2")
"    set guifont=Inconsolata\ 12
"elseif has("gui_macvim")
"   set guifont=Menlo\ Regular:h14
" elseif has("gui_win32")
"    set guifont=Consolas:h11:cANSI
"endif
"endif

"languageserver": {
  "clangd": {
    "command": "clangd",
    "rootPatterns": ["compile_flags.txt", "compile_commands.json"] 

let g:webdevicons_enable_nerdtree = 1




"configuracion para neoclide Coc

" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap ' to make sure tab is not mapped by
" other pdada
inoremap  
      \ coc#pum#visible() ? coc#pum#next(1):
      \ CheckBackspace() ? "\" :
      \ coc#refresh()
inoremap  coc#pum#visible() ? coc#pum#prev(1) : "\"

" Make  to accept selected completion item or notify coc.nvim to format
" u breaks current undo, please make your own choice.
inoremap   coc#pum#visible() ? coc#pum#confirm()
                              \: "\u\\=coc#on_enter()\"

function! CheckBackspace() abort
  let col = col('.') - 1
  return !col || getline('.')[col - 1]  =~# '\s'
endfunction

" Use  to trigger completion.
if has('nvim')
  inoremap   coc#refresh()
else
  inoremap   coc#refresh()
endif

" Use `[g` and `]g` to navigate diagnostics
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
nmap  [g (coc-diagnostic-prev)
nmap  ]g (coc-diagnostic-next)

" GoTo code navigation.
nmap  gd (coc-definition)
nmap  gy (coc-type-definition)
nmap  gi (coc-implementation)
nmap  gr (coc-references)

" Use K to show documentation in preview window.
nnoremap  K :call ShowDocumentation()

function! ShowDocumentation()
  if CocAction('hasProvider', 'hover')
    call CocActionAsync('doHover')
  else
    call feedkeys('K', 'in')
  endif
endfunction

" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')

" Symbol renaming.
nmap rn (coc-rename)

" Formatting selected code.
xmap f  (coc-format-selected)
nmap f  (coc-format-selected)

augroup mygroup
  autocmd!
  " Setup formatexpr specified filetype(s).
  autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
  " Update signature help on jump placeholder.
  autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end

" Applying codeAction to the selected region.
" Example: `aap` for current paragraph
xmap a  (coc-codeaction-selected)
nmap a  (coc-codeaction-selected)

" Remap keys for applying codeAction to the current buffer.
nmap ac  (coc-codeaction)
" Apply AutoFix to problem on the current line.
nmap qf  (coc-fix-current)

" Run the Code Lens action on the current line.
nmap cl  (coc-codelens-action)

" Map function and class text objects
" NOTE: Requires 'textDocument.documentSymbol' support from the language server.
xmap if (coc-funcobj-i)
omap if (coc-funcobj-i)
xmap af (coc-funcobj-a)
omap af (coc-funcobj-a)
xmap ic (coc-classobj-i)
omap ic (coc-classobj-i)
xmap ac (coc-classobj-a)
omap ac (coc-classobj-a)

" Remap  and  for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
  nnoremap   coc#float#has_scroll() ? coc#float#scroll(1) : "\"
  nnoremap   coc#float#has_scroll() ? coc#float#scroll(0) : "\"
  inoremap   coc#float#has_scroll() ? "\=coc#float#scroll(1)\" : "\"
  inoremap   coc#float#has_scroll() ? "\=coc#float#scroll(0)\" : "\"
  vnoremap   coc#float#has_scroll() ? coc#float#scroll(1) : "\"
  vnoremap   coc#float#has_scroll() ? coc#float#scroll(0) : "\"
endif

" Use CTRL-S for selections ranges.
" Requires 'textDocument/selectionRange' support of language server.
nmap   (coc-range-select)
xmap   (coc-range-select)

" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocActionAsync('format')

" Add `:Fold` command to fold current buffer.
command! -nargs=? Fold :call     CocAction('fold', )

" Add `:OR` command for organize imports of the current buffer.
command! -nargs=0 OR   :call     CocActionAsync('runCommand', 'editor.action.organizeImport')

" Add (Neo)Vim's native statusline support.
" NOTE: Please see `:h coc-status` for integrations with external plugins that
" provide custom statusline: lightline.vim, vim-airline.
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}

" Mappings for CoCList
" Show all diagnostics.
nnoremap  a  :CocList diagnostics
" Manage extensions.
nnoremap  e  :CocList extensions
" Show commands.
nnoremap  c  :CocList commands
" Find symbol of current document.
nnoremap  o  :CocList outline
" Search workspace symbols.
nnoremap  s  :CocList -I symbols
" Do default action for next item.
nnoremap  j  :CocNext
" Do default action for previous item.
nnoremap  k  :CocPrev
" Resume latest coc list.
nnoremap  p  :CocListResume

Algunos plugins funcionan también con el efecto de transparencia por ejemplo Telescope, pero otros no funcionan con la transparencia como lo es Neoclide COC, pues con esta sencilla configuración tendríamos la instalación hecha para Neovim, ahora vamos a ver cómo hacemos para agregarlo LunarVim o a cualquier otro framework de Neovim.

FONDO TRANSPARENTE EN LUNARVIM U OTROS FRAMEWORKS

Lo primero es ubicarnos en el inicio de LunarVim y presionar la tecla espacio luego a LunarVim presionando la L mayúscula y luego a la f para encontrar documentos de lunarVim, ahora vamos a buscar el archivo que se llama plugins.lua.

En este archivo plugins.lua tenemos que agregar nuestro plugin, solamente que la forma en que se agrega es diferente, vamos a ubicarnos dentro de las llaves { } de core_plugins y seguidamente tendremos que colocar lo siguiente como el ejemplo de aquí abajo.


  {
  --plugin para transparencia
    "tribela/vim-transparent",
  },
  {
  --tema compatible con la transparencia
    "rafamadriz/neon",
  },


Archivo plugins.lua completo

-- local require = require("lvim.utils.require").require
local core_plugins = {
  -- Packer can manage itself as an optional plugin
  { "wbthomason/packer.nvim" },
  { "neovim/nvim-lspconfig" },
  { "tamago324/nlsp-settings.nvim" },
  {
    "jose-elias-alvarez/null-ls.nvim",
  },
  { "williamboman/mason-lspconfig.nvim" },
  {
    "williamboman/mason.nvim",
    config = function()
      require("lvim.core.mason").setup()
    end,
  },
  {
    "folke/tokyonight.nvim",
  },
  {
    "lunarvim/lunar.nvim",
  },
  { "Tastyep/structlog.nvim" },

  { "nvim-lua/popup.nvim" },
  { "nvim-lua/plenary.nvim" },
  -- Telescope
  {
    "nvim-telescope/telescope.nvim",
    branch = "0.1.x",
    config = function()
      require("lvim.core.telescope").setup()
    end,
    disable = not lvim.builtin.telescope.active,
  },
  {
    "nvim-telescope/telescope-fzf-native.nvim",
    requires = { "nvim-telescope/telescope.nvim" },
    run = "make",
    disable = not lvim.builtin.telescope.active,
  },
  -- Install nvim-cmp, and buffer source as a dependency
  {
    "hrsh7th/nvim-cmp",
    config = function()
      if lvim.builtin.cmp then
        require("lvim.core.cmp").setup()
      end
    end,
    requires = {
      -- "L3MON4D3/LuaSnip",
    },
  },
  {
    "rafamadriz/friendly-snippets",
    disable = not lvim.builtin.luasnip.sources.friendly_snippets,
  },
  {
    "L3MON4D3/LuaSnip",
    config = function()
      local utils = require "lvim.utils"
      local paths = {}
      if lvim.builtin.luasnip.sources.friendly_snippets then
        paths[#paths + 1] = utils.join_paths(get_runtime_dir(), "site", "pack", "packer", "start", "friendly-snippets")
      end
      local user_snippets = utils.join_paths(get_config_dir(), "snippets")
      if utils.is_directory(user_snippets) then
        paths[#paths + 1] = user_snippets
      end
      require("luasnip.loaders.from_lua").lazy_load()
      require("luasnip.loaders.from_vscode").lazy_load {
        paths = paths,
      }
      require("luasnip.loaders.from_snipmate").lazy_load()
    end,
  },
  {
    "hrsh7th/cmp-nvim-lsp",
  },
  {
    "saadparwaiz1/cmp_luasnip",
  },
  {
    "hrsh7th/cmp-buffer",
  },
  {
    "hrsh7th/cmp-path",
  },
  {
    "folke/neodev.nvim",
    module = "neodev",
  },



  -- Autopairs
  {
    "windwp/nvim-autopairs",
    -- event = "InsertEnter",
    config = function()
      require("lvim.core.autopairs").setup()
    end,
    disable = not lvim.builtin.autopairs.active,
  },

  -- Treesitter
  {
    "nvim-treesitter/nvim-treesitter",
    -- run = ":TSUpdate",
    config = function()
      require("lvim.core.treesitter").setup()
    end,
  },
  {
    "JoosepAlviste/nvim-ts-context-commentstring",
    event = "BufReadPost",
  },

  -- NvimTree
  {
    "kyazdani42/nvim-tree.lua",
    -- event = "BufWinOpen",
    -- cmd = "NvimTreeToggle",
    config = function()
      require("lvim.core.nvimtree").setup()
    end,
    disable = not lvim.builtin.nvimtree.active,
  },
  -- Lir
  {
    "christianchiarulli/lir.nvim",
    config = function()
      require("lvim.core.lir").setup()
    end,
    requires = { "kyazdani42/nvim-web-devicons" },
    disable = not lvim.builtin.lir.active,
  },
  {
    "lewis6991/gitsigns.nvim",

    config = function()
      require("lvim.core.gitsigns").setup()
    end,
    event = "BufRead",
    disable = not lvim.builtin.gitsigns.active,
  },

  -- Whichkey
  {
    "folke/which-key.nvim",
    config = function()
      require("lvim.core.which-key").setup()
    end,
    event = "BufWinEnter",
    disable = not lvim.builtin.which_key.active,
  },

  -- Comments
  {
    "numToStr/Comment.nvim",
    event = "BufRead",
    config = function()
      require("lvim.core.comment").setup()
    end,
    disable = not lvim.builtin.comment.active,
  },

  -- project.nvim
  {
    "ahmedkhalf/project.nvim",
    config = function()
      require("lvim.core.project").setup()
    end,
    disable = not lvim.builtin.project.active,
  },

  -- Icons
  {
    "kyazdani42/nvim-web-devicons",
    disable = not lvim.use_icons,
  },

  -- Status Line and Bufferline
  {
    -- "hoob3rt/lualine.nvim",
    "nvim-lualine/lualine.nvim",
    -- "Lunarvim/lualine.nvim",
    config = function()
      require("lvim.core.lualine").setup()
    end,
    disable = not lvim.builtin.lualine.active,
  },

  -- breadcrumbs
  {
    "SmiteshP/nvim-navic",
    config = function()
      require("lvim.core.breadcrumbs").setup()
    end,
    disable = not lvim.builtin.breadcrumbs.active,
  },

  {
    "akinsho/bufferline.nvim",
    config = function()
      require("lvim.core.bufferline").setup()
    end,
    branch = "main",
    event = "BufWinEnter",
    disable = not lvim.builtin.bufferline.active,
  },

  -- Debugging
  {
    "mfussenegger/nvim-dap",
    -- event = "BufWinEnter",
    config = function()
      require("lvim.core.dap").setup()
    end,
    disable = not lvim.builtin.dap.active,
  },

  -- Debugger user interface
  {
    "rcarriga/nvim-dap-ui",
    config = function()
      require("lvim.core.dap").setup_ui()
    end,
    disable = not lvim.builtin.dap.active,
  },

  -- alpha
  {
    "goolord/alpha-nvim",
    config = function()
      require("lvim.core.alpha").setup()
    end,
    disable = not lvim.builtin.alpha.active,
  },

  -- Terminal
  {
    "akinsho/toggleterm.nvim",
    event = "BufWinEnter",
    branch = "main",
    config = function()
      require("lvim.core.terminal").setup()
    end,
    disable = not lvim.builtin.terminal.active,
  },

  -- SchemaStore
  {
    "b0o/schemastore.nvim",
  },

  {
    "RRethy/vim-illuminate",
    config = function()
      require("lvim.core.illuminate").setup()
    end,
    disable = not lvim.builtin.illuminate.active,
  },

  {
    "lukas-reineke/indent-blankline.nvim",
    config = function()
      require("lvim.core.indentlines").setup()
    end,
    disable = not lvim.builtin.indentlines.active,
  },

  {
    "lunarvim/onedarker.nvim",
    branch = "freeze",
    config = function()
      pcall(function()
        if lvim and lvim.colorscheme == "onedarker" then
          require("onedarker").setup()
          lvim.builtin.lualine.options.theme = "onedarker"
        end
      end)
    end,
    disable = lvim.colorscheme ~= "onedarker",
  },
  --trans

  {
    "tribela/vim-transparent",
  },
  {
    "rafamadriz/neon",
  },
 }

local default_snapshot_path = join_paths(get_lvim_base_dir(), "snapshots", "default.json")
local content = vim.fn.readfile(default_snapshot_path)
local default_sha1 = vim.fn.json_decode(content)

local get_default_sha1 = function(spec)
  local short_name, _ = require("packer.util").get_plugin_short_name(spec)

  return default_sha1[short_name] and default_sha1[short_name].commit
end

if not vim.env.LVIM_DEV_MODE then
  for _, spec in ipairs(core_plugins) do
    -- Manually lock the commit hash since Packer's snapshots are unreliable in headless mode
    spec["commit"] = get_default_sha1(spec)
  end
end

return core_plugins
Cuando hayamos agregado el plugin a nuestra lista, vamos a guardar :w y a salir :q, ahora regresamos nuevamente a inicio de LunarVim y entramos en la configuración o el archivo llamado config.lua, estando aquí solo tenemos que guardar con :w con esto va a empezar la instalación de los plugins.

MI CONFIG.LUA

--[[
lvim is the global options object

Linters should be
filled in as strings with er
a global executable or a path to
an executable
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
-- general
lvim.log.level = "warn"
lvim.format_on_save.enabled = false
lvim.colorscheme = "neon"
-- mejores temas
-- tokionight
-- neon


--split right 
vim.opt.splitright = true

--para tema de lualine

lvim.builtin.lualine.style = "lvim" -- or "none"

lvim.transparent_window = true
-- to disable icons and use a minimalist setup, uncomment the following
-- lvim.use_icons = false

-- keymappings [view all the defaults by pressing Lk]
lvim.leader = "space"
-- add your own keymapping
lvim.keys.normal_mode[""] = ":w"
-- lvim.keys.normal_mode[""] = ":BufferLineCycleNext"
-- lvim.keys.normal_mode[""] = ":BufferLineCyclePrev"
-- unmap a default keymapping
-- vim.keymap.del("n", "")
-- override a default keymapping
-- lvim.keys.normal_mode[""] = ":q" -- or vim.keymap.set("n", "", ":q" )

-- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode.
-- we use protected-mode (pcall) just in case the plugin wasn't loaded yet.
-- local _, actions = pcall(require, "telescope.actions")
-- lvim.builtin.telescope.defaults.mappings = {
--   -- for input mode
--   i = {
--     [""] = actions.move_selection_next,
--     [""] = actions.move_selection_previous,
--     [""] = actions.cycle_history_next,
--     [""] = actions.cycle_history_prev,
--   },
--   -- for normal mode
--   n = {
--     [""] = actions.move_selection_next,
--     [""] = actions.move_selection_previous,
--   },
-- }

-- Change theme settings
-- lvim.builtin.theme.options.dim_inactive = true
-- lvim.builtin.theme.options.style = "storm"

-- Use which-key to add extra bindings with the leader-key prefix
-- lvim.builtin.which_key.mappings["P"] = { "Telescope projects", "Projects" }
-- lvim.builtin.which_key.mappings["t"] = {
--   name = "+Trouble",
--   r = { "Trouble lsp_references", "References" },
--   f = { "Trouble lsp_definitions", "Definitions" },
--   d = { "Trouble document_diagnostics", "Diagnostics" },
--   q = { "Trouble quickfix", "QuickFix" },
--   l = { "Trouble loclist", "LocationList" },
--   w = { "Trouble workspace_diagnostics", "Workspace Diagnostics" },
-- }

-- TODO: User Config for predefined plugins
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
lvim.builtin.alpha.active = true
lvim.builtin.alpha.mode = "dashboard"
lvim.builtin.terminal.active = true
lvim.builtin.nvimtree.setup.view.side = "left"
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false

-- if you don't want all the parsers change this to a table of the ones you want
lvim.builtin.treesitter.ensure_installed = {
  "bash",
  "c",
  "javascript",
  "json",
  "lua",
  "python",
  "typescript",
  "tsx",
  "css",
  "rust",
  "java",
  "yaml",
}

lvim.builtin.treesitter.ignore_install = { "haskell" }
lvim.builtin.treesitter.highlight.enable = true

-- generic LSP settings

-- -- make sure server will always be installed even if the server is in skipped_servers list
-- lvim.lsp.installer.setup.ensure_installed = {
--     "sumneko_lua",
--     "jsonls",
-- }
-- -- change UI setting of `LspInstallInfo`
-- -- see 
-- lvim.lsp.installer.setup.ui.check_outdated_servers_on_open = false
-- lvim.lsp.installer.setup.ui.border = "rounded"
-- lvim.lsp.installer.setup.ui.keymaps = {
--     uninstall_server = "d",
--     toggle_server_expand = "o",
-- }

-- ---@usage disable automatic installation of servers
-- lvim.lsp.installer.setup.automatic_installation = false

-- ---configure a server manually. !!Requires `:LvimCacheReset` to take effect!!
-- ---see the full default list `:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers))`
-- vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pyright" })
-- local opts = {} -- check the lspconfig documentation for a list of all possible options
-- require("lvim.lsp.manager").setup("pyright", opts)

-- ---remove a server from the skipped list, e.g. eslint, or emmet_ls. !!Requires `:LvimCacheReset` to take effect!!
-- ---`:LvimInfo` lists which server(s) are skipped for the current filetype
-- lvim.lsp.automatic_configuration.skipped_servers = vim.tbl_filter(function(server)
--   return server ~= "emmet_ls"
-- end, lvim.lsp.automatic_configuration.skipped_servers)

-- -- you can set a custom on_attach function that will be used for all the language servers
-- -- See 
-- lvim.lsp.on_attach_callback = function(client, bufnr)
--   local function buf_set_option(...)
--     vim.api.nvim_buf_set_option(bufnr, ...)
--   end
--   --Enable completion triggered by 
--   buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
-- end

-- -- set a formatter, this will override the language server formatting capabilities (if it exists)
-- local formatters = require "lvim.lsp.null-ls.formatters"
-- formatters.setup {
--   { command = "black", filetypes = { "python" } },
--   { command = "isort", filetypes = { "python" } },
--   {
--     -- each formatter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration
--     command = "prettier",
--     ---@usage arguments to pass to the formatter
--     -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}`
--     extra_args = { "--print-with", "100" },
--     ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
--     filetypes = { "typescript", "typescriptreact" },
--   },
-- }

-- -- set additional linters
-- local linters = require "lvim.lsp.null-ls.linters"
-- linters.setup {
--   { command = "flake8", filetypes = { "python" } },
--   {
--     -- each linter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration
--     command = "shellcheck",
--     ---@usage arguments to pass to the formatter
--     -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}`
--     extra_args = { "--severity", "warning" },
--   },
--   {
--     command = "codespell",
--     ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
--     filetypes = { "javascript", "python" },
--   },
-- }

-- Additional Plugins
-- lvim.plugins = {
--     {
--       "folke/trouble.nvim",
--       cmd = "TroubleToggle",
--     },
-- }

-- Autocommands (https://neovim.io/doc/user/autocmd.html)
-- vim.api.nvim_create_autocmd("BufEnter", {
--   pattern = { "*.json", "*.jsonc" },
--   -- enable wrap mode for json files only
--   command = "setlocal wrap",
-- })
-- vim.api.nvim_create_autocmd("FileType", {
--   pattern = "zsh",
--   callback = function()
--     -- let treesitter use bash highlight for zsh files as well
--     require("nvim-treesitter.highlight").attach(0, "bash")
--   end,
-- })

  

Si salimos y volvemos a ingresar ya tendremos el efecto de fondo transparente aplicado en LunarVim

Artículo Anterior Artículo Siguiente

Formulario de contacto