diff --git a/README.md b/README.md index e104592..399c6ad 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,4 @@ nix run git+https://git.sajenim.dev/jasmine/nvim.nix.git ## References * [dc-tec/nixvim](https://github.com/dc-tec/nixvim) -* [elythh/nixvim](https://github.com/elythh/nixvim) + diff --git a/config/plugins/git/gitsigns.nix b/config/plugins/git/gitsigns.nix index 010f9dd..8b2e57d 100644 --- a/config/plugins/git/gitsigns.nix +++ b/config/plugins/git/gitsigns.nix @@ -4,107 +4,5 @@ plugins.gitsigns = { enable = true; }; - - keymaps = [ - { - mode = [ "n" "v" ]; - key = "hs"; - action = "Gitsigns stage_hunk"; - options = { - silent = true; - desc = "Stage Hunk"; - }; - } - - { - mode = [ "n" "v" ]; - key = "hr"; - action = "Gitsigns reset_hunk"; - options = { - silent = true; - desc = "Reset Hunk"; - }; - } - - { - mode = "n"; - key = "hS"; - action = "Gitsigns stage_buffer"; - options = { - silent = true; - desc = "Stage Buffer"; - }; - } - - { - mode = "n"; - key = "hu"; - action = "Gitsigns undo_stage_hunk"; - options = { - silent = true; - desc = "Undo Staged Hunk"; - }; - } - - { - mode = "n"; - key = "hR"; - action = "Gitsigns reset_buffer"; - options = { - silent = true; - desc = "Reset Buffer"; - }; - } - - { - mode = "n"; - key = "hp"; - action = "Gitsigns preview_hunk_inline"; - options = { - silent = true; - desc = "Preview Hunk"; - }; - } - - { - mode = "n"; - key = "hb"; - action = "Gitsigns blame"; - options = { - silent = true; - desc = "View Blame"; - }; - } - - { - mode = "n"; - key = "tb"; - action = "Gitsigns toggle_current_line_blame"; - options = { - silent = true; - desc = "Toggle Blame"; - }; - } - - { - mode = "n"; - key = "hd"; - action = "Gitsigns diffthis"; - options = { - silent = true; - desc = "View Diff"; - }; - } - - { - mode = "n"; - key = "td"; - action = "Gitsigns toggle_deleted"; - options = { - silent = true; - desc = "Toggle Deleted"; - }; - } - ]; } diff --git a/config/plugins/ui/lualine.nix b/config/plugins/ui/lualine.nix index 49be531..c52baf7 100644 --- a/config/plugins/ui/lualine.nix +++ b/config/plugins/ui/lualine.nix @@ -16,11 +16,7 @@ sectionSeparators = { left = ""; right = ""; }; # Display components in tabline - tabline = { - lualine_a = [ { name = "buffers"; } ]; - lualine_x = [ { name = "hostname"; } ]; - lualine_z = [ { name = "encoding"; } ]; - }; + tabline.lualine_a = [ { name = "buffers"; } ]; # Lualine has sections as shown below # +-------------------------------------------------+ @@ -28,7 +24,7 @@ # +-------------------------------------------------+ sections = { # Section A - lualine_a = [ { name = "mode"; } ]; + lualine_a = [ { name = "mode"; icon = ""; } ]; # Section B lualine_b = [ @@ -38,32 +34,36 @@ # Git diff status { name = "diff"; extraConfig.symbols = { - added = "+"; - modified = "~"; - removed = "-"; + added = " "; + modified = " "; + removed = " "; }; } - ]; - # Section C - lualine_c = [ { name = "filename"; } ]; - - # Section X - lualine_x = [ # Diagnostic count from nvim_lsp { name = "diagnostics"; extraConfig = { sources = [ "nvim_lsp" ]; symbols = { - error = "error:"; - warn = "warning:"; - info = "info:"; - hint = "hint:"; + error = " "; + warn = " "; + info = " "; + hint = "󰝶 "; }; }; } ]; + # Section C + lualine_c = [ { name = "filename"; extraConfig = { path = 1; }; } ]; + + # Section X + lualine_x = [ + { name = "encoding"; } + { name = "fileformat"; } + { name = "filetype"; } + ]; + # Section Y lualine_y = [ { name = "progress"; } ]; diff --git a/config/plugins/utils/neoclip.nix b/config/plugins/utils/neoclip.nix deleted file mode 100644 index ff81c2f..0000000 --- a/config/plugins/utils/neoclip.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ pkgs, ... }: - -{ - extraPlugins = [(pkgs.vimUtils.buildVimPlugin { - name = "neoclip"; - src = pkgs.fetchFromGitHub { - owner = "AckslD"; - repo = "nvim-neoclip.lua"; - rev = "709c97f"; - hash = "sha256-8ZPmxVM4dzjJxAYUHRMCiAQBxZEGHtsgSCNlCZBRBWo="; - }; - })]; - - extraConfigLua = "require('neoclip').setup({ - default_register = {'\"', '+'} - })"; -} - diff --git a/config/plugins/utils/software-licenses.nix b/config/plugins/utils/software-licenses.nix deleted file mode 100644 index c3784ce..0000000 --- a/config/plugins/utils/software-licenses.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ pkgs, ... }: - -{ - extraPlugins = [(pkgs.vimUtils.buildVimPlugin { - name = "software-licenses"; - src = pkgs.fetchFromGitHub { - owner = "chip"; - repo = "telescope-software-licenses.nvim"; - rev = "fb5fc33"; - hash = "sha256-luyCjkZSm1F6qoRpP5hHRAx4632u6JFuX2s7m2s8y60="; - }; - })]; -} - diff --git a/config/plugins/utils/telescope.nix b/config/plugins/utils/telescope.nix index f261d60..745263b 100644 --- a/config/plugins/utils/telescope.nix +++ b/config/plugins/utils/telescope.nix @@ -1,63 +1,17 @@ { ... }: { - imports = [ - ./neoclip.nix # Persistent clipboard. - ./software-licenses.nix # View common software licenses. - ]; - plugins.telescope = { enable = true; - # Install some telescope extensions. - extensions = { - # Enable native fuzzy finder. - fzf-native = { - enable = true; - }; - }; - - # Configure our telescope keymaps. keymaps = { "ff" = { action = "find_files"; - options = { - desc = "Find project files"; - }; + options.desc = "Find Files"; }; "fb" = { action = "buffers"; - options = { - desc = "Find open buffers"; - }; - }; - "/" = { - action = "live_grep"; - options = { - desc = "Grep (root dir)"; - }; - }; - ":" = { - action = "command_history"; - options = { - desc = "Command History"; - }; - }; - "p" = { - action = "neoclip"; - options.desc = "Persistent Clipboard"; - }; - "sc" = { - action = "commands"; - options = { - desc = "Search Commands"; - }; - }; - "sl" = { - action = "software-licenses find"; - options = { - desc = "Search Software Licenses"; - }; + options.desc = "Buffers"; }; }; };