diff options
Diffstat (limited to 'nvim/plugins')
| -rw-r--r-- | nvim/plugins/comment.lua | 1 | ||||
| -rw-r--r-- | nvim/plugins/lualine/default.nix | 6 | ||||
| -rw-r--r-- | nvim/plugins/lualine/init.lua | 6 | ||||
| -rw-r--r-- | nvim/plugins/lualine/theme.nix | 15 | ||||
| -rw-r--r-- | nvim/plugins/nvim-tree.lua | 13 |
5 files changed, 41 insertions, 0 deletions
diff --git a/nvim/plugins/comment.lua b/nvim/plugins/comment.lua new file mode 100644 index 0000000..9086261 --- /dev/null +++ b/nvim/plugins/comment.lua @@ -0,0 +1 @@ +require("Comment").setup(); diff --git a/nvim/plugins/lualine/default.nix b/nvim/plugins/lualine/default.nix new file mode 100644 index 0000000..b6be39e --- /dev/null +++ b/nvim/plugins/lualine/default.nix @@ -0,0 +1,6 @@ +config: + +'' +${import ./theme.nix config} +${builtins.readFile ./init.lua} +'' diff --git a/nvim/plugins/lualine/init.lua b/nvim/plugins/lualine/init.lua new file mode 100644 index 0000000..36acda4 --- /dev/null +++ b/nvim/plugins/lualine/init.lua @@ -0,0 +1,6 @@ +require("lualine").setup { + options = { + globalstatus = true, + theme = theme + } +} diff --git a/nvim/plugins/lualine/theme.nix b/nvim/plugins/lualine/theme.nix new file mode 100644 index 0000000..26c420e --- /dev/null +++ b/nvim/plugins/lualine/theme.nix @@ -0,0 +1,15 @@ +config: + +with config.lib.stylix.colors.withHashtag; +'' +local theme = { + normal = { + a = { fg = "${base07}", bg = "${base0D}", gui = "bold" }, + b = { fg = "${base05}", bg = "${base01}" }, + c = { fg = "${base03}", bg = "${base00}" }, + }, + insert = { a = { fg = "${base07}", bg = "${base0B}", gui = "bold" } }, + visual = { a = { fg = "${base07}", bg = "${base0C}", gui = "bold" } }, + replace = { a = { fg = "${base07}", bg = "${base08}", gui = "bold" } }, + command = { a = { fg = "${base07}", bg = "${base0A}", gui = "bold" } }, +}'' diff --git a/nvim/plugins/nvim-tree.lua b/nvim/plugins/nvim-tree.lua new file mode 100644 index 0000000..1aa2e6e --- /dev/null +++ b/nvim/plugins/nvim-tree.lua @@ -0,0 +1,13 @@ +require("nvim-tree").setup { + filters = { + enable = false + }, + renderer = { + indent_markers = { + enable = true + }, + root_folder_label = function(path) + return vim.fn.fnamemodify(path, ":t") + end + } +} |
