commit
9c6e9e269e
|
|
@ -8,6 +8,7 @@ A starting point for Neovim that is:
|
||||||
* Single-file
|
* Single-file
|
||||||
* Completely Documented
|
* Completely Documented
|
||||||
|
|
||||||
|
|
||||||
**NOT** a Neovim distribution, but instead a starting point for your configuration.
|
**NOT** a Neovim distribution, but instead a starting point for your configuration.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ return {
|
||||||
require('code_runner').setup {
|
require('code_runner').setup {
|
||||||
filetype = {
|
filetype = {
|
||||||
python = 'python3 -u',
|
python = 'python3 -u',
|
||||||
typescript = 'deno run',
|
javascript = 'node $file',
|
||||||
|
typescript = 'ts-node $file',
|
||||||
rust = {
|
rust = {
|
||||||
'cd $dir &&',
|
'cd $dir &&',
|
||||||
'rustc $fileName &&',
|
'rustc $fileName &&',
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,15 @@ return {
|
||||||
|
|
||||||
-- Fuzzy find all the symbols in your current workspace.
|
-- Fuzzy find all the symbols in your current workspace.
|
||||||
-- Similar to document symbols, except searches over your entire project.
|
-- Similar to document symbols, except searches over your entire project.
|
||||||
map('gW', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
|
map('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
|
||||||
|
|
||||||
|
-- Rename the variable under your cursor.
|
||||||
|
-- Most Language Servers support renaming across files, etc.
|
||||||
|
map('<leader>Rn', vim.lsp.buf.rename, '[R]e[n]ame')
|
||||||
|
|
||||||
|
-- Execute a code action, usually your cursor needs to be on top of an error
|
||||||
|
-- or a suggestion from your LSP for this to activate.
|
||||||
|
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
|
||||||
|
|
||||||
-- Opens a popup that displays documentation about the word under your cursor
|
-- Opens a popup that displays documentation about the word under your cursor
|
||||||
-- See `:help K` for why this keymap.
|
-- See `:help K` for why this keymap.
|
||||||
|
|
@ -258,6 +266,7 @@ return {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
||||||
{ -- Autocompletion
|
{ -- Autocompletion
|
||||||
'saghen/blink.cmp',
|
'saghen/blink.cmp',
|
||||||
event = 'VimEnter',
|
event = 'VimEnter',
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'ThePrimeagen/git-worktree.nvim', -- Manage worktrees from nvim
|
'ThePrimeagen/git-worktree.nvim', -- Manage worktrees from nvim
|
||||||
opts = {
|
opts = {
|
||||||
change_directory_command = 'tcd', -- command to change directory (e.g. lcd for NvimTree)
|
change_directory_command = 'tcd', -- command to change directory (e.g. lcd for NvimTree)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue