Mercurial > dotfiles
comparison dot_config/nvim/config.lua @ 363:db80c8ac727d
Add nonicons for nicer status lines
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 16 Mar 2021 12:23:12 +0100 |
parents | c2c870fb8095 |
children | f300ef1bc475 |
comparison
equal
deleted
inserted
replaced
362:c2c870fb8095 | 363:db80c8ac727d |
---|---|
154 'nvim-lua/popup.nvim', | 154 'nvim-lua/popup.nvim', |
155 'nvim-lua/plenary.nvim' | 155 'nvim-lua/plenary.nvim' |
156 } | 156 } |
157 } | 157 } |
158 | 158 |
159 -- Vanity | |
160 use { | |
161 'yamatsum/nvim-web-nonicons', | |
162 requires = 'kyazdani42/nvim-web-devicons', | |
163 config = function() | |
164 require'nvim-nonicons' | |
165 end | |
166 } | |
167 | |
159 use { | 168 use { |
160 'glepnir/galaxyline.nvim', | 169 'glepnir/galaxyline.nvim', |
161 branch = 'main', | 170 branch = 'main', |
162 -- your statusline | 171 -- your statusline |
163 config = function() | 172 config = function() |
174 highlight = {colors.blue,colors.bg} | 183 highlight = {colors.blue,colors.bg} |
175 }, | 184 }, |
176 } | 185 } |
177 | 186 |
178 gls.left[2] = { | 187 gls.left[2] = { |
188 FileIcon = { | |
189 provider = 'FileIcon', | |
190 condition = condition.buffer_not_empty, | |
191 highlight = {require('galaxyline.provider_fileinfo').get_file_icon_color, colors.bg}, | |
192 }, | |
193 } | |
194 | |
195 gls.left[3] = { | |
179 FileName = { | 196 FileName = { |
180 provider = 'FileName', | 197 provider = 'FileName', |
181 condition = condition.buffer_not_empty, | 198 condition = condition.buffer_not_empty, |
182 highlight = {colors.magenta,colors.bg,'bold'} | 199 highlight = {colors.magenta,colors.bg,'bold'} |
183 } | 200 } |
184 } | 201 } |
185 | 202 |
186 | 203 |
187 gls.left[5] = { | 204 gls.left[4] = { |
188 DiagnosticError = { | 205 DiagnosticError = { |
189 provider = 'DiagnosticError', | 206 provider = 'DiagnosticError', |
190 icon = ' ', | 207 icon = ' ', |
191 highlight = {colors.red,colors.bg} | 208 highlight = {colors.red,colors.bg} |
192 } | 209 } |
200 if tbl[vim.bo.filetype] then | 217 if tbl[vim.bo.filetype] then |
201 return false | 218 return false |
202 end | 219 end |
203 return true | 220 return true |
204 end, | 221 end, |
205 icon = ' LSP:', | 222 icon = require'nvim-nonicons'.get('server') .. ' LSP:', |
206 highlight = {colors.green,colors.bg,'bold'} | 223 highlight = {colors.green,colors.bg,'bold'} |
207 } | 224 } |
208 } | 225 } |
209 | 226 |
210 gls.right[2] = { | 227 gls.right[2] = { |