Skip to content

Commit b90a2dd

Browse files
authored
Merge pull request #10 from john-mutuma/continous_improvements
Continous improvements
2 parents 3f57162 + 893b478 commit b90a2dd

File tree

9 files changed

+267
-121
lines changed

9 files changed

+267
-121
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ when opening a conflicted file within lazygit `:LazyGit` UI
5050

5151
## Useful keyboard mappings/shortcuts and useful commands to use the IDE like a pro
5252

53-
### Normal mode
53+
The `<leader>` key is `,` by default
5454

55-
The `<leader>` key is set to `,` by default
55+
### Normal mode
5656

5757
- `<leader>tr` - Toggle right panel
5858
- `<leader>DD` - Toggle dark theme
@@ -63,7 +63,7 @@ The `<leader>` key is set to `,` by default
6363
- `<C-p>` - Searches MRU files with CtrlP
6464
- `<C-f>f` - Searches git files ,. mnemonic: find files
6565
- `<C-f>Y` - Searches git branches with ,. mnemonic: find Y (branch sign)
66-
- `<C-f>b` - Searches recently opened buffers,. mnemonic: find buffers
66+
- `<C-f>b` - Searches for buffers opened recently,. mnemonic: find buffers
6767
- `:Rg <search-term>` - fuzzy search for a term in the project. `<search-term>`
6868
can be a regular expression to search powerfully. uses
6969
[Ripgrep](https://github.com/BurntSushi/ripgrep) with [FZF](https://github.com/junegunn/fzf)
@@ -98,7 +98,7 @@ The `<leader>` key is set to `,` by default
9898

9999
- `:LazyGit` - open embedded lazygit
100100
- `<leader>G` - open embedded lazygit
101-
- `:G` - open vim-fugitive git status window. A git repo alternatively to lazygit
101+
- `:G` - open vim-fugitive git status window. A git repo alternative to lazygit
102102

103103
### Others
104104

@@ -109,11 +109,11 @@ The `<leader>` key is set to `,` by default
109109
## Screenshots (carbonfox colorscheme)
110110

111111
Definitions and References provided by language servers
112-
<img width="1792" alt="Screenshot 2021-11-11 at 19 09 49" src="./examples/Workspace3.png">
112+
![image](examples/Workspace3.png)
113113

114114
Embedded lazygit view
115115

116-
<img width="1792" alt="Screenshot 2021-11-11 at 19 09 49" src="./examples/Workspace4.png">
116+
![image](examples/Workspace4.png)
117117

118118
## Advanced
119119

examples/CSS.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.background {
2+
background-color: #f1f1f1;
3+
padding: 20px;
4+
border-radius: 10px;
5+
margin-top: 20px;
6+
}
7+
8+
.container {
9+
background-color: #fff;
10+
padding: 20px;
11+
border-radius: 10px;
12+
margin-top: 20px;
13+
}
14+
15+
#form {
16+
margin-top: 20px;
17+
}
18+
19+
.btn,
20+
.btn2 {
21+
background-color: #4caf50;
22+
color: white;
23+
padding: 10px 20px;
24+
border: none;
25+
border-radius: 5px;
26+
cursor: pointer;
27+
}
28+
29+
.btn2 {
30+
background-color: #f44336;
31+
}
32+
33+
.btn:hover,
34+
.btn2:hover {
35+
background-color: #45a049;
36+
}
37+
38+
.overlay {
39+
position: fixed;
40+
top: 0;
41+
bottom: 0;
42+
left: 0;
43+
right: 0;
44+
background: rgba(0, 0, 0, 0.7);
45+
transition: opacity 500ms;
46+
visibility: hidden;
47+
opacity: 0;
48+
display: flex;
49+
justify-content: center;
50+
align-items: center;
51+
}

examples/JAVA.java

