1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-04 23:40:32 +00:00

Compare commits

..

10 commits

Author SHA1 Message Date
5aa7a1b65a Nvim 0.8 2022-08-22 00:09:10 +02:00
b96d03cc30 Fix typo from upstream 2022-08-21 23:11:49 +02:00
701986908c Add background color to notify 2022-08-21 22:50:53 +02:00
36cca94dd9 Lighter color for unfocused window 2022-08-21 22:45:49 +02:00
86ccea8c34 Add highlighting 2022-08-21 22:38:29 +02:00
105006d7c2 Add icon picker 2022-08-21 22:37:40 +02:00
4deb488d1e Use dprint for Markdown 2022-08-21 21:04:46 +02:00
bdcd9a84f5 Show ignored by git 2022-08-21 21:04:31 +02:00
875b6409d0 Ignore nodejs 2022-08-21 21:04:21 +02:00
929339bb4c Add scss grammer 2022-08-21 21:04:16 +02:00
10 changed files with 50 additions and 6 deletions

View file

@ -42,3 +42,8 @@ set("n", "<space>b", telescope_builtin.resume, opts)
-- LSP
set("n", "<space>h", vim.lsp.buf.hover, opts)
-- Icon picker
set("n", "<Leader>e", "<cmd>IconPickerNormal symbols emoji<cr>", opts)
set("n", "<Leader>y", "<cmd>IconPickerYank symbols emoji<cr>", opts)
set("i", "<C-e>", "<cmd>IconPickerInsert symbols emoji<cr>", opts)

View file

@ -2,6 +2,8 @@ local o = vim.o
--
o.mouse = ""
o.expandtab = true
o.tabstop = 4
o.shiftwidth = 4

View file

@ -67,6 +67,14 @@ return require("packer").startup({
},
})
-- Icon picker
use({
"ziontee113/icon-picker.nvim",
requires = {
"stevearc/dressing.nvim",
},
})
-- Treesitter
use({
"nvim-treesitter/nvim-treesitter",

View file

@ -0,0 +1,3 @@
require("icon-picker").setup({
disable_legacy_commands = true,
})

View file

@ -17,8 +17,7 @@ local function format_on_save(client, bufnr)
group = formatting_augroup,
buffer = bufnr,
callback = function()
-- NOTE: On 0.8, use vim.lsp.buf.format({ bufnr = bufnr }) instead
vim.lsp.buf.formatting_sync(nil, 60000)
vim.lsp.buf.format({ bufnr = bufnr, timeout_ms = 60000 })
end,
})
end
@ -79,8 +78,18 @@ null_ls.setup({
null_ls.builtins.formatting.djhtml,
null_ls.builtins.formatting.fish_indent,
null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.dprint.with({
filetypes = {
"markdown",
},
extra_args = {
"$FILENAME",
},
}),
null_ls.builtins.formatting.nginx_beautifier,
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.prettier.with({
disabled_filetypes = { "markdown" },
}),
null_ls.builtins.formatting.shellharden,
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.taplo,

View file

@ -1 +1,7 @@
vim.notify = require("notify")
local notify = require("notify")
notify.setup({
background_colour = "#1e1e1e",
})
vim.notify = notify

View file

@ -17,4 +17,7 @@ require("nvim-tree").setup({
filesystem_watchers = {
enable = true,
},
git = {
ignore = false,
},
})

View file

@ -5,12 +5,16 @@ onedarkpro.setup({
colors = {
onedark = {
bg = "#1e1e1e",
color_column = "#000000", -- For unfocussed
color_column = "#1b1b1b", -- For unfocused
},
},
options = {
bold = true,
italic = true,
underline = true,
undercurl = true,
cursorline = true,
window_unfocussed_color = true,
window_unfocused_color = true,
},
})

View file

@ -14,6 +14,7 @@ require("nvim-treesitter.configs").setup({
"lua",
"python",
"rust",
"scss",
"sql",
"toml",
"yaml",

View file

@ -16,6 +16,9 @@ disabled = true
[rust]
disabled = true
[nodejs]
disabled = true
[battery]
disabled = true