Skip to content

Commit

Permalink
Fixed toggleterm plugin
Browse files Browse the repository at this point in the history
toggleterm was never being required by plugin_config/init.lua
toggleterm has been removed from plugins folder where nvim runs scripts on startup
toggleterm has been added back to plugin_config
  • Loading branch information
kevinfengcs88 committed Mar 18, 2023
1 parent 99fe53c commit 2476354
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ This repository contains my Neovim config, which is written in Lua. It uses pack
- When setting the style for material.nvim, the style **MUST** come before enabling the colorscheme, otherwise, a manual `:source %` is required to apply the new style
- If installing the Lua language server with Mason for the first time, change "sumneko_lua" to "lua_ls"
- When installing certain LSPs like pyright, npm must be installed first through terminal (just run `sudo apt install nodejs npm`
- The toggleterm plugin does **not** function properly without being in the `~/.config/nvim/plugin` directory
- It does not need to be in the `lua/v9/plugin_config` directory (you can add it just for modularity's sake, but it does not impact functionality)
- Make sure to add the languages that you are working with in `treesitter.lua`, otherwise their syntax highlighting will be suboptimal

## Linux tips/miscellaneous tips
Expand Down
11 changes: 8 additions & 3 deletions lua/v9/keymaps.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
local set = vim.opt
local keymap = vim.keymap

vim.wo.number = true
keymap.mapleader = ';'
keymap.maplocalleader = ';'

vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.wo.number = true

set.backspace = '2'
set.showcmd = true
Expand All @@ -16,3 +17,7 @@ set.tabstop = 2
set.shiftwidth = 2
set.shiftround = true
set.expandtab = true

keymap.set('n', '<leader>w', ':write<CR>')


1 change: 1 addition & 0 deletions lua/v9/plugin_config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ require("v9.plugin_config.telescope")
require("v9.plugin_config.treesitter")
require("v9.plugin_config.lsp_config")
require("v9.plugin_config.completions")
require("v9.plugin_config.toggleterm")
File renamed without changes.

0 comments on commit 2476354

Please sign in to comment.