Replacing double quotes with single.

This commit is contained in:
Finch 2024-03-01 11:28:29 -06:00
parent 59ef0707ac
commit 3c6b5ec1e1
7 changed files with 28 additions and 23 deletions

View File

@ -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')

View File

@ -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,

View File

@ -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

View File

@ -85,6 +85,6 @@ return {
lazy = false,
},
},
event = "InsertEnter",
event = 'InsertEnter',
lazy = false,
}

View File

@ -23,7 +23,7 @@ return {
selection_caret = '',
mappings = {
i = {
["<ESC>"] = actions.close
['<ESC>'] = actions.close
},
},
},
@ -33,12 +33,14 @@ return {
'nvim-lua/plenary.nvim'
},
keys = {
{ '<leader>ff', ":Telescope find_files<CR>" },
{ '<leader>fg', ":Telescope git_commits<CR>" },
{ '<leader>fh', ":Telescope help_tags<CR>" },
{ '<leader>fr', ":Telescope live_grep<CR>" },
{ '<leader>fm', ":Telescope marks<CR>" },
{ '<leader>fb', ":Telescope buffers<CR>" },
{ '<leader>fd', ":Telescope diagnostics<CR>" },
{ '<leader>ff', '<cmd>Telescope find_files<CR>' },
{ '<leader>fg', '<cmd>Telescope git_commits<CR>' },
{ '<leader>fh', '<cmd>Telescope help_tags<CR>' },
{ '<leader>fr', '<cmd>Telescope live_grep<CR>' },
{ '<leader>fm', '<cmd>Telescope marks<CR>' },
{ '<leader>fb', '<cmd>Telescope buffers<CR>' },
{ '<leader>fd', '<cmd>Telescope diagnostics<CR>' },
{ '<leader>fs', '<cmd>Telescope lsp_document_symbols<CR>' },
{ '<leader>fw', '<cmd>Telescope lsp_dynamic_workspace_symbols<CR>' },
},
}

View File

@ -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,

View File

@ -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.