From 3c6b5ec1e10f8efd270b78a3121039bec9c4aae0 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Fri, 1 Mar 2024 11:28:29 -0600 Subject: [PATCH] Replacing double quotes with single. --- lua/custom_functions.lua | 12 ++++++------ lua/lsp.lua | 2 +- lua/plugins.lua | 12 ++++++------ lua/plugins/nvim-cmp.lua | 2 +- lua/plugins/telescope.lua | 18 ++++++++++-------- lua/plugins/treesitter.lua | 3 +++ lua/settings.lua | 2 +- 7 files changed, 28 insertions(+), 23 deletions(-) diff --git a/lua/custom_functions.lua b/lua/custom_functions.lua index c0e5dcb..baa536b 100644 --- a/lua/custom_functions.lua +++ b/lua/custom_functions.lua @@ -9,16 +9,16 @@ end local function execute(type) local command_table = { run = { - java = "java %", - python = "python %", - rust = "cargo run", + java = 'java %', + python = 'python %', + rust = 'cargo run', }, test = { - python = "python test", - rust = "cargo test", + python = 'python test', + rust = 'cargo test', }, benchmark = { - rust = "cargo bench", + rust = 'cargo bench', }, } vim.api.nvim_command('write') diff --git a/lua/lsp.lua b/lua/lsp.lua index f40f7b7..b71e050 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -1,4 +1,4 @@ -vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( +vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { underline = true, virtual_text = true, diff --git a/lua/plugins.lua b/lua/plugins.lua index c8765d2..617d24e 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -4,14 +4,14 @@ -- use 'mfussenegger/nvim-dap' -- use 'rcarriga/nvim-dap-ui' -local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", + 'git', + 'clone', + '--filter=blob:none', + 'https://github.com/folke/lazy.nvim.git', + '--branch=stable', lazypath, }) end diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index 406e286..6c09a10 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -85,6 +85,6 @@ return { lazy = false, }, }, - event = "InsertEnter", + event = 'InsertEnter', lazy = false, } diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 28ab4e8..77245c1 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -23,7 +23,7 @@ return { selection_caret = '➤ ', mappings = { i = { - [""] = actions.close + [''] = actions.close }, }, }, @@ -33,12 +33,14 @@ return { 'nvim-lua/plenary.nvim' }, keys = { - { 'ff', ":Telescope find_files" }, - { 'fg', ":Telescope git_commits" }, - { 'fh', ":Telescope help_tags" }, - { 'fr', ":Telescope live_grep" }, - { 'fm', ":Telescope marks" }, - { 'fb', ":Telescope buffers" }, - { 'fd', ":Telescope diagnostics" }, + { 'ff', 'Telescope find_files' }, + { 'fg', 'Telescope git_commits' }, + { 'fh', 'Telescope help_tags' }, + { 'fr', 'Telescope live_grep' }, + { 'fm', 'Telescope marks' }, + { 'fb', 'Telescope buffers' }, + { 'fd', 'Telescope diagnostics' }, + { 'fs', 'Telescope lsp_document_symbols' }, + { 'fw', 'Telescope lsp_dynamic_workspace_symbols' }, }, } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index bf13d69..8f100cf 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,5 +1,8 @@ return { 'nvim-treesitter/nvim-treesitter', + build = function() + require('nvim-treesitter.install').update({ with_sync = true }) + end, config = function() require('nvim-treesitter.configs').setup { auto_install = true, diff --git a/lua/settings.lua b/lua/settings.lua index 0cd5bcc..629f7c4 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -1,5 +1,5 @@ vim.opt.background = 'dark' -- Force a dark background for the colorscheme -vim.opt.clipboard = "unnamed,unnamedplus" -- Use both the "*" and "+" registers for yanks and deletes (puts things in the system clipboard) +vim.opt.clipboard = 'unnamed,unnamedplus' -- Use both the "*" and "+" registers for yanks and deletes (puts things in the system clipboard) vim.opt.colorcolumn = '121' -- Highlight column to show vim.opt.completeopt = 'menu,menuone,noinsert' -- Change how the completion menu is interacted with vim.opt.cursorline = true -- Highlight the line the cursor is on.