diff options
Diffstat (limited to '.config/nvim/lua/plugin_settings.lua')
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua new file mode 100644 index 0000000..6de7ebd --- /dev/null +++ b/.config/nvim/lua/plugin_settings.lua | |||
@@ -0,0 +1,126 @@ | |||
1 | -- ┌──────────────────┐ | ||
2 | -- │ ▗ │ | ||
3 | -- │▛▀▖▞▀▖▞▀▖▌ ▌▄ ▛▚▀▖│ | ||
4 | -- │▌ ▌▛▀ ▌ ▌▐▐ ▐ ▌▐ ▌│ | ||
5 | -- │▘ ▘▝▀▘▝▀ ▘ ▀▘▘▝ ▘│ | ||
6 | -- └──────────────────┘ | ||
7 | -- ┌─────────────────────────────────────┐ | ||
8 | -- │ ▜ ▐ ▐ ▗ │ | ||
9 | -- │▛▀▖▐ ▌ ▌▞▀▌▗▖▖▞▀▘▞▀▖▜▀ ▜▀ ▄ ▛▀▖▞▀▌▞▀▘│ | ||
10 | -- │▙▄▘▐ ▌ ▌▚▄▌▘▝ ▝▀▖▛▀ ▐ ▖▐ ▖▐ ▌ ▌▚▄▌▝▀▖│ | ||
11 | -- │▌ ▘▝▀▘▗▄▘ ▀▀ ▝▀▘ ▀ ▀ ▀▘▘ ▘▗▄▘▀▀ │ | ||
12 | -- └─────────────────────────────────────┘ | ||
13 | |||
14 | local g = vim.g -- global for let options | ||
15 | local opt = vim.opt -- convenient :set | ||
16 | local cmd = vim.cmd -- vim commands | ||
17 | |||
18 | -- vimwiki {{{ -- | ||
19 | g.vimwiki_list = { | ||
20 | { | ||
21 | path = '/home/yigit/nextcloud/personal_wiki/text', | ||
22 | path_html = '/home/yigit/nextcloud/personal_wiki/html', | ||
23 | auto_generate_tags = 1, | ||
24 | automatic_nested_syntaxes = 1, | ||
25 | template_path = '/home/yigit/nextcloud/personal_wiki/templates', | ||
26 | template_default = 'default_template', | ||
27 | template_ext = '.html', | ||
28 | auto_export = 1, | ||
29 | auto_tags = 1 | ||
30 | } | ||
31 | } | ||
32 | |||
33 | g.vimwiki_global_ext = 0 | ||
34 | g.vimwiki_hl_headers = 1 | ||
35 | -- }}} vimwiki -- | ||
36 | |||
37 | -- lualine {{{ -- | ||
38 | require'lualine'.setup { | ||
39 | options = { | ||
40 | lower = true, | ||
41 | icons_enabled = true, | ||
42 | theme = 'rose-pine', | ||
43 | section_separators = {'', ''}, | ||
44 | component_separators = {'', ''}, | ||
45 | disabled_filetypes = {} | ||
46 | }, | ||
47 | sections = { | ||
48 | lualine_a = {{'mode', lower = true}}, | ||
49 | lualine_b = {'branch', 'diff'}, | ||
50 | lualine_c = {'filename'}, | ||
51 | lualine_x = {'encoding', 'fileformat', 'filetype'}, | ||
52 | lualine_y = {'progress'}, | ||
53 | lualine_z = { | ||
54 | 'location', { | ||
55 | 'diagnostics', | ||
56 | sources = {'ale'}, | ||
57 | sections = {'error', 'warn', 'info', 'hint'}, | ||
58 | symbols = {error = 'e', warn = 'w', info = 'i', hint = 'h'} | ||
59 | } | ||
60 | } | ||
61 | }, | ||
62 | inactive_sections = { | ||
63 | lualine_a = {}, | ||
64 | lualine_b = {}, | ||
65 | lualine_c = {'filename'}, | ||
66 | lualine_x = {}, | ||
67 | lualine_y = {}, | ||
68 | lualine_z = {} | ||
69 | }, | ||
70 | tabline = {}, | ||
71 | extensions = {} | ||
72 | } | ||
73 | -- }}} requi -- | ||
74 | |||
75 | -- Cutlass suite {{{1 -- | ||
76 | |||
77 | -- cutlass/yoink/subverse suite | ||
78 | g.yoinkIncludeDeleteOperations = 1 | ||
79 | |||
80 | -- fix the Target STRING not available | ||
81 | g.clipboard = { | ||
82 | name = 'xsel_override', | ||
83 | copy = { | ||
84 | ['+'] = 'xsel --input --clipboard', | ||
85 | ['*'] = 'xsel --input --primary', | ||
86 | }, | ||
87 | paste = { | ||
88 | ['+'] = 'xsel --output --clipboard', | ||
89 | ['*'] = 'xsel --output --primary', | ||
90 | }, | ||
91 | cache_enabled = 1, | ||
92 | } | ||
93 | |||
94 | -- 1}}} -- | ||
95 | |||
96 | -- UltiSnips {{{ -- | ||
97 | opt.runtimepath:append('/home/yigit/.vim/my-snippets/') | ||
98 | g.UltiSnipsEditSplit = "vertical" | ||
99 | -- ctrl + l expands the snippet, c + j/k navigates placeholders | ||
100 | g.UltiSnipsExpandTrigger = "<C-l>" | ||
101 | g.UltiSnipsEnableSnipMate = "1" | ||
102 | -- }}} UltiSnips -- | ||
103 | |||
104 | -- float preview | ||
105 | g["float_preview#docked"] = 0 | ||
106 | |||
107 | -- highlight on yank | ||
108 | cmd('highlight HighlightedyankRegion cterm=reverse gui=reverse') | ||
109 | g.highlightedyank_highlight_duration = 200 | ||
110 | |||
111 | -- beacon {{{ -- | ||
112 | g.beacon_size = 100 | ||
113 | g.beacon_shrink = 1 | ||
114 | cmd('highlight Beacon guibg=red ctermbg=15') | ||
115 | -- }}} beacon -- | ||
116 | |||
117 | -- vim-slime {{{ -- | ||
118 | g.slime_target = "tmux" | ||
119 | g.slime_paste_file = "/home/yigit/.slime_paste" | ||
120 | -- g.slime_default_config = {socket_name = get(split($TMUX, ","), 0), target_pane = "{last}"} | ||
121 | -- }}} vim-slime -- | ||
122 | |||
123 | -- vimtex {{{ -- | ||
124 | g.vimtex_view_method = 'zathura' | ||
125 | g.vimtex_quickfix_mode = 0 | ||
126 | -- }}} vimtex -- | ||