diff --git a/README.md b/README.md index 8ace8b9b..2232c655 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lua/plugins_config/code_runner.lua b/lua/plugins_config/code_runner.lua index d134c11e..103cc938 100644 --- a/lua/plugins_config/code_runner.lua +++ b/lua/plugins_config/code_runner.lua @@ -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 &&', diff --git a/lua/plugins_config/lsp.lua b/lua/plugins_config/lsp.lua index 948a06f7..22893a14 100644 --- a/lua/plugins_config/lsp.lua +++ b/lua/plugins_config/lsp.lua @@ -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('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('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('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', diff --git a/lua/plugins_config/worktree.lua b/lua/plugins_config/worktree.lua index ddc1fab5..b85660e2 100644 --- a/lua/plugins_config/worktree.lua +++ b/lua/plugins_config/worktree.lua @@ -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)