commit
9c6e9e269e
|
|
@ -8,6 +8,7 @@ A starting point for Neovim that is:
|
|||
* Single-file
|
||||
* Completely Documented
|
||||
|
||||
|
||||
**NOT** a Neovim distribution, but instead a starting point for your configuration.
|
||||
|
||||
## Installation
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ return {
|
|||
require('code_runner').setup {
|
||||
filetype = {
|
||||
python = 'python3 -u',
|
||||
typescript = 'deno run',
|
||||
javascript = 'node $file',
|
||||
typescript = 'ts-node $file',
|
||||
rust = {
|
||||
'cd $dir &&',
|
||||
'rustc $fileName &&',
|
||||
|
|
|
|||
|
|
@ -95,7 +95,15 @@ return {
|
|||
|
||||
-- Fuzzy find all the symbols in your current workspace.
|
||||
-- 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
|
||||
-- See `:help K` for why this keymap.
|
||||
|
|
@ -258,6 +266,7 @@ return {
|
|||
},
|
||||
}
|
||||
end,
|
||||
|
||||
{ -- Autocompletion
|
||||
'saghen/blink.cmp',
|
||||
event = 'VimEnter',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
return {
|
||||
|
||||
'ThePrimeagen/git-worktree.nvim', -- Manage worktrees from nvim
|
||||
opts = {
|
||||
change_directory_command = 'tcd', -- command to change directory (e.g. lcd for NvimTree)
|
||||
|
|
|
|||
Loading…
Reference in New Issue