Lines changed: 73 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,79 @@
11
public class AccountData {
2-
3-
public List<Monthly_Financial_Account_Data__c> createNewFinincial(String dateId){
4-
// add the latest date to the balances latest date
5-
List<Monthly_Financial_Account_Data__c> subList = new List<Monthly_Financial_Account_Data__c>();
6-
if(financialAccountDataList != null && !financialAccountDataList.isEmpty()){
7-
for(Monthly_Financial_Account_Data__c monthlyAcount : financialAccountDataList) {
8-
Monthly_Financial_Account_Data__c financialAccount;
9-
financialAccount = new Monthly_Financial_Account_Data__c();
10-
financialAccount.User_Updated__c = false;
11-
financialAccount.Copy_Forward__c = true;
12-
financialAccount.Previous_Month__c = monthlyAcount.Id;
13-
financialAccount.Current_Balance__c = monthlyAcount.Current_Balance__c;
14-
financialAccount.Financial_Accounts__c = monthlyAcount.Financial_Accounts__r.Id;
15-
financialAccount.Interest_Rate__c = monthlyAcount.Interest_Rate__c;
16-
financialAccount.CC_Limit_Orig_Loan_Amt__c = monthlyAcount.CC_Limit_Orig_Loan_Amt__c;
17-
financialAccount.Date__c = dateId;
18-
financialAccount.Name = monthlyAcount.Name;
19-
financialAccount.Subtype__c = monthlyAcount.Subtype__c;
20-
financialAccount.Productive_Debt__c = monthlyAcount.Productive_Debt__c;
21-
financialAccount.Urgent_Debt__c = monthlyAcount.Urgent_Debt__c;
22-
financialAccount.Collections_Charge_offs__c = monthlyAcount.Collections_Charge_offs__c;
23-
financialAccount.RecordTypeId = monthlyAcount.RecordTypeId;
24-
financialAccount.Record_Type_Name__c = monthlyAcount.Record_Type_Name__c;
25-
financialAccount.Monthly_Minimum_Payment__c = monthlyAcount.Monthly_Minimum_Payment__c;
26-
financialAccount.Deposits__c = null;
27-
subList.add(financialAccount);
28-
}
29-
}
30-
return subList;
2+
3+
public List<Monthly_Financial_Account_Data__c>
4+
createNewFinincial(String dateId) {
5+
// add the latest date to the balances latest date
6+
List<Monthly_Financial_Account_Data__c> subList =
7+
new List<Monthly_Financial_Account_Data__c>();
8+
if (financialAccountDataList != null &&
9+
!financialAccountDataList.isEmpty()) {
10+
for (Monthly_Financial_Account_Data__c monthlyAcount :
11+
financialAccountDataList) {
12+
Monthly_Financial_Account_Data__c financialAccount;
13+
financialAccount = new Monthly_Financial_Account_Data__c();
14+
financialAccount.User_Updated__c = false;
15+
financialAccount.Copy_Forward__c = true;
16+
financialAccount.Previous_Month__c = monthlyAcount.Id;
17+
financialAccount.Current_Balance__c = monthlyAcount.Current_Balance__c;
18+
financialAccount.Financial_Accounts__c =
19+
monthlyAcount.Financial_Accounts__r.Id;
20+
financialAccount.Interest_Rate__c = monthlyAcount.Interest_Rate__c;
21+
financialAccount.CC_Limit_Orig_Loan_Amt__c =
22+
monthlyAcount.CC_Limit_Orig_Loan_Amt__c;
23+
financialAccount.Date__c = dateId;
24+
financialAccount.Name = monthlyAcount.Name;
25+
financialAccount.Subtype__c = monthlyAcount.Subtype__c;
26+
financialAccount.Productive_Debt__c = monthlyAcount.Productive_Debt__c;
27+
financialAccount.Urgent_Debt__c = monthlyAcount.Urgent_Debt__c;
28+
financialAccount.Collections_Charge_offs__c =
29+
monthlyAcount.Collections_Charge_offs__c;
30+
financialAccount.RecordTypeId = monthlyAcount.RecordTypeId;
31+
financialAccount.Record_Type_Name__c =
32+
monthlyAcount.Record_Type_Name__c;
33+
financialAccount.Monthly_Minimum_Payment__c =
34+
monthlyAcount.Monthly_Minimum_Payment__c;
35+
financialAccount.Deposits__c = null;
36+
subList.add(financialAccount);
37+
}
3138
}
39+
return subList;
40+
}
3241

33-
public List<Monthly_Budget_Data__c> createNewBudgetFinincial(String dateId){
34-
// add the latest date to the balances latest date
35-
List<Monthly_Budget_Data__c> subList = new List<Monthly_Budget_Data__c>();
36-
if(budgetDataList != null && !budgetDataList.isEmpty()){
37-
for(Monthly_Budget_Data__c monthlyBudget : budgetDataList) {
38-
if(monthlyBudget.Income_Frequency__c != "One-Time/Non-Recurring") {
39-
Monthly_Budget_Data__c budgetAccount;
40-
budgetAccount = new Monthly_Budget_Data__c();
41-
budgetAccount.Budgets__c = monthlyBudget.Budgets__r.Id;
42-
budgetAccount.User_Updated__c = false;
43-
budgetAccount.Previous_Month__c = monthlyBudget.Id;
44-
budgetAccount.Copy_Forward__c = true;
45-
budgetAccount.Gross_Amount__c = monthlyBudget.Gross_Amount__c;
46-
budgetAccount.Monthly_Actual_Amount__c = monthlyBudget.Monthly_Actual_Amount__c;
47-
budgetAccount.RecordTypeId = monthlyBudget.RecordTypeId;
48-
budgetAccount.Name = monthlyBudget.Name;
49-
budgetAccount.Savings_Goal_Due_Date__c = monthlyBudget.Savings_Goal_Due_Date__c;
50-
budgetAccount.Date__c = dateId;
51-
budgetAccount.Take_Home_Amount__c = monthlyBudget.Take_Home_Amount__c;
52-
budgetAccount.Income_Frequency__c = monthlyBudget.Income_Frequency__c;
53-
budgetAccount.Monthly_Expected_Amount__c = monthlyBudget.Monthly_Expected_Amount__c;
54-
budgetAccount.Record_Type_Name__c = monthlyBudget.Record_Type_Name__c;
55-
budgetAccount.Savings_Goal_Amount__c = monthlyBudget.Savings_Goal_Amount__c;
56-
budgetAccount.Total_Amount_Saved_for_Goal__c = monthlyBudget.Total_Amount_Saved_for_Goal__c;
57-
budgetAccount.Target_Monthly_Savings__c = monthlyBudget.Target_Monthly_Savings__c;
58-
subList.add(budgetAccount);
59-
}
60-
}
42+
public List<Monthly_Budget_Data__c> createNewBudgetFinincial(String dateId) {
43+
// add the latest date to the balances latest date
44+
List<Monthly_Budget_Data__c> subList = new List<Monthly_Budget_Data__c>();
45+
if (budgetDataList != null && !budgetDataList.isEmpty()) {
46+
for (Monthly_Budget_Data__c monthlyBudget : budgetDataList) {
47+
if (monthlyBudget.Income_Frequency__c != "One-Time/Non-Recurring") {
48+
Monthly_Budget_Data__c budgetAccount;
49+
budgetAccount = new Monthly_Budget_Data__c();
50+
budgetAccount.Budgets__c = monthlyBudget.Budgets__r.Id;
51+
budgetAccount.User_Updated__c = false;
52+
budgetAccount.Previous_Month__c = monthlyBudget.Id;
53+
budgetAccount.Copy_Forward__c = true;
54+
budgetAccount.Gross_Amount__c = monthlyBudget.Gross_Amount__c;
55+
budgetAccount.Monthly_Actual_Amount__c =
56+
monthlyBudget.Monthly_Actual_Amount__c;
57+
budgetAccount.RecordTypeId = monthlyBudget.RecordTypeId;
58+
budgetAccount.Name = monthlyBudget.Name;
59+
budgetAccount.Savings_Goal_Due_Date__c =
60+
monthlyBudget.Savings_Goal_Due_Date__c;
61+
budgetAccount.Date__c = dateId;
62+
budgetAccount.Take_Home_Amount__c = monthlyBudget.Take_Home_Amount__c;
63+
budgetAccount.Income_Frequency__c = monthlyBudget.Income_Frequency__c;
64+
budgetAccount.Monthly_Expected_Amount__c =
65+
monthlyBudget.Monthly_Expected_Amount__c;
66+
budgetAccount.Record_Type_Name__c = monthlyBudget.Record_Type_Name__c;
67+
budgetAccount.Savings_Goal_Amount__c =
68+
monthlyBudget.Savings_Goal_Amount__c;
69+
budgetAccount.Total_Amount_Saved_for_Goal__c =
70+
monthlyBudget.Total_Amount_Saved_for_Goal__c;
71+
budgetAccount.Target_Monthly_Savings__c =
72+
monthlyBudget.Target_Monthly_Savings__c;
73+
subList.add(budgetAccount);
6174
}
62-
return subList;
75+
}
6376
}
64-
77+
return subList;
78+
}
6579
}
66-

examples/csharp.cs

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
public class AccountData {
2+
3+
public List<Monthly_Financial_Account_Data__c>
4+
createNewFinincial(String dateId) {
5+
// add the latest date to the balances latest date
6+
List<Monthly_Financial_Account_Data__c> subList =
7+
new List<Monthly_Financial_Account_Data__c>();
8+
if (financialAccountDataList != null &&
9+
!financialAccountDataList.isEmpty()) {
10+
for (Monthly_Financial_Account_Data__c
11+
monthlyAcount: financialAccountDataList) {
12+
Monthly_Financial_Account_Data__c financialAccount;
13+
financialAccount = new Monthly_Financial_Account_Data__c();
14+
financialAccount.User_Updated__c = false;
15+
financialAccount.Copy_Forward__c = true;
16+
financialAccount.Previous_Month__c = monthlyAcount.Id;
17+
financialAccount.Current_Balance__c = monthlyAcount.Current_Balance__c;
18+
financialAccount.Financial_Accounts__c =
19+
monthlyAcount.Financial_Accounts__r.Id;
20+
financialAccount.Interest_Rate__c = monthlyAcount.Interest_Rate__c;
21+
financialAccount.CC_Limit_Orig_Loan_Amt__c =
22+
monthlyAcount.CC_Limit_Orig_Loan_Amt__c;
23+
financialAccount.Date__c = dateId;
24+
financialAccount.Name = monthlyAcount.Name;
25+
financialAccount.Subtype__c = monthlyAcount.Subtype__c;
26+
financialAccount.Productive_Debt__c = monthlyAcount.Productive_Debt__c;
27+
financialAccount.Urgent_Debt__c = monthlyAcount.Urgent_Debt__c;
28+
financialAccount.Collections_Charge_offs__c =
29+
monthlyAcount.Collections_Charge_offs__c;
30+
financialAccount.RecordTypeId = monthlyAcount.RecordTypeId;
31+
financialAccount.Record_Type_Name__c =
32+
monthlyAcount.Record_Type_Name__c;
33+
financialAccount.Monthly_Minimum_Payment__c =
34+
monthlyAcount.Monthly_Minimum_Payment__c;
35+
financialAccount.Deposits__c = null;
36+
subList.add(financialAccount);
37+
}
38+
}
39+
return subList;
40+
}
41+
42+
public List<Monthly_Budget_Data__c> createNewBudgetFinincial(String dateId) {
43+
// add the latest date to the balances latest date
44+
List<Monthly_Budget_Data__c> subList = new List<Monthly_Budget_Data__c>();
45+
if (budgetDataList != null && !budgetDataList.isEmpty()) {
46+
for (Monthly_Budget_Data__c monthlyBudget: budgetDataList) {
47+
48+
if (monthlyBudget.Income_Frequency__c != "One-Time/Non-Recurring") {
49+
Monthly_Budget_Data__c budgetAccount;
50+
budgetAccount = new Monthly_Budget_Data__c();
51+
budgetAccount.Budgets__c = monthlyBudget.Budgets__r.Id;
52+
budgetAccount.User_Updated__c = false;
53+
budgetAccount.Previous_Month__c = monthlyBudget.Id;
54+
budgetAccount.Copy_Forward__c = true;
55+
budgetAccount.Gross_Amount__c = monthlyBudget.Gross_Amount__c;
56+
budgetAccount.Monthly_Actual_Amount__c =
57+
monthlyBudget.Monthly_Actual_Amount__c;
58+
budgetAccount.RecordTypeId = monthlyBudget.RecordTypeId;
59+
budgetAccount.Name = monthlyBudget.Name;
60+
budgetAccount.Savings_Goal_Due_Date__c =
61+
monthlyBudget.Savings_Goal_Due_Date__c;
62+
budgetAccount.Date__c = dateId;
63+
budgetAccount.Take_Home_Amount__c = monthlyBudget.Take_Home_Amount__c;
64+
budgetAccount.Income_Frequency__c = monthlyBudget.Income_Frequency__c;
65+
budgetAccount.Monthly_Expected_Amount__c =
66+
monthlyBudget.Monthly_Expected_Amount__c;
67+
budgetAccount.Record_Type_Name__c = monthlyBudget.Record_Type_Name__c;
68+
budgetAccount.Savings_Goal_Amount__c =
69+
monthlyBudget.Savings_Goal_Amount__c;
70+
budgetAccount.Total_Amount_Saved_for_Goal__c =
71+
monthlyBudget.Total_Amount_Saved_for_Goal__c;
72+
budgetAccount.Target_Monthly_Savings__c =
73+
monthlyBudget.Target_Monthly_Savings__c;
74+
subList.add(budgetAccount);
75+
}
76+
}
77+
}
78+
return subList;
79+
}
80+
}

v2/nvim/init.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ require("johnmutuma.plugins.bufferline")
99
require("johnmutuma.plugins.lualine")
1010
require("johnmutuma.plugins.nvim-cmp")
1111
require("johnmutuma.plugins.telescope")
12-
-- swap order to toggle <C-n> handler
13-
require("johnmutuma.plugins.nerdtree")
12+
-- require("johnmutuma.plugins.nerdtree")
1413
require("johnmutuma.plugins.nvim-tree")
1514

1615
-- - LSP
@@ -20,7 +19,7 @@ require("johnmutuma.plugins.lsp.coc-nvim")
2019
require("johnmutuma.plugins.lsp.lspsaga")
2120
require("johnmutuma.plugins.lsp.lsp-lens")
2221
require("johnmutuma.plugins.lsp.gitsigns")
23-
require("johnmutuma.plugins.lsp.null-ls") -- now called none-ls.nvim
22+
require("johnmutuma.plugins.lsp.null-ls") -- now uses none-ls.nvim
2423
require("johnmutuma.plugins.dap.nvim-dap-ui")
2524
require("johnmutuma.plugins.dap.nvim-dap")
2625
require("johnmutuma.plugins.lazygit")

v2/nvim/lua/johnmutuma/core/colorscheme.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ local success_colorscheme, _ = pcall(vim.cmd, "colorscheme carbonfox")
2626
-- local success_colorscheme, _ = pcall(vim.cmd, "colorscheme dawnfox")
2727

2828
if not success_colorscheme then
29-
print("Colorscheme not found")
30-
return
29+
print("Colorscheme not found")
30+
return
3131
end

v2/nvim/lua/johnmutuma/core/keymaps.lua

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,8 @@ keymap.set("n", "k", "gk")
3131
keymap.set("n", "<leader>ww", ":noautocmd w<CR>")
3232
keymap.set("n", "<leader>w<CR>", ":noautocmd w<CR>")
3333

34-
-- Plugins mappings
35-
-- -- telescope
36-
local builtin = require("telescope.builtin")
37-
-- keymap.set("n", "<C-F>f", builtin.find_files, {})
38-
-- keymap.set("n", "<C-F>s", builtin.live_grep, {})
39-
-- keymap.set("n", "<C-F>b", builtin.buffers, {})
40-
keymap.set("n", "<C-F>h", builtin.help_tags, {})
41-
keymap.set("n", "<C-F>y", ":GBranches<CR>", {})
42-
-- keymap.set("n", "<C-F>y", builtin.git_branches, {})
43-
4434
-- fzf.vim
4535
keymap.set("n", "<C-F>f", ":GFiles<CR>", {})
36+
keymap.set("n", "<C-F>y", ":GBranches<CR>", {})
4637
keymap.set("n", "<C-F>s", "Rg ", {})
4738
keymap.set("n", "<C-F>b", ":Buffers<CR>", {})

0 commit comments

Comments
 (0)