Replacing double quotes with single.
This commit is contained in:
parent
59ef0707ac
commit
3c6b5ec1e1
@ -9,16 +9,16 @@ end
|
|||||||
local function execute(type)
|
local function execute(type)
|
||||||
local command_table = {
|
local command_table = {
|
||||||
run = {
|
run = {
|
||||||
java = "java %",
|
java = 'java %',
|
||||||
python = "python %",
|
python = 'python %',
|
||||||
rust = "cargo run",
|
rust = 'cargo run',
|
||||||
},
|
},
|
||||||
test = {
|
test = {
|
||||||
python = "python test",
|
python = 'python test',
|
||||||
rust = "cargo test",
|
rust = 'cargo test',
|
||||||
},
|
},
|
||||||
benchmark = {
|
benchmark = {
|
||||||
rust = "cargo bench",
|
rust = 'cargo bench',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
vim.api.nvim_command('write')
|
vim.api.nvim_command('write')
|
||||||
|
|||||||
@ -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, {
|
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||||
underline = true,
|
underline = true,
|
||||||
virtual_text = true,
|
virtual_text = true,
|
||||||
|
|||||||
@ -4,14 +4,14 @@
|
|||||||
-- use 'mfussenegger/nvim-dap'
|
-- use 'mfussenegger/nvim-dap'
|
||||||
-- use 'rcarriga/nvim-dap-ui'
|
-- 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
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
'git',
|
||||||
"clone",
|
'clone',
|
||||||
"--filter=blob:none",
|
'--filter=blob:none',
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
'https://github.com/folke/lazy.nvim.git',
|
||||||
"--branch=stable",
|
'--branch=stable',
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
@ -85,6 +85,6 @@ return {
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
event = "InsertEnter",
|
event = 'InsertEnter',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ return {
|
|||||||
selection_caret = '➤ ',
|
selection_caret = '➤ ',
|
||||||
mappings = {
|
mappings = {
|
||||||
i = {
|
i = {
|
||||||
["<ESC>"] = actions.close
|
['<ESC>'] = actions.close
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -33,12 +33,14 @@ return {
|
|||||||
'nvim-lua/plenary.nvim'
|
'nvim-lua/plenary.nvim'
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ '<leader>ff', ":Telescope find_files<CR>" },
|
{ '<leader>ff', '<cmd>Telescope find_files<CR>' },
|
||||||
{ '<leader>fg', ":Telescope git_commits<CR>" },
|
{ '<leader>fg', '<cmd>Telescope git_commits<CR>' },
|
||||||
{ '<leader>fh', ":Telescope help_tags<CR>" },
|
{ '<leader>fh', '<cmd>Telescope help_tags<CR>' },
|
||||||
{ '<leader>fr', ":Telescope live_grep<CR>" },
|
{ '<leader>fr', '<cmd>Telescope live_grep<CR>' },
|
||||||
{ '<leader>fm', ":Telescope marks<CR>" },
|
{ '<leader>fm', '<cmd>Telescope marks<CR>' },
|
||||||
{ '<leader>fb', ":Telescope buffers<CR>" },
|
{ '<leader>fb', '<cmd>Telescope buffers<CR>' },
|
||||||
{ '<leader>fd', ":Telescope diagnostics<CR>" },
|
{ '<leader>fd', '<cmd>Telescope diagnostics<CR>' },
|
||||||
|
{ '<leader>fs', '<cmd>Telescope lsp_document_symbols<CR>' },
|
||||||
|
{ '<leader>fw', '<cmd>Telescope lsp_dynamic_workspace_symbols<CR>' },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
build = function()
|
||||||
|
require('nvim-treesitter.install').update({ with_sync = true })
|
||||||
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
vim.opt.background = 'dark' -- Force a dark background for the colorscheme
|
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.colorcolumn = '121' -- Highlight column to show
|
||||||
vim.opt.completeopt = 'menu,menuone,noinsert' -- Change how the completion menu is interacted with
|
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.
|
vim.opt.cursorline = true -- Highlight the line the cursor is on.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user