-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Follow the Vim script Style Guide by Google
Streamlined the Neovim setup by segregating configuration scripts into logically organized plugin files for easier management and maintenance. Enhanced the autoload functionality for improved startup times and clarified function namespacing. Extended EditorConfig to apply consistent coding styles to Vim script files. Additionally, refined the custom Neovim color theme and corrected a typo in the test functions comment. This restructure facilitates a more intuitive development environment and promotes best practices for future customizations.
- Loading branch information
Showing
8 changed files
with
30 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
" Copyright (c) 2024 MDSANIMA DEV. All rights reserved. | ||
" Licensed under the MIT license. | ||
|
||
" This file sets up the mdsanima functions for the Neovim. | ||
" Should be called by a specific function name. | ||
" Autoloaded functions. Autoloading allows functions to be loaded on | ||
" demand, which makes startuptime faster and enforces function namespacing. | ||
|
||
|
||
" Tesging function | ||
" Testing | ||
function mdsanima#hello() | ||
echo "Hello World" | ||
echo 'Hello World' | ||
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
" Copyright (c) 2024 MDSANIMA DEV. All rights reserved. | ||
" Licensed under the MIT license. | ||
|
||
" This is a initial configuration script for Neovim. | ||
" Repository: https://github.com/neovim/neovim/ | ||
" Initial configuration for Neovim. Other configs will be loaded automatically. | ||
|
||
|
||
" Base initial setup | ||
" Load color theme | ||
colorscheme mdsanima | ||
|
||
" Load configurations sources | ||
source $HOME/.config/nvim/settings.vim | ||
source $HOME/.config/nvim/keymaps.vim | ||
|
||
" Back to default terminal cursor style | ||
autocmd VimLeave * set guicursor=a:ver1-blinkon1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
" Copyright (c) 2024 MDSANIMA DEV. All rights reserved. | ||
" Licensed under the MIT license. | ||
|
||
" General autocommands. | ||
|
||
|
||
" Back to default terminal cursor style | ||
autocmd VimLeave * set guicursor=a:ver1-blinkon1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
" Copyright (c) 2024 MDSANIMA DEV. All rights reserved. | ||
" Licensed under the MIT license. | ||
|
||
" General commands. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
" Copyright (c) 2024 MDSANIMA DEV. All rights reserved. | ||
" Licensed under the MIT license. | ||
|
||
" This file sets up the keymaps for Neovim. | ||
" Should be sourced in the `init.vim` file. | ||
" Key mappings. | ||
|
||
|
||
" Keymaps | ||
" General | ||
map <C-S> :w<CR> " CTRL+S to Save file | ||
map <C-Q> :q<CR> " CTRL+Q to Quit file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters