feat: add toggleterm, markdown preview keymaps, lualine switch filename and navic (#23)

- Configured toggleterm plugin
- Added keymap for markdown preview
- Changed lualine so Navic is better readable by switching filename and
type with Navic.
This commit is contained in:
Roel de Cort 2024-08-20 00:03:30 +02:00 committed by GitHub
parent 864f443364
commit 0331a50aa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 105 additions and 16 deletions

View file

@ -1,7 +1,7 @@
_: {
plugins.navic = {
enable = true;
separator = " ";
separator = " ";
highlight = true;
depthLimit = 5;
lsp = {

View file

@ -1,7 +1,7 @@
_: {
plugins.luasnip = {
enable = true;
extraConfig = {
settings = {
enable_autosnippets = true;
store_selection_keys = "<Tab>";
};

View file

@ -46,6 +46,11 @@ _: {
};
};
}
{
name = "navic";
}
];
lualine_x = [
{
name = "filetype";
extraConfig = {
@ -63,11 +68,6 @@ _: {
path = 1;
};
}
];
lualine_x = [
{
name = "navic";
}
{
name.__raw = ''
function()

View file

@ -15,4 +15,15 @@ _: {
};
};
};
keymaps = [
{
mode = "n";
key = "<leader>mp";
action = "<cmd>MarkdownPreview<cr>";
options = {
desc = "Toggle Markdown Preview";
};
}
];
}

View file

@ -0,0 +1,42 @@
_: {
plugins.toggleterm = {
enable = true;
settings = {
size = 20;
};
};
keymaps = [
{
mode = "n";
key = "<leader>t";
action = "<cmd>ToggleTerm<cr>";
options = {
desc = "Toggle Terminal Window";
};
}
{
mode = "n";
key = "<leader>tv";
action = "<cmd>ToggleTerm direction=vertical<cr>";
options = {
desc = "Toggle Vertical Terminal Window";
};
}
{
mode = "n";
key = "<leader>th";
action = "<cmd>ToggleTerm direction=horizontal<cr>";
options = {
desc = "Toggle Horizontal Terminal Window";
};
}
{
mode = "n";
key = "<leader>tf";
action = "<cmd>ToggleTerm direction=float<cr>";
options = {
desc = "Toggle Floating Terminal Window";
};
}
];
}