From 7f76af022723de61e891d5511df1fb70048e6380 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Sat, 29 Apr 2023 17:26:40 -0400 Subject: [PATCH] formatted --- homeConfig/dotfiles/nvim/init.lua | 88 +++++++++++++++---------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/homeConfig/dotfiles/nvim/init.lua b/homeConfig/dotfiles/nvim/init.lua index d258cb1..aa1a1ce 100644 --- a/homeConfig/dotfiles/nvim/init.lua +++ b/homeConfig/dotfiles/nvim/init.lua @@ -1,68 +1,68 @@ -- Line Numbering - vim.o.relativenumber = true - vim.o.number = true - vim.cmd('highlight LineNr ctermfg=DarkGray') +vim.o.relativenumber = true +vim.o.number = true +vim.cmd('highlight LineNr ctermfg=DarkGray') -- Enable clipboard - vim.o.clipboard = "unnamedplus" +vim.o.clipboard = "unnamedplus" -- Keep Cursor - vim.o.guicursor = '' +vim.o.guicursor = '' -- Indentation - vim.opt.shiftwidth = 2 - vim.opt.softtabstop = 2 - vim.opt.expandtab = true - vim.opt.tabstop = 2 +vim.opt.shiftwidth = 2 +vim.opt.softtabstop = 2 +vim.opt.expandtab = true +vim.opt.tabstop = 2 -- Folding - vim.o.foldmethod = "indent" - vim.o.foldlevelstart = 99 +vim.o.foldmethod = "indent" +vim.o.foldlevelstart = 99 -- Init Snippets - vim.g.snipMate = { snippet_version = 1 } +vim.g.snipMate = { snippet_version = 1 } -- Load packer.nvim - local packer_install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' - if vim.fn.empty(vim.fn.glob(packer_install_path)) > 0 then - vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. packer_install_path) - vim.cmd 'packadd packer.nvim' - end - dofile(vim.fn.stdpath('config') .. '/plugins.lua') +local packer_install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' + if vim.fn.empty(vim.fn.glob(packer_install_path)) > 0 then + vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. packer_install_path) + vim.cmd 'packadd packer.nvim' +end +dofile(vim.fn.stdpath('config') .. '/plugins.lua') -- Treesitter Enable - require'nvim-treesitter.configs'.setup { - highlight = { - enable = true, - }, - } +require'nvim-treesitter.configs'.setup { + highlight = { + enable = true, + }, +} -- Load LSP's - local function on_attach(client, bufnr) - client.server_capabilities.document_formatting = false - require('lsp_signature').on_attach() - local function set_completeopt() - vim.api.nvim_buf_set_option(bufnr, 'completeopt', 'menuone,noselect') - end - set_completeopt() +local function on_attach(client, bufnr) + client.server_capabilities.document_formatting = false + require('lsp_signature').on_attach() + local function set_completeopt() + vim.api.nvim_buf_set_option(bufnr, 'completeopt', 'menuone,noselect') end + set_completeopt() +end - require('lazy-lsp').setup { - excluded_servers = { - "sqls", "ccls", "zk", - }, +require('lazy-lsp').setup { + excluded_servers = { + "sqls", "ccls", "zk", + }, - default_config = { - on_attach = on_attach, - }, + default_config = { + on_attach = on_attach, + }, - configs = { - lua_ls = { - settings = { Lua = { diagnostics = { globals = { "vim" }}}}, - }, + configs = { + lua_ls = { + settings = { Lua = { diagnostics = { globals = { "vim" }}}}, }, - } + }, +} -- TODO: This is supposed to change the opacity for the LSP in-line error messages but it is not. - vim.cmd('highlight! link LspDiagnosticsVirtualTextError LspDiagnosticsVirtualTextErrorTransparent') - vim.cmd('highlight! LspDiagnosticsVirtualTextErrorTransparent guibg=none gui=none blend=50') +vim.cmd('highlight! link LspDiagnosticsVirtualTextError LspDiagnosticsVirtualTextErrorTransparent') +vim.cmd('highlight! LspDiagnosticsVirtualTextErrorTransparent guibg=none gui=none blend=50')