mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-04 23:40:32 +00:00
Compare commits
10 commits
57e0c6148f
...
5aa7a1b65a
Author | SHA1 | Date | |
---|---|---|---|
5aa7a1b65a | |||
b96d03cc30 | |||
701986908c | |||
36cca94dd9 | |||
86ccea8c34 | |||
105006d7c2 | |||
4deb488d1e | |||
bdcd9a84f5 | |||
875b6409d0 | |||
929339bb4c |
10 changed files with 50 additions and 6 deletions
|
@ -42,3 +42,8 @@ set("n", "<space>b", telescope_builtin.resume, opts)
|
||||||
|
|
||||||
-- LSP
|
-- LSP
|
||||||
set("n", "<space>h", vim.lsp.buf.hover, opts)
|
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)
|
||||||
|
|
|
@ -2,6 +2,8 @@ local o = vim.o
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
|
o.mouse = ""
|
||||||
|
|
||||||
o.expandtab = true
|
o.expandtab = true
|
||||||
o.tabstop = 4
|
o.tabstop = 4
|
||||||
o.shiftwidth = 4
|
o.shiftwidth = 4
|
||||||
|
|
|
@ -67,6 +67,14 @@ return require("packer").startup({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Icon picker
|
||||||
|
use({
|
||||||
|
"ziontee113/icon-picker.nvim",
|
||||||
|
requires = {
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- Treesitter
|
-- Treesitter
|
||||||
use({
|
use({
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
|
3
.config/nvim/lua/plugins/icon-picker.lua
Normal file
3
.config/nvim/lua/plugins/icon-picker.lua
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
require("icon-picker").setup({
|
||||||
|
disable_legacy_commands = true,
|
||||||
|
})
|
|
@ -17,8 +17,7 @@ local function format_on_save(client, bufnr)
|
||||||
group = formatting_augroup,
|
group = formatting_augroup,
|
||||||
buffer = bufnr,
|
buffer = bufnr,
|
||||||
callback = function()
|
callback = function()
|
||||||
-- NOTE: On 0.8, use vim.lsp.buf.format({ bufnr = bufnr }) instead
|
vim.lsp.buf.format({ bufnr = bufnr, timeout_ms = 60000 })
|
||||||
vim.lsp.buf.formatting_sync(nil, 60000)
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -79,8 +78,18 @@ null_ls.setup({
|
||||||
null_ls.builtins.formatting.djhtml,
|
null_ls.builtins.formatting.djhtml,
|
||||||
null_ls.builtins.formatting.fish_indent,
|
null_ls.builtins.formatting.fish_indent,
|
||||||
null_ls.builtins.formatting.isort,
|
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.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.shellharden,
|
||||||
null_ls.builtins.formatting.stylua,
|
null_ls.builtins.formatting.stylua,
|
||||||
null_ls.builtins.formatting.taplo,
|
null_ls.builtins.formatting.taplo,
|
||||||
|
|
|
@ -1 +1,7 @@
|
||||||
vim.notify = require("notify")
|
local notify = require("notify")
|
||||||
|
|
||||||
|
notify.setup({
|
||||||
|
background_colour = "#1e1e1e",
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.notify = notify
|
||||||
|
|
|
@ -17,4 +17,7 @@ require("nvim-tree").setup({
|
||||||
filesystem_watchers = {
|
filesystem_watchers = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
git = {
|
||||||
|
ignore = false,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -5,12 +5,16 @@ onedarkpro.setup({
|
||||||
colors = {
|
colors = {
|
||||||
onedark = {
|
onedark = {
|
||||||
bg = "#1e1e1e",
|
bg = "#1e1e1e",
|
||||||
color_column = "#000000", -- For unfocussed
|
color_column = "#1b1b1b", -- For unfocused
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
|
bold = true,
|
||||||
|
italic = true,
|
||||||
|
underline = true,
|
||||||
|
undercurl = true,
|
||||||
cursorline = true,
|
cursorline = true,
|
||||||
window_unfocussed_color = true,
|
window_unfocused_color = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ require("nvim-treesitter.configs").setup({
|
||||||
"lua",
|
"lua",
|
||||||
"python",
|
"python",
|
||||||
"rust",
|
"rust",
|
||||||
|
"scss",
|
||||||
"sql",
|
"sql",
|
||||||
"toml",
|
"toml",
|
||||||
"yaml",
|
"yaml",
|
||||||
|
|
|
@ -16,6 +16,9 @@ disabled = true
|
||||||
[rust]
|
[rust]
|
||||||
disabled = true
|
disabled = true
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
[battery]
|
[battery]
|
||||||
disabled = true
|
disabled = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue